Repository navigation
Conversation
|
📝 Walkthrough
Priority: ➖ Normal Severity of issue fixed: Medium Merge Risk: 🔵 Low · up to
|
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Folder-workspace placement now matches the visibility filter.
getFolderWorkspaceHostId(src/renderer/src/components/sidebar/folder-workspace-host-id.ts) delegates togetFolderWorkspaceExecutionHostIdForRows, so anexecutionHostId-first stamp (including a connectionless runtime stamp) decides the section instead of falling back to the focused host. - Repo-less project-group headers get a host. New
getHeaderHostId(src/renderer/src/components/sidebar/host-section-rows.ts) places a group header with an explicit runtime/SSH stamp on its owner host, whileUngrouped,All,Pinned, and groups with neither stamp stay pending-buffered (returnnull); repo headers still resolve throughgetRepoHostId. - Regression tests added.
host-section-rows.runtime-group.test.tspins three cases with exact row arrays; all three fail against the pre-fix buffering path, so they are real coverage rather than theatre. - Scope is broader than the title.
project-group-catalog.tsstamps every fetched group viaprojectGroupWithFetchedOwner(local →local, SSH →ssh:<conn>, runtime →runtime:<env>), so in practice nearly every group header becomes host-owned now, not only runtime-stamped ones. The direction is correct — a local group no longer duplicates under remote host sections — and the unstamped branch is reserved for synthetic/transient groups.
Verification: the four host-section/filter files pass (33 tests), the broader folder-workspace/reveal/host-label/grouping set passes (71 tests), the full src/renderer/src/components/sidebar suite passes (2698 tests), tsc -p config/tsconfig.tc.web.json is clean, and check-changed-code-quality.mjs reports 0 new findings.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
82741b4 to
af9ecb1
Compare
Sync update (
|
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
This run re-reviewed the incremental delta on the PR branch (test-only changes since the prior pullfrog review; production resolver code is unchanged).
- Added
renderedHostFiltertest helper matching the production call. It passesvisibleWorkspaceHostIdsandpreferProjectGrouping: true, mirroringuse-section-rows.ts:220, so the new cases exercise the path the sidebar actually uses rather than the bare resolver. - Added a filtered-both-hosts placement case. Confirms a connectionless runtime-stamped group stays under its owner host when both hosts are visible. This is real coverage: with
getHeaderHostIdreverted, the unbuffered group duplicates under every host run, so the assertion fails against the pre-fix code. - Added an unfiltered-projects-view case. Confirms host headers are not inserted when
preferProjectGroupingis set and no host filter is active — it exercises the early pass-through return athost-section-rows.ts:205-211. This one is a guard, not bug coverage (it passes before and after the fix).
This directly addresses the prior greptile review thread on the test helper; that thread is now resolved. The new test file passes (5/5) and pnpm tc:web is clean.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
A connectionless executionHostId is the group's host. Placement still fell back to the focused server, so the group moved when focus changed. Visibility already honored the stamp. Fixes stablyai#13944
The host-section cases skipped the project-grouping flags the sidebar passes, so they could pass without the filtered view placing the group under its owner. Co-authored-by: Cursor <[email protected]>
addHostSectionRows now requires localHostLabel. The rebased cases omitted it.
af9ecb1 to
5dcc390
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
5c039c48-a102-43da-b67a-77238be47c0c
📥 Commits
Reviewing files that changed from the base of the PR and between af9ecb1a32c329c42d012d58f38b73d2d6d4cbc3 and 5dcc390.
📒 Files selected for processing: 2
src/renderer/src/components/sidebar/host-section-rows.runtime-group.test.tssrc/shared/sidebar-list/host-section-rows.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.
| if (!normalizeExecutionHostId(projectGroup.executionHostId) && !projectGroup.connectionId) { | ||
| return null | ||
| } | ||
| return getProjectGroupExecutionHostIdForRows(projectGroup, defaultHostId) |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
set -o pipefail
printf '%s\n' '--- host-section-rows.ts relevant definitions ---'
nl -ba src/shared/sidebar-list/host-section-rows.ts | sed -n '1,150p;220,340p'
printf '%s\n' '--- project-group-sections.ts relevant definitions ---'
nl -ba src/shared/sidebar-list/project-group-sections.ts | sed -n '1,155p'
printf '%s\n' '--- focused tests and usages ---'
rg -n -F --glob '*.ts' -e 'addHostSectionRows' -e 'getHeaderHostId' -e 'runtime group' -e 'executionHostId' src/shared/sidebar-list src/renderer/src/components/sidebar || test "$?" -eq 1
printf '%s\n' '--- current diff against requested base ---'
git diff --stat 8ba1c9ba09b1a8e4488f67412c6b9eccce2c690b 5dcc390f28653d69f43e87e07f4b8a6f37a35008 -- src/shared/sidebar-list/host-section-rows.ts src/shared/sidebar-list/project-group-sections.ts src/renderer/src/components/sidebar
git diff 8ba1c9ba09b1a8e4488f67412c6b9eccce2c690b 5dcc390f28653d69f43e87e07f4b8a6f37a35008 -- src/shared/sidebar-list/host-section-rows.ts src/shared/sidebar-list/project-group-sections.ts src/renderer/src/components/sidebarRepository: stablyai/orca
Length of output: 41462
🏁 Script executed:
set -o pipefail
printf '%s\n' '--- host-section-rows.ts middle and helpers ---'
nl -ba src/shared/sidebar-list/host-section-rows.ts | sed -n '140,285p'
printf '%s\n' '--- row types and host-filtering helpers ---'
nl -ba src/shared/sidebar-list/row-types.ts | sed -n '1,240p'
nl -ba src/shared/sidebar-list/host-filtering.ts | sed -n '1,180p'
printf '%s\n' '--- header cloning/localization references ---'
rg -n -F --glob '*.ts' -e 'localizePendingRowsForHost' -e 'hostWorktreeCounts' -e 'hostWorktreeIds' -e '...pending' src/shared/sidebar-list src/renderer/src/components/sidebar || test "$?" -eq 1Repository: stablyai/orca
Length of output: 20804
Keep the owner header and copy it only for foreign descendants.
A shared projectGroupId can place a repository descendant under a different host. The current host-owned header is not copied to that host, so the descendant loses its project-group path.
Keep the stamped header assigned to its owner. During host sectioning, emit a host-local copy only for each distinct foreign host that has a descendant in that group's path. Do not make the original header unconditionally pending or return null for every host: if the owner has no descendant, pending-header handling can consume the header under another host and leave the owner section without it.
|
Thank you @innocarpe for working on this. We looked at it closely, and current main already places runtime-stamped folder rows by their host ( |

Description
A project group that belongs to one Orca server was rendered under whichever server was focused. Runtime-owned groups usually carry
executionHostIdand no SSHconnectionId. The sidebar filter already treated that stamp as the group's host, but placement did not, so the group (and its folder workspaces) jumped to the focused server.Focused fix
In:
executionHostId.Out:
Preserves
Ungrouped, All, and Pinned headers, and any project group with neither stamp, stay in the pending buffer and are still copied onto each following host run. A header that already has a repo still follows that repo's host. SSH folder workspaces still follow their connection.
Evidence
node node_modules/vitest/vitest.mjs run --config config/vitest.config.ts --cache false src/renderer/src/components/sidebar/host-section-rows.runtime-group.test.ts src/renderer/src/components/sidebar/host-section-rows.test.tsThe new file pins three cases: a connectionless runtime group stays on its owner while another server is focused, a connectionless folder workspace follows that stamp, and an unstamped group header stays buffered across host runs. The existing host-section tests still pass.
User-regression-tradeoffs
A runtime-stamped group no longer follows the focused server. That is the reported bug. Groups with no host stamp keep the previous shared-header behavior.
Fixes #13944