Repository navigation
feat(sidebar): organize and nest client project groups - #19125
sousaakira wants to merge 17 commits into
Conversation
Add empty client folders and a persisted focus filter so multi-client workflows can show one company's projects at a time in the sidebar. Co-authored-by: Cursor <[email protected]>
Allow creating and moving project groups into a parent client so multi-client trees (e.g. Akira → Data Lake) can be organized from the group menu and focus switcher. Co-authored-by: Cursor <[email protected]>
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughAdds nested project-group creation, reparenting, cycle prevention, sibling ordering, and API support. Adds persisted, pairing-local project-group focus with subtree filtering across the sidebar. Adds menus and dialogs for selecting, creating, moving, and assigning projects to nested groups. Updates sidebar headers, labels, filters, viewport wiring, and localization. Adds tests for hierarchy, focus, routing, and assignment. Updates packaged runtime detection for Priority: ➖ Normal Merge Risk: 🟡 Moderate · up to Nested client organization can prevent moving clients or projects to valid destinations outside the current client scope and can show an incorrect non-empty sidebar under filters. Additionally, rolling release tags may identify a different commit than the uploaded binaries, creating a release integrity risk that should be resolved before merge. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Description checkExplanation The description explains the main behavior and provides a relevant test plan, but it omits most required template sections. It has no ELI5, Why, Linked Issue, Visual Proof, Testing checklist, Review, Notes, or repository checklist content. Resolution Complete the repository template. Add an ELI5 explanation, detailed What Changed and Why sections, a linked issue after Full details: Docstring CoverageExplanation Docstring coverage is 40.91% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 44 functions across 49 files. (1 skipped: 1 unsupported.) 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.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Team
Run ID: d6b550e5-4c38-4dc0-8701-b8cc46912a2e
📒 Files selected for processing (43)
src/main/ipc/repos/repo-ipc-arg-schemas.tssrc/main/persistence-repo-lifecycle.test.tssrc/main/persistence/tracking-repos/project-group-operations.tssrc/main/runtime/rpc/methods/client-ui-pairing-local-fields.test.tssrc/main/runtime/rpc/methods/client-ui-schemas.tssrc/main/runtime/rpc/methods/repo.tssrc/main/runtime/runtime-project-group-controller.tssrc/preload/api/repository-api.tssrc/renderer/src/components/sidebar/SidebarClientScopeSwitcher.tsxsrc/renderer/src/components/sidebar/SidebarHeader.tsxsrc/renderer/src/components/sidebar/WorktreeList.tsxsrc/renderer/src/components/sidebar/project-group-menu-labels.test.tssrc/renderer/src/components/sidebar/project-group-menu-labels.tssrc/renderer/src/components/sidebar/sidebar-filter-actions.tssrc/renderer/src/components/sidebar/sidebar-filter-state.test.tssrc/renderer/src/components/sidebar/sidebar-header-actions.tsxsrc/renderer/src/components/sidebar/visible-worktree-kinds.tssrc/renderer/src/components/sidebar/worktree-list/listing/use-filters.tssrc/renderer/src/components/sidebar/worktree-list/listing/use-host-visible-scope.tssrc/renderer/src/components/sidebar/worktree-list/listing/use-visible-worktrees.test.tsxsrc/renderer/src/components/sidebar/worktree-list/rows/ProjectGroupDialogs.tsxsrc/renderer/src/components/sidebar/worktree-list/rows/SectionHeader.tsxsrc/renderer/src/components/sidebar/worktree-list/rows/project-group-header-actions.tsxsrc/renderer/src/components/sidebar/worktree-list/rows/repo-header-project-actions.tsxsrc/renderer/src/components/sidebar/worktree-list/rows/use-project-group-dialogs.tssrc/renderer/src/components/sidebar/worktree-list/viewport/viewport-props.tssrc/renderer/src/components/sidebar/worktree-list/viewport/virtual-row-context.tssrc/renderer/src/store/project-groups/project-group-mutations.tssrc/renderer/src/store/repos/repo-state.tssrc/renderer/src/store/slices/repos-project-groups.test.tssrc/renderer/src/store/slices/ui/ui-slice-contract-preferences.tssrc/renderer/src/store/slices/ui/ui-slice-hydration-actions.tssrc/renderer/src/store/slices/ui/ui-slice-preference-actions.tssrc/renderer/src/web/preload-api/web-preference-normalization.tssrc/renderer/src/web/web-preload-api-ui.test.tssrc/shared/constants.tssrc/shared/pairing-local-ui-fields.test.tssrc/shared/pairing-local-ui-fields.tssrc/shared/persisted-ui-state-types.tssrc/shared/project-group-focus.test.tssrc/shared/project-group-focus.tssrc/shared/project-groups.test.tssrc/shared/project-groups.ts
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
| /** Sidebar client/group focus; null = show every project group. */ | ||
| focusedProjectGroupId: string | null | ||
| setFocusedProjectGroupId: (groupId: string | null) => void |
There was a problem hiding this comment.
🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
#!/usr/bin/env bash
set -euo pipefail
rg -n -C 5 \
'setFocusedProjectGroupId|focusedProjectGroupId|PersistedUIWriteBaseline|capturePersistedUIWriteBaseline|diffPersistedUIWriteFields|ui\.set' \
src/renderer/src/store src/sharedRepository: stablyai/orca
Length of output: 50370
🏁 Script executed:
#!/usr/bin/env bash
set -euo pipefail
printf '%s\n' '--- persisted baseline ---'
cat -n src/renderer/src/store/slices/ui/persisted-ui-write-baseline.ts
printf '%s\n' '--- focused setter and writer references ---'
rg -n -C 12 \
'setFocusedProjectGroupId|focusedProjectGroupId|diffPersistedUIWriteFields|persistedUIWriteBaseline' \
src/renderer/src/store/slices/ui src/renderer/src/App.tsxRepository: stablyai/orca
Length of output: 274
🏁 Script executed:
#!/usr/bin/env bash
set -euo pipefail
baseline_file="$(git ls-files | awk -F/ '$NF == "persisted-ui-write-baseline.ts" {print; exit}')"
printf 'baseline=%s\n' "$baseline_file"
cat -n "$baseline_file"
printf '%s\n' '--- writer and baseline references ---'
rg -n -C 10 \
'focusedProjectGroupId|diffPersistedUIWriteFields|capturePersistedUIWriteBaseline|persistedUIWriteBaseline' \
src/renderer/src/store src/renderer/src/App.tsx 2>/dev/nullRepository: stablyai/orca
Length of output: 155
🏁 Script executed:
#!/usr/bin/env bash
set -euo pipefail
baseline_file="$(git ls-files | awk -F/ '
$NF == "persisted-ui-write-baseline.ts" {
if (!found) { print; found=1 }
}
')"
printf 'baseline=%s\n' "$baseline_file"
cat -n "$baseline_file"
printf '%s\n' '--- writer and baseline references ---'
rg -n -C 10 \
'focusedProjectGroupId|diffPersistedUIWriteFields|capturePersistedUIWriteBaseline|persistedUIWriteBaseline' \
src/renderer/src/store src/renderer/src/App.tsx 2>/dev/nullRepository: stablyai/orca
Length of output: 50369
🏁 Script executed:
#!/usr/bin/env bash
set -euo pipefail
rg -n -C 14 \
'PERSISTED_UI_WRITE_BASELINE_FIELDS|persistedUIWriteFieldsToWireUpdate|diffPersistedUIWriteFields|persistedUIWriteBaseline|ui\.set' \
src/renderer/src/App.tsxRepository: stablyai/orca
Length of output: 151
Include focusedProjectGroupId in the persisted UI write baseline.
setFocusedProjectGroupId writes through window.api.ui.set, but PersistedUIWriteBaseline and its field set omit focusedProjectGroupId. Hydration therefore cannot preserve a local focus change when a synchronization update arrives, because the diff does not include this field. Add it to the baseline and field set.
There was a problem hiding this comment.
Important
This PR adds 22 new translate() keys under the auto.* namespace but never seeds en.json, so the verify:localization-catalog step of pnpm lint fails in CI (confirmed by running the script). The keys also use readable suffixes (allClients, newClientInside, …) instead of the 10-char hash ids every other auto.* key uses. Seed the catalog with hashed keys before merge.
Reviewed changes
- Client focus switcher — a new
SidebarClientScopeSwitcherdropdown in the sidebar header focuses one client's subtree; an effect clears stale focus after a focused client is deleted. - Nested clients (
parentGroupId) —New client inside…andMove into another client/Top levelflows wired through store → persistence → RPC, with cycle guards and per-sibling tab-order placement. - Focus filtering —
useSidebarHostVisibleScopenarrows repos/groups/folder-workspaces to the focused subtree;focusedProjectGroupIdis persisted as a pairing-local UI preference and reset byClear Filters. - Hierarchy in menus —
flattenProjectGroupsForMenu+formatProjectGroupMenuLabelindent nested client names in the Move-to-group / Move-into menus.
⚠️ Missing localization catalog entries
22 new translate() calls reference keys that are absent from src/renderer/src/i18n/locales/en.json, which fails pnpm lint at the verify:localization-catalog step. They also diverge from the auto.* key convention (auto.<path>.<sha1(filePath:text)[0:10]>), so they need to be regenerated, not just added verbatim.
Technical details
# Missing localization catalog entries
## Affected sites
- 22 keys across `SidebarClientScopeSwitcher.tsx`, `worktree-list/rows/ProjectGroupDialogs.tsx`,
`worktree-list/rows/project-group-header-actions.tsx`, `worktree-list/rows/use-project-group-dialogs.ts`.
- `config/scripts/verify-localization-catalog.mjs` (run without `--fix`) reports all 22 as missing from
`src/renderer/src/i18n/locales/en.json`.
## Required outcome
- `pnpm lint` → `verify:localization-catalog` passes.
- Keys use the hashed form `auto.<path>.<sha1(filePath:text)[0:10]>` and live in `en.json`.
Non-English locales may lag (i18next falls back to English) per the verify script's design.
## Suggested approach
- `config/scripts/localize-renderer-strings.mjs` wraps raw strings and generates hashed keys + catalog
entries; re-run it (or the equivalent sync path) so the 22 keys land in `en.json` with hashed ids.DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
Assign newly added repos to the focused/nested client, surface group header nesting actions, and add a personal fork workflow for Linux/Windows/macOS arm64 builds. Co-authored-by: Cursor <[email protected]>
Unquoted colons in description strings prevented GitHub from registering workflow_dispatch. Co-authored-by: Cursor <[email protected]>
computer-use-macos requires swift-tools-version 6.0; macos-14 only ships 5.10. Co-authored-by: Cursor <[email protected]>
There was a problem hiding this comment.
Important
The localization catalog is still unseeded, so pnpm lint still fails at verify:localization-catalog — now 24 missing auto.* keys, up from the 22 flagged in the prior review (this commit added addProjectToClient and addProjectToClientNamed). Seed en.json before merge, and drop the personal fork build workflow that came along with this commit.
Reviewed changes
- Add-project-on-client affordance — a
+button andAdd project…menu item on each client header open theadd-repoflow pre-targeting that client, so a newly added project lands inside it. - Post-add assignment helper —
assign-added-repo-to-target-client.tsreads the target frommodalDataat completion time and moves an ungrouped repo into the client, or re-parents a nested "import as group" result under it. - Header-actions refactor —
SectionHeaderRowContextwas extracted tosection-header-row-context.ts, and the menu/+/create-workspace buttons were consolidated intoProjectGroupHeaderTrailingActions. - Move-to-group menu hierarchy —
RepoHeaderProjectActionsMenunow indents nested clients viaflattenProjectGroupsForMenu/formatProjectGroupMenuLabel. - Wire schema + misc —
ProjectGroupUpdateArgsgained an optionalparentGroupId;node:sqlite/sqlitewere marked builtin in the packaged runtime.
⚠️ Localization catalog still unseeded — now 24 keys
The verify:localization-catalog step of pnpm lint is still failing. Running config/scripts/verify-localization-catalog.mjs reports 24 missing keys; this commit added two more (addProjectToClient, addProjectToClientNamed) without seeding en.json, and the keys still use readable suffixes instead of the hashed auto.<path>.<sha1(filePath:text)[0:10]> convention.
Technical details
# Localization catalog still unseeded
## Affected sites
- 24 `auto.*` keys across `SidebarClientScopeSwitcher.tsx`, `worktree-list/rows/ProjectGroupDialogs.tsx`,
`worktree-list/rows/project-group-header-actions.tsx`, `worktree-list/rows/use-project-group-dialogs.ts`.
- `config/scripts/verify-localization-catalog.mjs` reports all 24 missing from `src/renderer/src/i18n/locales/en.json`.
## Required outcome
- `pnpm lint` → `verify:localization-catalog` passes.
- Keys use the hashed form `auto.<path>.<sha1(filePath:text)[0:10]>` and live in `en.json`.
## Suggested approach
- Run `pnpm run sync:localization-catalog` so all 24 keys land in `en.json` with hashed ids.⚠️ Personal fork build workflow committed to this PR
.github/workflows/personal-desktop-build.yml is a 240-line fork-only desktop builder for sousaakira/orca that does nothing on stablyai/orca. It is unrelated to the sidebar-nesting feature and, along with the unrelated node:sqlite builtins change in config/packaged-runtime-node-modules.cjs, looks like a stray commit that should be dropped before merge.
Technical details
# Personal fork build workflow in upstream PR
## Affected sites
- `.github/workflows/personal-desktop-build.yml` — fork-only builder (guarded by `if: github.repository == 'sousaakira/orca'`).
- `config/packaged-runtime-node-modules.cjs` — adds `sqlite` / `node:sqlite` to `NODE_BUILTINS`.
## Required outcome
- Confirm with a maintainer whether these belong in `stablyai/orca`, or remove them from the PR.
## Open questions for the human
- Is the workflow intentionally part of this change, or a stray commit?
- Is the `node:sqlite` packaging fix required for this PR, or does it belong in a separate change?DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
src/renderer/src/components/sidebar/WorktreeList.tsx (1)
167-167: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick winScope viewport inputs to the focused collections.
usePendingSidebarRevealpasses these collections toexpandGroupsForWorktreeReveal. That helper can toggle collapsed groups for a worktree or folder workspace outside the focused subtree before it finds a rendered row. The same unfilteredfolderWorkspacesalso refreshes path status for hidden workspaces. Pass the focused collections to the viewport; keep drag and selection row-derived.
🧹 Nitpick comments (1)
config/packaged-runtime-node-modules.cjs (1)
73-73: 🗄️ Data Integrity & Integration | 🔵 Trivial | ⚡ Quick winDrop the bare
'sqlite'entry and keep only'node:sqlite'.
builtinModulescontainsnode:sqlite, notsqlite. The bare specifier resolves to the npm packagesqlite. Keeping it inNODE_BUILTINScausesisPackagedExternalSpecifier('sqlite')to skip that package during runtime dependency discovery.♻️ Proposed change
// Why: Electron 43+ ships node:sqlite; packaging hosts on Node 22 omit it from builtinModules. - 'sqlite', 'node:sqlite'
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 873c8b43-55de-4b16-975c-5d8f060e97cd
📒 Files selected for processing (13)
.github/workflows/personal-desktop-build.ymlconfig/packaged-runtime-node-modules.cjssrc/renderer/src/components/sidebar/SidebarClientScopeSwitcher.tsxsrc/renderer/src/components/sidebar/WorktreeList.tsxsrc/renderer/src/components/sidebar/assign-added-repo-to-target-client.test.tssrc/renderer/src/components/sidebar/assign-added-repo-to-target-client.tssrc/renderer/src/components/sidebar/use-complete-git-repo-add.tssrc/renderer/src/components/sidebar/useAddRepoNestedImportFlow.tssrc/renderer/src/components/sidebar/worktree-list/rows/SectionHeader.tsxsrc/renderer/src/components/sidebar/worktree-list/rows/project-group-header-actions.tsxsrc/renderer/src/components/sidebar/worktree-list/rows/section-header-row-context.tssrc/renderer/src/components/sidebar/worktree-list/viewport/viewport-props.tssrc/renderer/src/components/sidebar/worktree-list/viewport/virtual-row-context.ts
🚧 Files skipped from review as they are similar to previous changes (1)
- src/renderer/src/components/sidebar/SidebarClientScopeSwitcher.tsx
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
| gh release create "$RELEASE_TAG" "${assets[@]}" \ | ||
| --repo "$GH_REPO" \ | ||
| --title "Personal Desktop (${version} / ${sha})" \ | ||
| --notes "$notes" |
There was a problem hiding this comment.
🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win
Pass the full build commit to gh release create with --target.
--cleanup-tag removes the existing personal-desktop tag. Without --target, the subsequent gh release create recreates the tag at the repository default branch. The publish job checks out the requested ref again and records only its short SHA, so it does not have the immutable commit that produced the artifacts. Record the full SHA in the build job, pass it to publish, and use it for both the publish checkout and --target.
📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| gh release create "$RELEASE_TAG" "${assets[@]}" \ | |
| --repo "$GH_REPO" \ | |
| --title "Personal Desktop (${version} / ${sha})" \ | |
| --notes "$notes" | |
| gh release create "$RELEASE_TAG" "${assets[@]}" \ | |
| --repo "$GH_REPO" \ | |
| --target "$sha" \ | |
| --title "Personal Desktop (${version} / ${sha})" \ | |
| --notes "$notes" |
Bring Orca updates through current main (v1.4.198 line and later). Keep client scope switcher / focused title and adopt upstream create-menu header actions. Co-authored-by: Cursor <[email protected]>
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
Seed hashed localization keys, drop the fork-only desktop workflow from the PR, list nested clients in the focus switcher, clear focus when leaving repo grouping, scope viewport inputs to the focused subtree, and keep only node:sqlite in packaged builtins. Co-authored-by: Cursor <[email protected]>
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes — this increment is a review-address commit that resolves every previously flagged concern.
- Dropped the personal fork build workflow — removed
.github/workflows/personal-desktop-build.yml, the fork-only desktop builder, clearing the scope-creep flag. - Trimmed the packaged runtime builtins — removed the stray bare
'sqlite'entry, keeping only'node:sqlite'inconfig/packaged-runtime-node-modules.cjs. - Regenerated and seeded localization keys — all 24
auto.*keys now use the hashedsha1(filePath:text)[0:10]convention and live inen.json;verify:localization-catalogpasses (exit 0), resolving the CI blocker. - Hierarchical focus switcher —
SidebarClientScopeSwitchernow lists the full client tree viaflattenProjectGroupsForMenu, so nested clients appear and the checkmark keys offresolvedFocusId === group.id. - Cleared focus on leaving repo grouping —
setGroupBynow nullsfocusedProjectGroupIdwhen switching away fromrepo, so the hidden subtree filter can't silently persist. - Scoped viewport inputs to the focused subtree —
WorktreeListfeedsfocusedVisibleWorktrees,visibleFolderWorkspacesForRows, andvisibleProjectGroupsForRowsinto the viewport, so reveal/collapse and path-status work can't leak to rows outside focus.
Prior Pullfrog threads were addressed and retired this run.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
src/renderer/src/components/sidebar/WorktreeList.tsx (1)
277-277: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick winUse the focused worktree count for the empty-state check.
When a client focus is active, the row model and viewport use
focusedVisibleWorktrees, butshouldFiltersHideAllRowsstill receivesvisibleWorktrees.length. If a filter matches a worktree outside the focused client and matches none inside it, the global count stays non-zero. The sidebar can then keep rendering client headers instead of the “Clear Filters” empty state. PassfocusedVisibleWorktrees.lengthhere.Suggested fix
const filtersHideAllRows = shouldFiltersHideAllRows({ hasFilters, - visibleWorktreeCount: visibleWorktrees.length, + visibleWorktreeCount: focusedVisibleWorktrees.length,
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: e6241fa5-a824-45da-a7fb-50945403c9ec
📒 Files selected for processing (9)
config/packaged-runtime-node-modules.cjssrc/renderer/src/components/sidebar/SidebarClientScopeSwitcher.tsxsrc/renderer/src/components/sidebar/WorktreeList.tsxsrc/renderer/src/components/sidebar/sidebar-header-actions.tsxsrc/renderer/src/components/sidebar/worktree-list/rows/ProjectGroupDialogs.tsxsrc/renderer/src/components/sidebar/worktree-list/rows/project-group-header-actions.tsxsrc/renderer/src/components/sidebar/worktree-list/rows/use-project-group-dialogs.tssrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/store/slices/ui/ui-slice-preference-actions.ts
💤 Files with no reviewable changes (1)
- config/packaged-runtime-node-modules.cjs
🚧 Files skipped from review as they are similar to previous changes (4)
- src/renderer/src/components/sidebar/worktree-list/rows/use-project-group-dialogs.ts
- src/renderer/src/components/sidebar/worktree-list/rows/ProjectGroupDialogs.tsx
- src/renderer/src/components/sidebar/sidebar-header-actions.tsx
- src/renderer/src/components/sidebar/worktree-list/rows/project-group-header-actions.tsx
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Use focused worktree count for the Clear Filters empty state, but pass the full project-group catalog to header menus so reparent targets outside the focused subtree stay available. Co-authored-by: Cursor <[email protected]>
Focused row rendering stays scoped; header reparent/move menus need every client so destinations outside the current focus remain available. Co-authored-by: Cursor <[email protected]>
There was a problem hiding this comment.
ℹ️ No critical issues — one minor suggestion inline.
Reviewed changes
- Focused-empty-state count —
shouldFiltersHideAllRowsnow receivesfocusedVisibleWorktrees.lengthinstead ofvisibleWorktrees.length, so an active client focus plus a filter that only matches out-of-focus worktrees correctly falls through to the Clear Filters empty state. - Full project-group catalog for move/reparent menus — the viewport's
projectGroupsprop reverted fromvisibleProjectGroupsForRowsback to the full catalog (with a comment), so reparent destinations outside the focused subtree stay available while row rendering remains scoped.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
| projectGrouping={projectGrouping} | ||
| // Why full catalog: move/reparent menus need destinations outside the focused subtree; | ||
| // row rendering already scopes via visibleProjectGroupsForRows above. | ||
| projectGroups={projectGroups} |
There was a problem hiding this comment.
Passing the full projectGroups catalog reaches more than the move/reparent menus — VirtualizedWorktreeViewport also feeds it into useFolderWorkspacePathStatusRows, which force-probes fetchFolderWorkspacePathStatus for every folder-backed group (use-folder-path-statuses.ts:84). With a client focused, each focus change re-runs that effect and re-probes every other client's hidden groups, re-opening the group-side of the viewport leak 2da6532 scoped away. Consider keeping the viewport prop scoped and letting the menu components pull the full catalog from the store (they already have useAppStore access), or threading a separately-scoped group list to the path-status hook.
Technical details
# Full project-group catalog leaks into path-status probes
## Affected sites
- src/renderer/src/components/sidebar/WorktreeList.tsx:374 — `projectGroups={projectGroups}` reverted from the scoped `visibleProjectGroupsForRows`.
- src/renderer/src/components/sidebar/worktree-list/viewport/VirtualizedWorktreeViewport.tsx:122 — passes `projectGroups` to `useFolderWorkspacePathStatusRows`.
- src/renderer/src/components/sidebar/worktree-list/listing/use-folder-path-statuses.ts:84 — loops `for (const group of projectGroups)` and `force: true`-probes every group with `parentPath`.
## Required outcome
- Focusing a client does not re-probe folder path status for project groups outside the focused subtree.
- The move/reparent menus keep access to the full catalog.
## Suggested approach
- The menu components (`ProjectGroupHeaderTrailingActions`, `RepoHeaderProjectActionsMenu`) already sit under a global `useAppStore`; have them read `s.projectGroups` directly and keep the viewport prop scoped to `visibleProjectGroupsForRows`, or pass a second scoped list to the path-status hook.Bring latest Orca main (~77 commits) onto the client-nesting branch.
Linux users can place the custom minimize/maximize/close cluster on the left (macOS-style) via Appearance settings, without changing the default right-side layout. Co-authored-by: Cursor <[email protected]>
Align the chrome-side test with navigator-based platform detection, gate Appearance search on an explicit Linux flag, and stop rewriting document CSS vars on every render from a fresh insets object. Co-authored-by: Cursor <[email protected]>
Co-authored-by: Cursor <[email protected]>
Keep client scope switcher with upstream's split create/add header actions. Co-authored-by: Cursor <[email protected]>
There was a problem hiding this comment.
Important
This increment pushes an unrelated feature — Linux window-controls positioning — onto the sidebar client-groups branch. It shares no files with the PR's stated scope; confirm it belongs here or split it into its own PR before merging.
Reviewed changes
- Linux window-controls position setting — a new
windowControlsPositionglobal setting (defaultright) andnormalizeWindowControlsPosition/resolveWindowControlsSidehelpers insrc/shared/window-controls-position.ts; Windows and macOS are forced back to the right-side convention. - Side-aware chrome rendering —
WindowControlsgained asideprop (GNOME close/min/max order on the left, Windows order on the right), and the CSS vars split into--window-controls-left/--window-controls-right/--window-controls-right-edge-heightso every formerly right-anchored inset (titlebar spacer, right-sidebar header, artifacts header, tab-group panel, automations top bar) follows the preference. - Settings UI + search index — a Linux-only segmented control on the Appearance pane, wired into
appearance-search.tsbehindshowWindowControlsPosition, withen.jsonseeded. - Tests — new
window-controls-position.test.tsandapp-window-chrome.test.tscover normalization, platform gating, and inset placement.
⚠️ Unrelated window-controls feature stacked on the sidebar PR
The three commits in this increment (beb4799ea9, 5c2912c544, 69b8db2316) build a complete Linux window-controls-positioning feature across 27 files, none of which overlap the sidebar client-groups work the PR title and body describe. 5c2912c544 ("address window-controls PR review feedback") even references a separate review loop, which strongly suggests this belongs to its own PR and was pushed here by accident — or the branch is now tracking two independent efforts. Merging as-is would land an unannounced feature under a misleading title and couple two unrelated changes' revert granularity. Split the window-controls work into its own PR, or confirm with a maintainer that both are intended to land together.
Technical details
# Unrelated window-controls feature in PR #19125
## Affected sites
- `3d90decebe..69b8db23` — 3 commits, 27 files (app-shell / settings / shared window-controls files).
- Zero overlap with the sidebar feature files (`src/renderer/src/components/sidebar/**`, `src/shared/project-groups.ts`, etc.).
## Required outcome
- Confirm whether the window-controls work is intended to be part of PR #19125, and if not, move it to its own branch/PR before merge.
## Open questions for the human
- Is the window-controls feature intentionally landing with the sidebar nesting work, or was it committed to the wrong branch?DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
ℹ️ No new issues in this increment — the upstream merge integrates cleanly with the sidebar client-groups work.
Reviewed changes
- Merged
upstream/main—c1c0ce1pulls in main'ssidebar-header-actions.tsxrefactor (the "unify create actions" split intoNewWorkspaceButton/AddProjectButton, plusagentsViewActivegating) and resolves it against the PR'sSidebarClientScopeSwitcher, which stays wired into the workspaces view and is hidden in the agents view. - Header threading —
SidebarHeader.tsxnow derivesagentsViewActive = sidebarBody === 'agents'and passes it down, so the scope switcher and workspace actions correctly disappear in the activity view. - Cosmetic merge adjustments —
repo-header-project-actions.tsxswaps the "New group from project" iconFolderPlus→FolderTree;en.json(and sibling locales) drop the retiredcreateMenukey and adopt main's5c9c7c16aastring while keeping the PR'saddProjectkey. - Brought-along upstream changes — main's
worktree-creation-*refactors and its e2e updates (golden-core-flows.spec.ts,sidebar-project-dialog.ts) land unchanged, outside the PR's scope.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
|
I was about to start building exactly this — group nesting plus a "move into group" action on the group menu — and stumbled onto this PR first. Glad it exists, and the approach looks right to me. Two bits of feedback as a would-be user of it. The indentation in the move menu is good enough. The thing I'd been worried about was the flat target list: once groups nest, names repeat across subtrees and there's no way to tell which parent a given entry belongs to. Since I'd reconsider the Group → Client rename. That's the part most likely to slow this down. It turns a scoped feature into a product-naming decision, which needs a different and slower kind of sign-off than "unlock My suggestion would be to keep "Group" for now and land the nesting. What the levels mean is the user's call — mine happen to be clients, but for someone else they're areas, departments, teams, or products. Baking "client" into the UI copy picks one of those for everybody. If a rename is still wanted afterwards it's a cheap follow-up, and it can be argued on its own merits instead of holding up the feature. Might also be worth adding |
Bring Orca updates through the v1.4.199 release line onto the personalized branch.
There was a problem hiding this comment.
ℹ️ No new issues in this increment — the upstream merge integrates cleanly with the sidebar client-groups work.
Reviewed changes
- Merged
upstream/main—4b4e84b0pulls in 13 upstream commits (134 files, ~5.8k insertions) of native-chat / agent-status / terminal / mobile / cloud-push work. None of it touches the sidebar client-groups feature surface:git diff c1c0ce1f..4b4e84b0shows zero changes undercomponents/sidebar/**or any otherprojectGroupsfile. - Localization intact — the only shared file is
en.json, and its delta is upstream native-chat background-task strings in a separate namespace; the PR'sauto.*keys are untouched, soverify:localization-catalogis unaffected. - No conflict resolution — the PR's feature files needed no merge resolution and the diff carries no leftover conflict markers.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
Bring in Orca v1.4.200+ while keeping client nesting focus and Linux window-controls search. Co-authored-by: Cursor <[email protected]>
Keep the post-merge max-lines shrink without the ReadonlyArray lint failure. Co-authored-by: Cursor <[email protected]>
There was a problem hiding this comment.
ℹ️ No new issues in this increment — the upstream merge integrates cleanly with the sidebar client-groups work.
Reviewed changes
- Merged
upstream/main(Orca v1.4.200+) —6a44bef868pulls in ~300 upstream files. The load-bearing integration point is upstream's RPC-params refactor (c84007c541), which moved the params schemas out ofsrc/main/runtime/rpc/methods/{client-ui-schemas,repo}.tsintosrc/shared/rpc-contract/{client-ui-params,repo-params}.ts. The PR's fields were carried into the new shared schemas (focusedProjectGroupIdatclient-ui-params.ts:146,parentGroupIdatrepo-params.ts:47), and the old files now re-export/import from the shared location, so runtime validation and theRuntimeProjectGroupControllerstill accept them. - Status-bar hydrate lint fix —
11b319572fdrops the invalidsatisfies readonly (readonly [keyof PersistedUIState, StatusBarItem])[]clause on thehydrateStatusBarItemsdefaults (a ReadonlyArray lint failure). The clause was redundant: the five_*StatusBarDefaultAddedflags are allPersistedUIStatekeys, soas constalone preserves the literal-tuple typing andui[flag]indexing. - Cycle guards intact —
wouldCreateProjectGroupCycle/resolveProjectGroupParentGroupId/getNextProjectGroupSiblingTabOrderand theproject-group-operations.tspersistence path survive the merge unchanged.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

Summary
parentGroupId): create inside from the group menu / focused switcher, and Move into another client (including Top level) from the group⋯menu.parentGroupIdwith cycle guards; menus show hierarchy when moving projects or groups.Test plan
⋯, choose Move into another client → Akira and confirm nesting + indentation⋯, use New client inside… and confirm the child appears under AkiraMade with Cursor