diff --git a/pkgs/teamclaude/default.nix b/pkgs/teamclaude/default.nix index c78b69bd..bb7c939a 100644 --- a/pkgs/teamclaude/default.nix +++ b/pkgs/teamclaude/default.nix @@ -91,7 +91,7 @@ stdenvNoCC.mkDerivation rec { pname = "teamclaude"; - version = "1.1.21-balanced-fw-ub-cap-seat-ttl-acct-names-adaptive-status"; # upstream v1.1.21 + local patches + balanced port + finalWindowHours + usage-based seat exemption + maxDailySpend + usageSeatFirst + per-session cache TTL / usage ledger (#6) + served-account header / pins that hold (#7) + name rule (#8) + adaptive cache-ttl (#9) + cache-ttl status (#10) + version = "1.1.21-balanced-fw-ub-cap-seat-ttl-acct-names-adaptive-status-egressfb"; # upstream v1.1.21 + local patches + balanced port + finalWindowHours + usage-based seat exemption + maxDailySpend + usageSeatFirst + per-session cache TTL / usage ledger (#6) + served-account header / pins that hold (#7) + name rule (#8) + adaptive cache-ttl (#9) + cache-ttl status (#10) + automatic sticky egress fallback proxy `fallbackProxy` (#11, bead workstation-dkts.4) src = fetchFromGitHub { # SMALL FORK. Branch feat/balanced-on-v1121 = upstream v1.1.21 (3d5bb6f) + @@ -243,8 +243,8 @@ stdenvNoCC.mkDerivation rec { # ~/.config/teamclaude.json, which this bump removes. owner = "johnnymo87"; repo = "teamclaude"; - rev = "6780ad2fbd301d452d89d081ee0e780ed071ffb3"; # feat/balanced-on-v1121 (+ #7 served-account header, #8 cache-ttl name rule, #9 adaptive cache-ttl, #10 cache-ttl status) - hash = "sha256-sSNYs+nuGKfhIf+5degNaTp3fWMgAN+FAum7KBII1gs="; + rev = "53b0f8fd3172197c543828cf3fb6260b5f11e8d7"; # feat/balanced-on-v1121 (+ #7 served-account header, #8 cache-ttl name rule, #9 adaptive cache-ttl, #10 cache-ttl status, #11 egress fallback proxy) + hash = "sha256-NL6uig1lFvZbldOjNfID1unpGkD+9zRAMjhbX+iMio4="; }; nativeBuildInputs = [ makeWrapper ]; diff --git a/users/dev/home.devbox.nix b/users/dev/home.devbox.nix index ddacf633..19bc6561 100644 --- a/users/dev/home.devbox.nix +++ b/users/dev/home.devbox.nix @@ -2009,12 +2009,25 @@ down and its silence means nothing. This host has no second leg. ConditionPathExists = "%h/.config/teamclaude.json"; StartLimitIntervalSec = 300; StartLimitBurst = 5; + # Every live agent turn on devbox goes through this proxy, so a restart + # cuts them all. Do not let a routine (or the unattended 4-hourly + # pull-workstation) home-manager switch bounce it: sd-switch leaves a + # running instance alone, and a new build takes effect only on an + # explicit, scheduled restart (detached `systemd-run --user`, at a quiet + # time). Bead workstation-dkts.5. + X-SwitchMethod = "keep-old"; }; Service = { Type = "simple"; WorkingDirectory = config.home.homeDirectory; Environment = [ "HOME=${config.home.homeDirectory}" + # Node's happy-eyeballs gives each address family 250 ms by default. + # devbox's IPv4 RTT to Cloudflare reached ~540 ms during the 2026-12-02 + # episodes, so a slow-but-working route was declared dead at ~265 ms + # ("connect ETIMEDOUT 160.79.104.10; connect ENETUNREACH 2607:..."). + # 3 s per attempt. Bead workstation-dkts.5. + "NODE_OPTIONS=--network-family-autoselection-attempt-timeout=3000" # Pin the config path so it never depends on XDG_CONFIG_HOME. "TEAMCLAUDE_CONFIG=${config.home.homeDirectory}/.config/teamclaude.json" # Quota experiment (bead workstation-ynoq.1, johnnymo87/teamclaude#6).