(requestId: string)
| 850 | logForDebugging('[remote-bridge] Sent control_response') |
| 851 | }, |
| 852 | sendControlCancelRequest(requestId: string) { |
| 853 | if (authRecoveryInFlight) { |
| 854 | logForDebugging( |
| 855 | `[remote-bridge] Dropping control_cancel_request during 401 recovery: ${requestId}`, |
| 856 | ) |
| 857 | return |
| 858 | } |
| 859 | const event = { |
| 860 | type: 'control_cancel_request' as const, |
| 861 | request_id: requestId, |
| 862 | session_id: sessionId, |
| 863 | } |
| 864 | // Hook/classifier/channel/recheck resolved the permission locally — |
| 865 | // interactiveHandler calls only cancelRequest (no sendResponse) on |
| 866 | // those paths, so without this the server stays on requires_action. |
| 867 | transport.reportState('running') |
| 868 | void transport.write(event) |
| 869 | logForDebugging( |
| 870 | `[remote-bridge] Sent control_cancel_request request_id=${requestId}`, |
| 871 | ) |
| 872 | }, |
| 873 | sendResult() { |
| 874 | if (authRecoveryInFlight) { |
| 875 | logForDebugging('[remote-bridge] Dropping result during 401 recovery') |
nothing calls this directly
no test coverage detected