Skip to content

fix: reveal active nested sessions in the sidebar - #192974

Merged
roboclaw-bot merged 12 commits into
mainfrom
openclaw/reveal-active-session-ancestors
Nov 5, 2026
Merged

roboclaw-bot merged 12 commits into
mainfrom
openclaw/reveal-active-session-ancestors

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • Reviewed source: 1c12515bb627444df363abebd40163eb8b1b9cfd; published head a2352ed8ec5ecf5759a23c15777f8287d81eb1e8 has 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 baseline b6d6079da6edcbc35f7d86d9abf475429a1e7a69 after 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.
  • Exact CI-base repair: integrated 0fd7cc749198916d05c2d607ed59c7eb1bbffb64 because 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.
  • Test-cost allocation: config/test-lines-allocations/reveal-active-session-ancestors.txt grants 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.
  • Performance: final qualification is the exact-head control-ui-performance result 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.
  • Inherited UI failure: the offline-catalog case in chat-pane-session-controls.test.tsx fails identically on exact CI base 0fd7cc749198916d05c2d607ed59c7eb1bbffb64 and the merged candidate (expected Offline, received Disconnected; 14 other tests pass). Its test and production files are unchanged by this patch.
  • Independent review: after local ClawSweeper's endpoint Git reads became unavailable, the documented isolated Codex autoreview fallback completed a full P0–P3 review of 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.

Before — active nested child hidden behind collapsed ancestors

After — all ancestors expanded and active child visible

Worked on by

roboclaw-bot and others added 3 commits November 4, 2026 18:52
Worked on by:
- @jacobtomlinson

Co-authored-by: jacobtomlinson <[email protected]>
OpenClaw-Publication: 30033d19-4e67-43ab-9d16-fe5ce537f86b
@clawsweeper

clawsweeper Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: M labels Nov 4, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 4, 2026
@clawsweeper

clawsweeper Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Opening 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.

  • Before: The conversation opens, but its sidebar location remains hidden.
  • After: Documentation and the ancestor path expand, while Website stays collapsed.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Focused repair using existing owners, supported by inspected UI proof and distinct navigation regressions, with no actionable findings.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots exercise the actual Control UI with synthetic Gateway fixtures and show the selected nested path revealed while Website remains collapsed; supplied browser execution covers Waiting on, direct navigation, history, and manual-collapse preservation.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Opening a nested conversation can leave its selected sidebar row hidden behind collapsed ancestors and its owning section.
Reason: The maintainer-authored direction provides useful navigation context, credits @jacobtomlinson, and preserves subsequent manual disclosure choices.

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
Reviewed head: a2352ed8ec5ecf5759a23c15777f8287d81eb1e8

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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
Loading

Technical review

Best 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

  • Deep-link child initialization keeps the original intent (e5da341: Avoid treating existing children arriving after a route placeholder as newly created children that should expand their parent.)
  • Latched disclosure and stable membership keeps the original intent (fix(ui): stabilize the sidebar session list with a single projection owner #129150: Prevent automatic collapse and sidebar membership churn during run-state and roster updates.)
  • Required rows bypassing pagination changes intended behavior with a stated reason (6eaf521: Keep selected and pinned rows visible through the canonical pagination pass; this PR extends that treatment to ancestors containing the selection.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source +57, Tests +309, Docs +2, Other +5. Total +373 across 9 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 4 65 8 +57
Tests 3 309 0 +309
Docs 1 2 0 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 1 5 0 +5
Total 9 381 8 +373

Preflight source

Source 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

Metric Value Why it matters
Production versus regression-test changes Production +65/-8; tests +309/-0 Production growth stays within existing owners; regression coverage distinguishes late lineage, pagination, disclosure lifetime, and browser navigation while sharing the existing browser boot.

Labels

Label changes:

  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: The conversation remains usable, but hidden sidebar ancestry makes navigation and orientation harder.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-11-04T19:59:26.785Z sha aff196d :: needs changes before merge. :: none

Reviewed November 5, 2026, 7:33 AM ET / 12:33 UTC (Revision 2).

roboclaw-bot and others added 9 commits November 4, 2026 20:18
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
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 5, 2026
@roboclaw-bot
roboclaw-bot merged commit 16daab2 into main Nov 5, 2026
107 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/reveal-active-session-ancestors branch November 5, 2026 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant