(request: SDKControlRequest)
| 822 | void transport.writeBatch(events) |
| 823 | }, |
| 824 | sendControlRequest(request: SDKControlRequest) { |
| 825 | if (authRecoveryInFlight) { |
| 826 | logForDebugging( |
| 827 | `[remote-bridge] Dropping control_request during 401 recovery: ${request.request_id}`, |
| 828 | ) |
| 829 | return |
| 830 | } |
| 831 | const event = { ...request, session_id: sessionId } |
| 832 | if (request.request.subtype === 'can_use_tool') { |
| 833 | transport.reportState('requires_action') |
| 834 | } |
| 835 | void transport.write(event) |
| 836 | logForDebugging( |
| 837 | `[remote-bridge] Sent control_request request_id=${request.request_id}`, |
| 838 | ) |
| 839 | }, |
| 840 | sendControlResponse(response: SDKControlResponse) { |
| 841 | if (authRecoveryInFlight) { |
| 842 | logForDebugging( |
nothing calls this directly
no test coverage detected