rouse-context/work/src
Jason Monk b12928c7f3
Fix #243: Always reconnect on FCM wake, never trust stale tunnel state (#245)
An FCM wake from the relay proves it needs a fresh WebSocket -- it would
not have sent the push if it already had one. The previous WakeAction.Skip
path trusted a passing mux-level health check, but a half-open TCP socket
can sit in ACTIVE while the relay has already dropped its WebSocket mapping
(idle timeout, restart, NAT timeout). Every inbound MCP call then fails
until the user force-stops the app.

Remove WakeAction.Skip entirely. The decider now always returns Reconnect
on FCM wake. The health check ping is still performed for diagnostics:
wasStale=true means the tunnel was confirmed dead, false means it looked
alive but the relay disagrees.

Co-authored-by: Claude Opus 4 (1M context) <noreply@anthropic.com>
2026-04-18 12:49:39 -04:00
..
main Fix #243: Always reconnect on FCM wake, never trust stale tunnel state (#245) 2026-04-18 12:49:39 -04:00
test Fix #243: Always reconnect on FCM wake, never trust stale tunnel state (#245) 2026-04-18 12:49:39 -04:00