(detail?: string)
| 100 | if (!replBridgeEnabled) return; |
| 101 | const outboundOnly = replBridgeOutboundOnly; |
| 102 | function notifyBridgeFailed(detail?: string): void { |
| 103 | if (outboundOnly) return; |
| 104 | addNotification({ |
| 105 | key: 'bridge-failed', |
| 106 | jsx: <> |
| 107 | <Text color="error">Remote Control failed</Text> |
| 108 | {detail && <Text dimColor> · {detail}</Text>} |
| 109 | </>, |
| 110 | priority: 'immediate' |
| 111 | }); |
| 112 | } |
| 113 | if (consecutiveFailuresRef.current >= MAX_CONSECUTIVE_INIT_FAILURES) { |
| 114 | logForDebugging(`[bridge:repl] Hook: ${consecutiveFailuresRef.current} consecutive init failures, not retrying this session`); |
| 115 | // Clear replBridgeEnabled so /remote-control doesn't mistakenly show |
no outgoing calls
no test coverage detected