MCPcopy
hub / github.com/claude-code-best/claude-code / onServerControlRequest

Function onServerControlRequest

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

Source from the content-addressed store, hash-verified

1226 // captures transport/currentSessionId so the transport.setOnData
1227 // callback below doesn't need to thread them through.
1228 const onServerControlRequest = (request: SDKControlRequest): void =>
1229 handleServerControlRequest(request, {
1230 transport,
1231 sessionId: currentSessionId,
1232 onInterrupt,
1233 onSetModel,
1234 onSetMaxThinkingTokens,
1235 onSetPermissionMode,
1236 })
1237
1238 let initialFlushDone = false
1239

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected