Repository navigation
fix: reflect stale Tunnel polling and recover in place - #36
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.