Repository navigation
[NO-JIRA] gamebox: tinyproxy fallback egress for devbox's TeamClaude - #1078
Merged
Merged
Conversation
… api.anthropic.com, platform.claude.com) devbox's route to Cloudflare-fronted api.anthropic.com went dark in 20-70 s clusters for two hours on 2026-12-02 (Cloudflare DME site). gamebox egresses from the US and reaches a different Cloudflare site, so it is an independent path. CONNECT-only on 443, devbox's tailnet address only, anchored domain allowlist; reachable only over tailscale0 (port not opened on other interfaces). Bead workstation-dkts.3.
…, MaxClients 256 Listen 0.0.0.0 (explicit) so a failed v4 bind is fatal and restarts, instead of tinyproxy coming up on [::] only. FilterURLs with host:443 patterns so plain HTTP proxying is refused too (ConnectPort does not cover it). Bead workstation-dkts.3.
johnnymo87
enabled auto-merge (squash)
December 2, 2026 23:03
This was referenced Dec 2, 2026
johnnymo87
added a commit
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
hosts/gamebox/tc-fallback-proxy.nix: a tinyproxy on gamebox that devbox's TeamClaude can use as itsupstreamProxywhile devbox's own route to Cloudflare-frontedapi.anthropic.comis broken. On 2026-12-02, devbox's traffic landed on Cloudflare's Moscow site and went dark in 20–70 s clusters for about two hours.api.anthropic.com:443andplatform.claude.com:443(URL-mode anchored filter, default deny). It is reachable only overtailscale0, because the port is not opened on any other interface. TLS runs end to end, so gamebox never sees tokens or prompts.systemctl --user stop tc-fallback-proxyon gamebox. If you forget, the system unit retries every 5 s until the port is free.References