Repository navigation
Conversation
Adding a project wiped the Projects filter: both reveal paths made the new project visible by clearing filterRepoIds outright, so a user filtered to A and B was dropped back to every project. The filter is an allow-list, so revealing a repo only needs that repo added to it. revealRepoInProjectFilter widens the selection instead, and no-ops while the filter is off, where adding an id would turn "show everything" into "show only this project". STA-7588
|
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 (7)
Included review availability: Your plan provides up to 10 included reviews per hour; 1 remains after this review. 📝 WalkthroughWalkthroughThe change adds Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to The change preserves active project selections during repository reveal flows, and no concrete merge-blocking risk is identified. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
Warning Git: CodeRabbit could not clone the repository, so clone-backed analysis was skipped and this review may be incomplete. Verify repository clone access, such as SSH credentials, before requesting another full review. If clone access is intentionally unavailable, use 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
- Widen instead of wipe the Projects allow-list — new
revealRepoInProjectFilter(project-filter-reveal.ts) appends the repo id, no-ops when already selected, and no-ops when the allow-list is empty (appending there would flip "show everything" into "show only this"). - Both reveal paths rewired —
finalizeImportedRepoAfterSkip(add-repo-skip-finalization.ts) andactivateAndRevealWorktreestep 5 (worktree-activation.ts) now share that helper; boolean reveal rules are unchanged. - Tests cover the new contract —
project-filter-reveal.test.tspins append / empty no-op / already-selected no-op, and the three integration assertions were moved off the oldsetFilterRepoIds([])wipe.
The filterRepoIds.length === 0 → unfiltered invariant matches every consumer (visible-worktrees.ts:140, empty-project-placeholder-repos.ts:16, palette seeding at palette-filter.ts:98). I verified the assertions would fail against the old wipe behavior: 40 targeted tests pass, pnpm tc:web is clean, and check:code-quality:changed reports 0 findings. One non-blocking note: step 5 is the generic activation path, so widening also applies to non-add activations (notifications, deep links, automations) that pass clearSidebarFilters !== false. That is deliberate per the PR body, and the prior behavior also mutated this persisted filter (by clearing it), so no regression.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
…yai#20987) Adding a project wiped the Projects filter: both reveal paths made the new project visible by clearing filterRepoIds outright, so a user filtered to A and B was dropped back to every project. The filter is an allow-list, so revealing a repo only needs that repo added to it. revealRepoInProjectFilter widens the selection instead, and no-ops while the filter is off, where adding an id would turn "show everything" into "show only this project". STA-7588 Co-authored-by: m4air <[email protected]>

ELI5
If you filter the sidebar to some projects and then add a new one, Orca used to throw that filter away and show every project. Now it keeps your selection and just adds the new project to it.
What Changed
The Projects filter is an allow-list of repo ids. Both "reveal the newly added project" paths made it visible by clearing
filterRepoIds:add-repo-skip-finalization.ts(skip / no-default-checkout handoff)worktree-activation.tsstep 5 (default-checkout handoff)Those now share
revealRepoInProjectFilter, which widens the allow-list instead of wiping it: append the repo id, no-op when it is already selected, and no-op when no filter is active (adding an id there would turn "show everything" into "show only this project").Boolean reveal rules in the same block (
showActiveOnly,hideDefaultBranchWorkspace, automation/CLI/detached-head hiding) still flip off as before — there is nothing to widen.Why
STA-7588: filtering to projects A and B, then adding C, dropped the user back to every project. Revealing a repo only needs that repo added to the allow-list.
Linked Issue
Fixes STA-7588
Related community PR: #20393 by @jeongph (sibling: keep Hide default branch on when adding a project). Closing that PR; we'll give author credit for the commit.
Visual Proof
N/A — no new UI. This is filter-state on add-project: the Projects allow-list is widened instead of cleared. Covered by unit tests.
Testing
project-filter-reveal,add-repo-skip-finalization,project-added-default-checkout,worktree-activation-created-agent): 40 passedproject-filter-reveal.test.ts— preserve selection / no-op when unfiltered / already selectedPlatform: unit tests (renderer). No live SSH session.
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
Renderer-only. No path, shortcut, process, or wire changes. Folder workspaces go through the same reveal paths.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)