(request: SDKControlRequest)
| 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 |
nothing calls this directly
no test coverage detected