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