MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / onServerControlRequest

Function onServerControlRequest

source code/bridge/replBridge.ts:1195–1203  ·  view source on GitHub ↗
(request: SDKControlRequest)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected