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