MCPcopy Index your code
hub / github.com/codeaashu/claude-code / notifyBridgeFailed

Function notifyBridgeFailed

src/hooks/useReplBridge.tsx:102–112  ·  view source on GitHub ↗
(detail?: string)

Source from the content-addressed store, hash-verified

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

Callers 2

useReplBridgeFunction · 0.85
handleStateChangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected