(request: SDKControlRequest)
| 1204 | // captures transport/currentSessionId so the transport.setOnData |
| 1205 | // callback below doesn't need to thread them through. |
| 1206 | const onServerControlRequest = (request: SDKControlRequest): void => |
| 1207 | handleServerControlRequest(request, { |
| 1208 | transport, |
| 1209 | sessionId: currentSessionId, |
| 1210 | onInterrupt, |
| 1211 | onSetModel, |
| 1212 | onSetMaxThinkingTokens, |
| 1213 | onSetPermissionMode, |
| 1214 | }) |
| 1215 | |
| 1216 | let initialFlushDone = false |
| 1217 |
nothing calls this directly
no test coverage detected