Repository navigation
Automatic sticky egress fallback proxy (fallbackProxy) - #11
Merged
Merged
Conversation
…parse fallbackProxy in loadConfig
…ath notification, status field, docs
…proxy's allowlist
…ry limits, direct escape when the fallback tunnel fails, self-proxy guard and redacted errors for fallbackProxy
johnnymo87
added a commit
to johnnymo87/workstation
that referenced
this pull request
Dec 2, 2026
…timeout, keep-old on switch (#1081) #### Description - Bumps the TeamClaude fork to johnnymo87/teamclaude#11, which adds an optional **automatic egress fallback**. While devbox's direct connect to api.anthropic.com fails, requests go through gamebox's tinyproxy (#1078), with one same-account retry. It returns to direct after 15 minutes and 6 clean probes. It is inert until `fallbackProxy` is set in `~/.config/teamclaude.json`. - devbox unit: `NODE_OPTIONS=--network-family-autoselection-attempt-timeout=3000`. Node's default of 250 ms per address family declared a slow-but-working route (~540 ms RTT) dead. - devbox unit: **`X-SwitchMethod = keep-old`**. Without it, the unattended pull-workstation home-manager switch would restart TeamClaude, cutting every live agent turn, at whatever hour it ran. switch-impact on this tree reports `Keeping old units: teamclaude.service`. The new build and the env var take effect only at an explicit restart, which will be scheduled at a quiet time and announced. - Mac: `home.darwin.nix` uses the same package, so the Mac's next `home-switch` picks up the new TeamClaude. Its config has no `fallbackProxy`, so nothing changes in behaviour there. #### References - Beads workstation-dkts.4 and .5; #1077 (monitor), #1078 (gamebox proxy)
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.
Description
fallbackProxy: an HTTP CONNECT proxy that TeamClaude routes through automatically, only while the direct route toapi.anthropic.com/platform.claude.comfails at connect. Without the key, nothing changes.src/egress-fallback.js). The first connect-phase failure turns the fallback ON. It goes back to direct only after 15 minutes AND 6 consecutive clean direct TLS probes (every 30 s, no credentials). State is visible in/teamclaude/statusunderegressFallback.readerrors, resets and header timeouts are never retried. The reverse escape: if the fallback tunnel itself can't be set up, the proxy is marked down for 60 s and the request is retried once direct.upstreamProxymakes the fallback inert. A badfallbackProxyvalue is logged (redacted) and treated as off; unlikeupstreamProxy, it never callsprocess.exit. The self-proxy guard applies./v1/code/*,/api/oauth/*passthrough), relayUpgrade (websockets) and MITM CONNECT passthrough stay direct, as they already bypassupstreamProxy.References