MCPcopy Create free account
hub / github.com/codeaashu/claude-code / flush

Method flush

src/ink/terminal-querier.ts:170–175  ·  view source on GitHub ↗

* Send the DA1 sentinel. Resolves when DA1's response arrives. * * As a side effect, all queries still pending when DA1 arrives are * resolved with `undefined` (terminal didn't respond → doesn't support * the query). This is the barrier that makes send() timeout-free. * * Safe to c

()

Source from the content-addressed store, hash-verified

168 * Safe to call with no pending queries — still waits for a round-trip.
169 */
170 flush(): Promise<void> {
171 return new Promise(resolve => {
172 this.queue.push({ kind: 'sentinel', resolve })
173 this.stdout.write(SENTINEL)
174 })
175 }
176
177 /**
178 * Dispatch a response parsed from stdin. Called by App.tsx's

Callers 3

expandTabsFunction · 0.45
parseMultipleKeypressesFunction · 0.45
AppClass · 0.45

Calls 2

pushMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected