Skip to content

fix: reflect stale Tunnel polling and recover in place - #36

Merged
9holy merged 3 commits into
mainfrom
fix/tunnel-poll-recovery-status
Nov 19, 2026
Merged

9holy merged 3 commits into
mainfrom
fix/tunnel-poll-recovery-status

Conversation

@9holy

@9holy 9holy commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

Tunnel readiness now expires when polling stalls. Desktop shows the difference between local MCP availability and Tunnel polling, and clears outdated readiness when the client stops.

After a disconnect, the existing process retries with short polls and keeps its protected request history. Fast retries give silent connections six seconds to return headers and limit transport backoff to 3.2 seconds plus jitter. Periodic short polls keep the original time budget so slow routes can reconnect. Normal polling, response body deadlines and Retry-After handling keep their existing behavior.

The native Tunnel test suite passed on Windows, including sustained failures, slow-route recovery, rate limits and replay protection. In a standalone loopback TCP test, a silent poll delayed recovery after new connections became available by 20.485s before this change and 6.469s afterward. Readiness went from 200 to 503 to 200 in the same process and a new MCP ping ran once. The Desktop readiness changes passed the native connection and UI tests and the production frontend build.

Dev added 3 commits November 19, 2026 14:03
Bound green status to a recent successful poll, distinguish live recovery from process exit, and preserve the protected command ledger during network recovery.

Constraint: Keep the same Tunnel identity, limits, and replay protections

Confidence: high

Scope-risk: moderate
Bound recovery header waits and transport backoff after an established connection. Periodically keep a full-budget short poll for slow routes, and preserve server Retry-After and request body deadlines.
@9holy
9holy merged commit 547ca4f into main Nov 19, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant