MCPcopy Index your code
hub / github.com/codeaashu/claude-code / onServerControlRequest

Function onServerControlRequest

src/bridge/replBridge.ts:1193–1201  ·  view source on GitHub ↗
(request: SDKControlRequest)

Source from the content-addressed store, hash-verified

1191 // captures transport/currentSessionId so the transport.setOnData
1192 // callback below doesn't need to thread them through.
1193 const onServerControlRequest = (request: SDKControlRequest): void =>
1194 handleServerControlRequest(request, {
1195 transport,
1196 sessionId: currentSessionId,
1197 onInterrupt,
1198 onSetModel,
1199 onSetMaxThinkingTokens,
1200 onSetPermissionMode,
1201 })
1202
1203 let initialFlushDone = false
1204

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected