You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a GitLab project used SSH over port 443, Orca could send its web links to the SSH-only hostname. Those links now use the project's GitLab.com address while Git keeps the supplied SSH remote.
What Changed
The project parser, hosted-remote parser, and manual merge-request URL builder now recognize altssh.gitlab.com as GitLab.com. Regression tests cover the canonical project identity, web links, and unchanged SSH remote.
Why
altssh.gitlab.com is a transport endpoint, not the project's web identity. Reusing the existing GitLab host-normalization rule keeps links canonical without rewriting the remote used for Git operations.
N/A: no rendered UI change; the resulting project and review URLs are asserted by automated tests.
Testing
I manually tested these changes locally
Automated tests added/updated, or explained why not below
Passed: pnpm exec vitest run --config config/vitest.config.ts src/main/git/hosted-remote-url.test.ts src/main/gitlab/project-ref-parser.test.ts src/renderer/src/components/right-sidebar/source-control-manual-review-url.test.ts (40 tests); pnpm exec oxlint --deny-warnings on the six changed files; pnpm exec oxfmt --check on the six changed files; git diff --check. No live GitLab connection or upstream CI was tested.
AI Disclosure
OpenCode (gpt-6-luna) assisted with implementation review.
Review
Reviewed the exact six-file diff and the host-normalization call sites.
Agent skill upstream boundary
Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.
Notes
The caller-provided SSH remote remains unchanged. Cross-platform and SSH behavior is covered by parser tests; no live remote session was run.
Checklist
This PR is small and focused
I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
Before/after screenshots or videos attached for UI changes, or N/A with reason
Self-reviewed for correctness, security, and performance
Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
📝 Walkthrough
GitLab remote parsing now recognizes altssh.gitlab.com:443 as the GitLab host. Project references and source-control web links use the canonical gitlab.com host. Tests cover hosted remote parsing, project reference parsing, and merge-request URL generation while preserving the original remote string.
Priority: ➖ Normal
Severity of issue fixed: Medium
Merge Risk:⚪ Minimal · up to 7f5b2
The alternative SSH endpoint is covered for canonical merge-request links, including the GitLab provider hint. Normal validation remains appropriate before merging.
Pre-merge checks: 4 · 1
Failed checks: 1 warning
Check name
Status
Explanation
Resolution
Docstring Coverage
Docstring coverage is 14.29% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 7 functions across 6 files.
Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed checks: 4 passed
Check name
Status
Explanation
Title check
The title clearly and concisely describes the main change: recognizing GitLab SSH-over-443 remotes.
Description check
The description covers the required sections, explains the user impact and implementation, links issue #30876, documents testing, and marks visual proof as not applicable. It also clearly reports unpe…
Linked Issues check
Issue #30876 is active and has coding requirements. The diff applies normalizeGitLabRemoteHost in the project parser, hosted-remote parser, and manual-review remote parser. The new tests verify that…
Out of Scope Changes check
All six changed files support issue #30876. The production changes add the requested host normalization and canonical web-origin handling. The added tests cover the requested parser and manual-review …
Full details: Description check
Explanation
The description covers the required sections, explains the user impact and implementation, links issue #30876, documents testing, and marks visual proof as not applicable. It also clearly reports unperformed manual testing and full validation commands.
Full details: Linked Issues check
Explanation
Issue #30876 is active and has coding requirements. The diff applies normalizeGitLabRemoteHost in the project parser, hosted-remote parser, and manual-review remote parser. The new tests verify that ssh://git@altssh.gitlab.com:443/team/project.git resolves to host gitlab.com, provider gitlab, and path team/project. The manual-review test verifies the canonical merge-request URL and the unchanged supplied remote value. Existing canonical-host behavior remains on the existing paths.
Full details: Out of Scope Changes check
Explanation
All six changed files support issue #30876. The production changes add the requested host normalization and canonical web-origin handling. The added tests cover the requested parser and manual-review behavior. No unrelated provider, self-hosted GitLab, Bitbucket alias, UI, or administrative changes appear in the reviewed diff.
Fix all pre-merge checks with AI
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Warning
⚠️ This pull request shows signs of AI-generated slop (trivial_assertion). It has been flagged by CodeRabbit slop detection and should be reviewed carefully.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands.
This branch has not been deployed
No deployments
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
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.
ELI5
When a GitLab project used SSH over port 443, Orca could send its web links to the SSH-only hostname. Those links now use the project's GitLab.com address while Git keeps the supplied SSH remote.
What Changed
The project parser, hosted-remote parser, and manual merge-request URL builder now recognize
altssh.gitlab.comas GitLab.com. Regression tests cover the canonical project identity, web links, and unchanged SSH remote.Why
altssh.gitlab.comis a transport endpoint, not the project's web identity. Reusing the existing GitLab host-normalization rule keeps links canonical without rewriting the remote used for Git operations.Linked Issue
Fixes #30876
Visual Proof
N/A: no rendered UI change; the resulting project and review URLs are asserted by automated tests.
Testing
Passed:
pnpm exec vitest run --config config/vitest.config.ts src/main/git/hosted-remote-url.test.ts src/main/gitlab/project-ref-parser.test.ts src/renderer/src/components/right-sidebar/source-control-manual-review-url.test.ts(40 tests);pnpm exec oxlint --deny-warningson the six changed files;pnpm exec oxfmt --checkon the six changed files;git diff --check. No live GitLab connection or upstream CI was tested.AI Disclosure
OpenCode (gpt-6-luna) assisted with implementation review.
Review
Reviewed the exact six-file diff and the host-normalization call sites.
Agent skill upstream boundary
Notes
The caller-provided SSH remote remains unchanged. Cross-platform and SSH behavior is covered by parser tests; no live remote session was run.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)