Repository navigation
Conversation
|
Understand this PR’s impact Explore downstream dependencies and potential security impact with Blast Radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 2 remain after this review. 📝 WalkthroughWalkthrough
Priority: ➖ Normal Severity of issue fixed: Medium 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
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 |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes — reviewed the full 2-file diff at e311013.
- Remote-over-avatar precedence (
src/shared/project-host-setup-projection.ts):getProjectProviderIdentitynow evaluates the probedgitRemoteIdentity(remoteUrl, thencanonicalKey) immediately after explicitrepo.upstream, and only then falls back to the cached GitHub avatar label. A renamed or transferred repo therefore resolves to the live remote slug instead of the stalerepoIcon.label. Non-GitHub remotes still fall through to the icon, and theremoteUrl-before-canonicalKeyordering that preserves GHES HTTP ports is unchanged. - Regression test (
src/shared/project-host-setup-projection.test.ts): a repo carrying a pre-transfer avatar label (owner-a/app) plus a post-transfergitRemoteIdentity(github.com/org-b/app) must project togithub:org-b/app. This genuinely fails under the old ordering, so it pins the fix rather than restating it.
I verified the precedence interactions: repo.upstream (the fork parent) still wins first, so forks with a resolved upstream are unaffected; for repos without one, gitRemoteIdentity derives from the same remote topology (deriveGitRemoteIdentity prefers the upstream remote, matching the upstream rule). Ran vitest run src/shared/project-host-setup-projection.test.ts — 33 passed.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
|
Closing as superseded by merged #22421, which carries the reviewed fix and regression coverage. Thank you for the original contribution. The merged approach repairs automatic metadata at its owning host rather than changing identity precedence across mixed client/host versions. |

ELI5
When a repository is renamed or transferred to an organization on GitHub, Orca's periodic remote probe updates the git remote identity, but project grouping still preferred a stale cached avatar icon from when the repository was first added. This caused different machines to group the same codebase under different project names in the sidebar. Now, the live git remote identity takes precedence over the cached avatar icon.
What Changed
getProjectProviderIdentity, a cached GitHub avatar icon (repo.repoIcon.label) was checked beforegitRemoteIdentity. If a repository was transferred or renamed on GitHub, the periodic remote probe updatedgitRemoteIdentitycorrectly, butrepo.repoIconwas never refreshed. The stale cached label won the precedence check, locking the project identity to the old repository slug and splitting worktrees across hosts.gitRemoteIdentityis evaluated before falling back torepo.repoIcon. SincegitRemoteIdentityis derived directly from the repository's git remotes and refreshed periodically, it accurately reflects renames and transfers. The avatar icon continues to serve as a reliable fallback for repositories without a probed remote.getProjectProviderIdentity(src/shared/project-host-setup-projection.ts) so thatfromRemoteis evaluated immediately after explicitrepo.upstream, before falling back torepo.repoIcon.Why
Fixes #21515. The avatar icon is a presentation artifact that was only ever intended as a fallback when
upstreamorgitRemoteIdentityhad not yet been backfilled. Prioritizing the authoritative, probed git remote prevents projects from permanently fragmenting across hosts after a repository rename or organization transfer.Linked Issue
Fixes #21515
Visual Proof
N/A - Project identity and catalog projection logic with no layout or CSS changes.
Testing
Added unit test in
src/shared/project-host-setup-projection.test.tsverifying thatgitRemoteIdentityoutranks a stale cached avatar icon.Verified all 33 tests in
src/shared/project-host-setup-projection.test.tsand cross-host project collision test suites pass.Verified all quality gates and typechecks (
check-changed-code-quality.mjs,check-max-lines-ratchet.mjs,tc:cli,tc:node,tc:web).I manually tested these changes locally
Automated tests added/updated, or explained why not below
AI Disclosure
Review
Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Notes
No breaking changes or API alterations. Fully backwards-compatible.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)