MCPcopy Create free account
hub / github.com/tanbiralam/claude-code / setOnControlRequestResolved

Method setOnControlRequestResolved

src/cli/structuredIO.ts:327–331  ·  view source on GitHub ↗

* Register a callback invoked when a can_use_tool control_response arrives * from the SDK consumer (via stdin). Used by the bridge to cancel the * stale permission prompt on claude.ai when the SDK consumer wins the race.

(
    callback: ((requestId: string) => void) | undefined,
  )

Source from the content-addressed store, hash-verified

325 * stale permission prompt on claude.ai when the SDK consumer wins the race.
326 */
327 setOnControlRequestResolved(
328 callback: ((requestId: string) => void) | undefined,
329 ): void {
330 this.onControlRequestResolved = callback
331 }
332
333 private async processLine(
334 line: string,

Callers 1

runHeadlessStreamingFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected