GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — fix(shared): IPv6 SCP remotes match SSH repository identities by StiensWout · Pull Request #36547 · pingdotgg/t3code Conversation
Contributor
Bracketed IPv6 SCP remotes identify a different repository from equivalent Small fast-lane fix: shared parser and focused regression coverage, with no new interface, state or UI. Found by the bughunt and independently confirmed on main by Claude Opus 5.5. GPT 6.1 Sol reproduced the supplied failure again before implementation. Proof
The full shared Git tests, adjacent source-control and repository resolver tests, and This proves canonical repository keys, not end-to-end forge PR association. Raw IPv6 hosts remain unknown providers. The adjacent ReviewLocal cubic reported only a P3 about the branch being behind main and an unrelated VCS file; that file was never part of this patch. The branch is now rebased. Opus noted a non-blocking nit: bracketed IPv4 or hostname remotes now fall back to the raw string. These spellings did not previously match their SSH URL identities either; broader bracketed-host support is deferred. Council review
No blocking findings. Small-PR council uses only these seats, without a guest. Builder and trim proof provide fast-lane evidence; no separate proof audit is required. Closes #36546 Created with GPT 6.1 Sol (lead, bughunter and reviewer) through Codex and Claude Opus 5.5 (independent verifier, builder, trimmer and reviewer) through Claude Agent, in T3 Code. Local review used cubic.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsCo-Authored-By: Claude Opus 5.5 <[email protected]> Co-authored-by: GPT 6.1 Sol <[email protected]>
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes.
|
| Layer / File(s) | Summary |
|---|---|
Parse and test bracketed IPv6 remotes packages/shared/src/git.ts, packages/shared/src/git.test.ts |
The parser recognizes bracketed IPv6 hosts, normalizes them through URL hostname parsing, and returns null for invalid bracketed hosts. Tests cover three remote forms. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix · Severity of issue fixed: Low
Suggested reviewers: juliusmarminge, tonybynmp4
4b157This change makes equivalent IPv6 SCP and ssh:// remotes resolve to the same repository identity. No merge-blocking risk was found. Provider recognition for raw IPv6 hosts remains a documented follow-up.
Explanation
The title names the main change: bracketed IPv6 SCP remotes now match SSH repository identities. It uses a conventional fix(shared) prefix, and the raw summary confirms the change in packages/shared/src/git.ts is the same fix.
Explanation
The description follows the template. It states the problem, the change, the scope (a small bug fix linked to issue #36546), and verification with a focused test command, observed before/after results, and the broader checks that passed. It also notes known limits and the agent/model used. The template's Scope and Verification requirements are met, and no UI change applies.
Explanation
Issue #36546 requires bracketed IPv6 SCP remotes to canonicalize like equivalent ssh:// remotes, for example git@[2001:db8::1]:team/repo.git and ssh://git@[2001:db8::1]/team/repo.git both yielding [2001:db8::1]/team/repo. The diff against the merge base addresses this. In packages/shared/src/git.ts, parseGitRemoteRepository now accepts a bracketed host group ([[0-9a-f:.]+]) in the SCP regex. For bracketed hosts it returns new URL(ssh://${scpHost}).hostname as the host. This is the same URL parsing the SSH branch uses, so the SCP and SSH forms produce the same host key. The new test in packages/shared/src/git.test.ts (it.each over authenticated, userless and uppercase/expanded IPv6 SCP spellings) asserts equality with the SSH URL's normalized output. The code paths are coherent and the test covers the stated objective. The PR explicitly limits scope to the identity mismatch and defers provider recognition, which matches the issue's limits. I did not run the test suite; the verdict rests on the source diff and the test assertions.
Explanation
The reviewed changes touch only packages/shared/src/git.ts (the SCP host/path parser and the new bracketed-host branch) and packages/shared/src/git.test.ts (the regression test). Both serve issue #36546. The regex change is limited to allowing bracketed hex/colon/dot hosts; non-bracketed hosts keep the original behavior. The PR description states that the unrelated VCS file noted by local review is not part of this patch, and the whole-PR diff against the merge base shows no such file. No unrelated changes were found.
b9ed9a10-50c7-4454-9edc-5d9dd4f10691packages/shared/src/git.test.tspackages/shared/src/git.tsIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
EvidenceRegister an SSH-URL destination project in a linked environment. From source threads using authenticated compressed, userless, and uppercase expanded IPv6 SCP origins, delegate without target.projectId. The real MCP response is shown in the web client. Both sides use fresh synthetic state, Chromium at 1280×800, and light theme.
Scenario source · Deterministic replay driver · Redacted runner logs scenarios:prove exited 0: failsOnBase=true, passesOnHead=true. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
…tgg#36547) Co-authored-by: Julius Marminge <[email protected]> (cherry picked from commit 294e061)
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
[Bug]: IPv6 SCP remotes miss equivalent repository identities
There was an error while loading. Please reload this page.