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(gitcafe): SCP remotes with a leading slash find their repository by only21mil · Pull Request #44612 · pingdotgg/t3code

Conversation

@only21mil

@only21mil only21mil commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Problem

A GitCafe checkout whose remote uses git's scp-like form with a leading slash, such as [email protected]:/team/project.git, is recognized as GitCafe but never resolves to a repository. git clone documents this spelling as [<user>@]<host>:/<path-to-git-repo>. parseGitCafeRemote keeps the slash in the path, so the strict owner/name check rejects /team/project and returns null. Pull request lookups for that checkout then fail with "No GitCafe repository remote was found."

Change

The SCP pattern in gitCafeHosts.ts now skips one optional / after the colon. The core repositoryPathFromRemoteUrl already does the same (#44007). gitCafeRepositoryPath stays strict, because the pull request provider uses it as an exact owner/name check.

Scope

Small fix of an obvious bug, so no issue. One line in packages/source-control-gitcafe, plus three test rows. Other remote shapes are out of scope.

Verification

  • gitCafeHosts.test.ts gains [email protected]:/team/project.git and git.cafe:/team/project.git. On main both fail (expected null to deeply equal { host: 'git.cafe', … }). A third row keeps git.cafe://team/project.git rejected, since only one slash is skipped. With the change all 13 tests pass.
  • I ran a real-repo check: a fresh git init with origin set to [email protected]:/team/project.git. GitCafeSourceControlProvider.listChangeRequests read that remote through real git config, with a recording HTTP client standing in for git.cafe:
Remote main this PR
[email protected]:team/project.git (control) team/project, requests /api/repos/team/project/pulls same
[email protected]:/team/project.git null, "No GitCafe repository remote was found.", no request team/project, requests /api/repos/team/project/pulls
  • vp run check:changed passes.
  • Not checked: git.cafe's own SSH server with this spelling, since that needs a registered key.

Generated with Gemini 4 Neon in T3 Code Nightly

Sorry, something went wrong.

Uh oh!

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

All reactions
@only21mil
fix(gitcafe): SCP remotes with a leading slash find their repository
9c3b486
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Nov 28, 2026
@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The GitCafe SCP-style remote pattern now accepts an optional slash after the colon. Tests cover this remote form and verify that a git.cafe:// URL returns null.

Changes: GitCafe remote parsing

Layer / File(s) Summary
Remote pattern and parsing tests
packages/source-control-gitcafe/src/server/gitCafeHosts.ts, packages/source-control-gitcafe/src/server/gitCafeHosts.test.ts
The SCP-style pattern accepts an optional slash after the colon. Tests cover a remote with the slash and reject a git.cafe:// URL.

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

Change: Bug fix

Merge Risk: Minimal · up to 73763

GitCafe SCP remotes with a leading slash after the colon now resolve to their repository. The change is small and tested, and no merge-blocking risk remains.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: the GitCafe SCP remote parser now accepts a leading slash so such remotes resolve to their repository. It uses the conventional commit format and is specific to the fi…
Description check Passed The description follows the template. It gives the problem and its reproduction path, the change with its scope limits, and a scope section that explains why no issue is linked. Verification lists foc…
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: the GitCafe SCP remote parser now accepts a leading slash so such remotes resolve to their repository. It uses the conventional commit format and is specific to the fix.

Full details: Description check

Explanation

The description follows the template. It gives the problem and its reproduction path, the change with its scope limits, and a scope section that explains why no issue is linked. Verification lists focused tests, a real-repo check with before and after results, and the unchecked items. The description does not link an issue, but it explains why none is needed for a small obvious fix. It also names the model and harness, as the template asks.

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: 129c352
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7ea7f744-cbf2-48d1-b61b-e24ebb844134
Commits

Reviewing files that changed from the base of the PR and between 9c3b486 and 7376317.

Files selected for processing: 1

  • packages/source-control-gitcafe/src/server/gitCafeHosts.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 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 28, 2026
juliusmarminge and others added 2 commits November 28, 2026 02:31
@juliusmarminge
Merge remote-tracking branch 'origin/main' into fix/gitcafe-parse-rem…
f0b28d0
…ote-variants
@juliusmarminge @claude
test(gitcafe): keep one leading-slash SCP case
7376317
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@juliusmarminge

juliusmarminge commented Nov 28, 2026

Copy link
Copy Markdown
Member

Evidence

Real web app, 1280×800, light theme, fresh isolated databases and Replay (dev), using the real GitCafe repository/API.

On each commit, fetch versecafe/webls over HTTPS, check out from_string() with its upstream configured, set origin to [email protected]:/versecafe/webls.git, create and open a thread, and inspect Version Control.

Before After
Before: existing PR missing After: existing PR found
129c352ff2: Create PR; lookup logs No GitCafe repository remote was found. 7376317bc8: existing #1, webls v2, and PR badge appear.
Before recording After recording

Scenario driver. scenarios:prove exited 0: failed on base and passed on head. Captures inspected.

Not shown:

  • The userless git.cafe:/owner/repo SCP variant was not independently exercised; this proof covers the reported [email protected]:/owner/repo form.
All reactions

Sorry, something went wrong.

Uh oh!

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

@juliusmarminge juliusmarminge added takeover:ready Takeover done; auto-lands when gates pass and removed takeover:in-progress A takeover lead is working on this PR labels Nov 28, 2026
@juliusmarminge
juliusmarminge merged commit 7ea8041 into pingdotgg:main Nov 28, 2026
56 checks passed

Uh oh!

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

@juliusmarminge juliusmarminge removed the takeover:ready Takeover done; auto-lands when gates pass label Nov 28, 2026
@omegent-app omegent-app Bot mentioned this pull request Nov 28, 2026
Merge upstream main through 0f78747290a1 patroza/t3code#688
Merged
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:XS 0-9 changed lines (additions + deletions). 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

@only21mil @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.