Repository navigation
fork: a device paired from Tailscale stays signed in far past 30 days - #1
Merged
Merged
Conversation
T3 ends a paired device's login after 30 days. A pairing-link login whose client address is a Tailscale address (100.64.0.0/10 or fd7a:115c:a1e0::/48) now lasts 100 years instead. LAN, T3 Connect, CLI, desktop and peer-link logins keep T3's lifetimes. Revoke a device in Settings > Sharing & access. - forkTailnetLogins.ts: the address check and the lifetime. - EnvironmentAuth.ts: pairing exchange and browser sign-in use it. - SessionStore.renew: never shrinks a longer expiry back to 30 days. Claude-Session: https://claude.ai/code/session_01C35eX67cWpMN18nzeXeVb2
…days The browser sign-in path had no test: giving every LAN browser the 100-year login, or no browser at all, kept the suite green. The Tailscale login test now also checks a browser sign-in from Tailscale (100 years) and from the LAN (30 days). Browsers cap a cookie at 400 days (Chrome), and the server does not set it again, so a browser pairs again after that. The phone app uses tokens and is not affected. The comments now say so.
raphant
added a commit
that referenced
this pull request
Nov 28, 2026
Reviewed in ~/shared/runbooks/t3-update-review/reports/2026-11-28.md (verdict: look, nothing unsafe). Conflicts: - Antigravity files, their docs, apps/server/package.json, pnpm-lock.yaml: took upstream. The fork had cherry-picked pingdotgg#43026 and pingdotgg#43087; upstream now carries them. - AnalyticsService.ts: kept FORK_TELEMETRY_OFF in front of upstream's new check (now also DO_NOT_TRACK). It also blocks the new agent.feedback event. - Identify.ts: took upstream. pingdotgg#42299 removed the reads of ~/.codex/auth.json and ~/.claude.json, so the fork patch there is no longer needed. forkPolicy.ts comment updated. - EnvironmentAuth.ts: re-applied the Tailscale login lifetime (#1) inside upstream's new issueUnlessOthersRevokedSince wrapper and exchangeSince.
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.
What: T3 ends a paired device's login after 30 days. On the fork, a device paired from a Tailscale address now keeps its login much longer:
Why: the Android app lost its bazzite login on Nov 14, when its 30 days ran out.
Which logins:
100.64.0.0/10orfd7a:115c:a1e0::/48). Behind Tailscale Serve, that address comes from the lastX-Forwarded-Forentry.Code:
forkTailnetLogins.ts: the address check and the 100-year lifetime.EnvironmentAuth.ts: the pairing exchange and browser sign-in use it.SessionStore.renew: never shrinks a longer expiry back to 30 days.Tests:
vp test run src/auth/: 13 files, 134 tests pass.Tradeoffs:
X-Forwarded-Forfrom any loopback proxy (upstream code). Today only Tailscale Serve runs there: T3 Connect and Tailscale Funnel are off. Check this again before turning either on.Model: Claude Opus 5.5, in Claude Code (run from T3 Code).