Repository navigation
Conversation
Contributor
ApprovabilityVerdict: Not approved Macroscope's review found this PR not approvable — This changes production SSH pairing authentication by discovering the running server version and using that version's CLI to mint credentials, with new failure and timeout behavior. The scope is focused and tested, but authentication-sensitive runtime changes warrant human review. Notes:
You can add or adjust custom eligibility rules. Learn more. |
This branch has not been deployed
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.
Problem
After a desktop update, SSH reconnect can reuse an older remote server while the desktop-pinned CLI writes its pairing grant into the shared database. The older server cannot decode newly added scopes, so token exchange returns HTTP 500 and the environment keeps reconnecting.
Fixes #16984.
Change
Before archive-based pairing, read the running server's version from its public descriptor through the existing SSH forward and use that release's CLI to mint the grant. This keeps the grant issuer's scopes and persistence format aligned with the consumer without introducing a server restart. Version discovery has a bounded timeout and rejects invalid release versions before minting a grant.
Write the pairing runner to
pair-t3.shso choosing another version cannot overwrite the desktop-pinned launch runner and affect later restart decisions. Development runners continue using their configured Node script.Scope and approval
The maintainer triage comment establishes the version-skew failure and the need to preserve active remote work. This PR fixes only the SSH pairing issuer. Server lifecycle policy, wire contracts, providers, and UI behavior are unchanged.
Verification
vp test run packages/ssh/src/tunnel.test.ts: all 29 tests pass. New cases execute the generated pairing shell against installed CLI fixtures for older, matching, newer, and development runners; repeated pairing preserves the launch script. HTTP failures, malformed descriptors, invalid versions, and discovery timeouts mint no grant.vp run --filter @t3tools/ssh typecheck, targetedvp lint, targetedvp fmt --check, andgit diff --check: pass.500 access_token_issuance_failedfrom the October 4 server. The matching October 4 CLI's grant returned 200, and/api/auth/sessionconfirmed an authenticated session on the same server PID. The isolated server was then stopped.The Linux desktop/Tailscale flow was not exercised. An additional desktop IPC test run stalled during suite loading and was stopped; it is not counted as passing. No UI code changed, so screenshots are not applicable.
Model: GPT-6.1-sol. Harness: Codex in T3 Code.