(requestId: string)
| 836 | logForDebugging('[remote-bridge] Sent control_response') |
| 837 | }, |
| 838 | sendControlCancelRequest(requestId: string) { |
| 839 | if (authRecoveryInFlight) { |
| 840 | logForDebugging( |
| 841 | `[remote-bridge] Dropping control_cancel_request during 401 recovery: ${requestId}`, |
| 842 | ) |
| 843 | return |
| 844 | } |
| 845 | const event = { |
| 846 | type: 'control_cancel_request' as const, |
| 847 | request_id: requestId, |
| 848 | session_id: sessionId, |
| 849 | } |
| 850 | // Hook/classifier/channel/recheck resolved the permission locally — |
| 851 | // interactiveHandler calls only cancelRequest (no sendResponse) on |
| 852 | // those paths, so without this the server stays on requires_action. |
| 853 | transport.reportState('running') |
| 854 | void transport.write(event) |
| 855 | logForDebugging( |
| 856 | `[remote-bridge] Sent control_cancel_request request_id=${requestId}`, |
| 857 | ) |
| 858 | }, |
| 859 | sendResult() { |
| 860 | if (authRecoveryInFlight) { |
| 861 | logForDebugging('[remote-bridge] Dropping result during 401 recovery') |
nothing calls this directly
no test coverage detected