Repository navigation
fix: reveal active nested sessions in the sidebar - #192974
Conversation
Co-authored-by: jacobtomlinson <[email protected]>
Co-authored-by: jacobtomlinson <[email protected]>
Worked on by: - @jacobtomlinson Co-authored-by: jacobtomlinson <[email protected]> OpenClaw-Publication: 30033d19-4e67-43ab-9d16-fe5ce537f86b
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesOpening a nested session reveals its sidebar ancestor path and owning section while preserving subsequent manual collapse choices. Example: Follow Waiting on to Verify the release candidate beneath three collapsed ancestors in Documentation.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR addresses a current sidebar navigation bug, and no actionable introduced defects were found; the previous merge conflict is resolved. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI sidebar combines admitted session rows with route selection, then projects grouped and paginated trees through existing disclosure owners. flowchart TD
A[Session route] --> C[Sidebar projection]
B[Admitted session rows] --> C
C --> D[Child expansion owner]
C --> E[Section organizer]
D --> F[Visible sidebar tree]
E --> F
Technical reviewBest possible solution: Keep navigation-driven reveal in the existing expansion, pagination, and section owners while preserving manual disclosure choices. Do we have a high-confidence way to reproduce the issue? Current main preserves an explicit ancestor collapse without observing navigation to its existing descendant; the supplied before screenshot shows that descendant's conversation open while its sidebar path remains hidden. Is this the best way to solve the issue? The patch fixes navigation at the shared projection boundary, retains the placeholder safeguard, and reuses existing pagination and section operations instead of changing individual links. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 8345610b869b. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +57, Tests +309, Docs +2, Other +5. Total +373 across 9 files. Added test files: 1. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed November 5, 2026, 7:33 AM ET / 12:33 UTC (Revision 2). |
Integrate main only to resolve the modify/delete conflict from #192777. Keep the retired test file removed and register only the new reveal scenario in the current sidebar-menu suite, sharing its existing browser boot. Co-authored-by: jacobtomlinson <[email protected]>
Worked on by: - @jacobtomlinson Co-authored-by: jacobtomlinson <[email protected]> OpenClaw-Publication: bae28fa5-93f3-47d3-8525-fcffd84d2971
Use the owning tree's active-descendant facts in the existing observation pass instead of recursively finding the selection again. Keep the route selection in the projection input so incomplete refresh rows do not masquerade as a navigation. Co-authored-by: jacobtomlinson <[email protected]>
Keep navigation identity in the disclosure owner: reusing the broader projection snapshot measured 118 more gzip bytes. The compact latch passes the actual branch-versus-main boot gate without changing any budget. Co-authored-by: jacobtomlinson <[email protected]>
Do not conflate running descendants with the visually selected descendant. Reuse recursive unwinding instead of allocating a path per tree node, keep stable route identity across partial refreshes, and cover an unrelated running branch in both projection and browser tests. Remove the unnecessary input-only sibling. Co-authored-by: jacobtomlinson <[email protected]>
Worked on by: - @jacobtomlinson Co-authored-by: jacobtomlinson <[email protected]> OpenClaw-Publication: 454d111a-3a4d-44ef-b471-8acf1f471110
Integrate the exact failed-CI base to reproduce its shipped boot graph, remove duplicate navigation lifecycle state, and keep section mutations in their existing owner. Allocate exactly this repair's justified 309 net regression-test lines under the documented test-cost policy; shared scalar and budget constraints stay unchanged. Co-authored-by: jacobtomlinson <[email protected]>
Keep the new navigation latch and reveal set language-private, so their internal names do not enlarge the shipped property surface. Preserve the validated public disclosure operations and selection behavior. The full-source local performance setup was resource-stalled; exact-head PR CI retains the unchanged budget gate. Co-authored-by: jacobtomlinson <[email protected]>
Worked on by: - @jacobtomlinson Co-authored-by: jacobtomlinson <[email protected]> OpenClaw-Publication: 22dd5abf-1201-4f3b-9252-25935fd55bbd
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Requested by @jacobtomlinson.
Work sessions
What Problem This Solves
Fixes: opening a nested child session leaves it hidden behind collapsed sidebar ancestors, including after following a Waiting on link.
User Impact
Opening a nested session reveals its whole ancestor path and owning sidebar section through Waiting on, direct URLs, and browser back/forward. Unrelated branches and sections remain unchanged, including those with running work. Ordinary same-route refreshes respect subsequent manual collapses and Show more choices.
Why This Change Was Made
The sidebar projection owns navigation-scoped reveal bookkeeping for both rows and sections; the section organizer remains the only writer of section settings. A selected-only recursive search unwinds the ancestor path, pagination retains its root, and stable route identity handles partial or late lineage. The new navigation state is language-private. Existing run-only subagent folding stays unchanged.
Evidence
1c12515bb627444df363abebd40163eb8b1b9cfd; published heada2352ed8ec5ecf5759a23c15777f8287d81eb1e8has its identical tree. 154 focused tests and all 11 Chromium scenarios pass, including 20 projection and 22 lineage/snapshot cases. The browser flow exercises three levels, a collapsed owning section, off-cap children, direct URL reload, actual history navigation from an explicitly collapsed path, and an unrelated running branch. The initial browser regression fails on baselineb6d6079da6edcbc35f7d86d9abf475429a1e7a69after navigation, not during setup. Local wall time on the busy host: 66.14 s for the four unit files and 141.78 s for the browser file.0fd7cc749198916d05c2d607ed59c7eb1bbffb64because the previous CI merge-ref used that newer boot graph. Removed duplicate section-reveal lifecycle state. The retired child-expansion test stays removed after upstream fix(ui): prevent nested session archive controls from overlapping #192777; the new flow shares the existing sidebar-menu Chromium boot without duplicating upstream scenarios. Format, lint, UI typecheck, line-cap and test-line gates pass.config/test-lines-allocations/reveal-active-session-ancestors.txtgrants exactly the patch's 309 net regression-test lines, as permitted by the test-cost policy. They cover distinct lineage, pagination, grouped disclosure, manual-collapse, URL and history failures. The shared scalar is untouched; the exact-base ratchet reports 30 lines slack.control-ui-performanceresult in this PR's checks, under unchanged byte ceilings and variance allowances. The local comparison for the language-private candidate stalled in full-source Git archive for over nine minutes, before a build or measurement. That failed setup is not product proof; PR CI uses its pinned Node runtime. No performance-budget exception was added.chat-pane-session-controls.test.tsxfails identically on exact CI base0fd7cc749198916d05c2d607ed59c7eb1bbffb64and the merged candidate (expected Offline, received Disconnected; 14 other tests pass). Its test and production files are unchanged by this patch.0fd7cc749198916d05c2d607ed59c7eb1bbffb64..1c12515bb627444df363abebd40163eb8b1b9cfd, with intact owning/caller/test source context, one full pass and no actionable findings. The earlier proposed transient-section-storage requirement is declined: opening the owning section intentionally uses its existing persisted disclosure operation, like a manual toggle. Unrelated sections and subsequent same-route manual collapse are preserved and tested; the requested repair does not require automatic recollapse or a second transient settings overlay. Hosted ClawSweeper review is tracked separately in the discussion and is advisory under the repository workflow.Before and after
Actual product UI after following Waiting on into the same synthetic three-level hierarchy. Before: the selected conversation opens but its owning group and ancestors stay collapsed. After: the selected path is visible and the unrelated Website section stays collapsed. Later ownership and representation repairs preserve this behavior through the current browser regression. Both images were inspected and verified inline on the actual PR.
Worked on by