GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(ssh): keep query parameters on release mirror downloads by jadelike-wine · Pull Request #44032 · pingdotgg/t3code

Conversation

@jadelike-wine

@jadelike-wine jadelike-wine commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Problem

An SSH host that needs to download T3 cannot use a release mirror URL with a query string. With T3CODE_RELEASE_BASE_URL=https://mirror.example/releases/?token=fixture, the runner appends the version and filename to the query and requests /releases/?token=fixture/v0.1.6/SHA256SUMS.

Change

Build the versioned path before attaching the original query to each download. Both the checksum and archive requests keep the query intact, and the failure message displays the download path with no query.

Scope

This changes the SSH bootstrap's two release downloads. It is a small fix with a self-contained reproduction using a local HTTP mirror and a fixture token.

Verification

  • Ran the generated runner with a real shell and a loopback mirror that requires ?token=fixture%2F123. The base runner got a 404 on the checksum request. The fixed runner requested the versioned checksum and archive paths with the exact query, verified the checksum, extracted the archive, and ran the fixture t3.

  • The focused shell regression checks both requested URLs. It failed on base and passed with the fix. The harness selected Linux x64 through a fixture uname. The HTTP requests and archive verification were real.

  • Formatting, lint, dependency analysis, and affected typechecks passed. The existing missing-gzip cases fail on macOS BSD tar on both base and head because it decompresses gzip internally. Both cases passed when rerun with GNU tar. Existing test issue in #40480

Model: GPT-6. Harness: Codex Desktop.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@jadelike-wine
fix(ssh): keep query parameters on release mirror downloads
3453e7c
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:S 10-29 changed lines (additions + deletions). labels Nov 27, 2026
@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Explain Change →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Run configuration

  • Source mode: Auto
  • Repository: pingdotgg/t3code
  • Branch: main
  • File: .coderabbit.config.ts
  • Commit: 656a1ac
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e1e7b10c-51a9-4ed6-a2cd-3cb0e9c8571e
Commits

Reviewing files that changed from the base of the PR and between 3453e7c and fbb1569.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

The remote T3 runner now appends the configured release mirror query string to checksum and archive downloads. A generated-runner test checks that both requested URLs retain the query string.

Changes: Release mirror downloads

Layer / File(s) Summary
Build and verify download URLs
packages/ssh/src/tunnel.ts, packages/ssh/src/tunnel.test.ts
The runner derives a version-specific release URL, passes the mirror query string separately, and appends it to checksum and archive downloads. The test checks that both requested URLs retain the query string.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Suggested reviewers: juliusmarminge

Merge Risk: Minimal · previous review 3453e

This change keeps the mirror query string, such as an access token, on checksum and archive downloads, so authenticated release mirrors work. No actionable merge risk remains.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: query parameters on release mirror downloads are kept, which matches the summary (query appended to checksum and archive downloads) and the objectives. It follows the …
Description check Passed The description follows the template. Problem, Change, Scope, and Verification are all filled in with specifics: a reproduction with a token-protected mirror, the fix mechanics, why it is a small self…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: query parameters on release mirror downloads are kept, which matches the summary (query appended to checksum and archive downloads) and the objectives. It follows the conventional commit form and is specific to the SSH bootstrap fix.

Full details: Description check

Explanation

The description follows the template. Problem, Change, Scope, and Verification are all filled in with specifics: a reproduction with a token-protected mirror, the fix mechanics, why it is a small self-contained bug fix, and the focused regression test results with observed behavior. The model and harness are named at the end, as the template asks. The Scope section does not link a tracking issue for the bug, though it gives a reason it is a small fix. The template asks for a link to the issue or a justification, and the justification is present, so this is a minor gap.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: pingdotgg/t3code
  • Branch: main
  • File: .coderabbit.config.ts
  • Commit: aee6cf5
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3562d857-026d-45a5-9db7-4c44de924928
Commits

Reviewing files that changed from the base of the PR and between aee6cf5 and 3453e7c.

Files selected for processing: 2

  • packages/ssh/src/tunnel.test.ts
  • packages/ssh/src/tunnel.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Nov 27, 2026
@juliusmarminge @claude
Merge remote-tracking branch 'origin/main' into codex/ssh-signed-rele…
fbb1569
…ase-mirror

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@juliusmarminge
juliusmarminge force-pushed the codex/ssh-signed-release-mirror branch from bf8603b to fbb1569 Compare November 27, 2026 07:49
@juliusmarminge

juliusmarminge commented Nov 27, 2026

Copy link
Copy Markdown
Member

Evidence

Open Settings → Environments → Add environment → SSH, enter the fixture host, username and port, then add it. Both runs use fresh desktop state and an empty remote runtime cache, with the same query-authenticated mirror. Linux desktop v0.1.13, Electron 44.10.1, light theme, 1440×900.

Before After
Before: malformed mirror URL causes SSH preparation failure After: authenticated downloads succeed and SSH connects
f22ff0003b fbb1569fd8
Interaction recording Interaction recording
Mirror requests: malformed checksum URL → 403 Mirror requests: checksum and archive retain query → 200

Desktop driver · Token-checking mirror · Synthetic SSH fixture setup

Not shown:

  • HTTPS mirrors, non-loopback SSH hosts, and installer-packaged builds were not exercised; both sides used loopback HTTP/SSH and unpackaged desktop builds, matching the triage reproduction's stated deviations.
  • The wget fallback was not exercised because the SSH fixture had curl installed.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge added takeover:needs-julius Takeover done; route gate says Julius decides and removed takeover:in-progress A takeover lead is working on this PR labels Nov 27, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:S 10-29 changed lines (additions + deletions). takeover:needs-julius Takeover done; route gate says Julius decides vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@jadelike-wine @juliusmarminge
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.