Skip to content

fix: converted sessions cannot expand child conversations - #196472

Merged
roboclaw-bot merged 8 commits into
mainfrom
openclaw/mellow-shrimp-7
Nov 10, 2026
Merged

roboclaw-bot merged 8 commits into
mainfrom
openclaw/mellow-shrimp-7

Conversation

@roboclaw-bot

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

Copy link
Copy Markdown
Collaborator

Related: #193605

What Problem This Solves

Fixes: clicking the child-session disclosure on an already-converted Beam or coding-session row does nothing, while its children can appear separately in the sidebar.

User Impact

Converted conversations now expand and open their normal nested child sessions, with working pagination, collapse, and selected-child ancestry. Existing owner and Involving me filters remain intact. No permission, configuration, or stored-data changes are required.

Why This Change Was Made

The converted row had native controls but still lacked the native tree's child projection and expansion lifecycle. One lazy native-tree projection now serves rendering, activity, disclosure discovery, and PR indicators. Converted parents are placed only after building and owner-filtering their complete hierarchy, avoiding orphaned duplicates without losing matching descendants. Selection reveal opens the owning catalog/project group and pagination window once per navigation, while preserving later manual collapse and Show less choices.

Evidence

  • Bundled production browser reproduction failed on the original code: the five-child disclosure stayed aria-expanded="false" after activation. Separate red/green proofs cover filtered-host admission, owner-filtered counts, matching-child promotion, and Back navigation to a child whose catalog parent is beyond the first five entries or inside a collapsed project group.
  • Bundled browser proof: 7 scenarios passed across two files, including nested grandchildren, Show more through the sixth grandchild, repeated already-loaded toggles, owner/Involving me filters, catalog pagination, collapsed-section ancestry restoration, subsequent manual choices, existing Beam links, and continuation/retention siblings. The final type-only repair has identical erased runtime ASTs, so this behavioral proof remains applicable.
  • 93 focused owner, projection, catalog, and snapshot contracts passed across five files. Earlier native-tree and PR-indicator proof is retained where inputs are unchanged. Current UI, UI-components, and UI-E2E typechecks, scoped lint, formatting, the exact test-line ratchet, and whitespace checks passed. Existing Solid reactivity warnings remain. Exact new-head CI is pending; prior-head CI is not relabeled as new-head proof.
  • Fresh independent P0–P2 and local autoreview (Codex, P2) were clean for the complete candidate against 78e73aa80aea1806f1e9f039764b5195b0694865; both also reviewed the final two-file type repair against 89826b75ec46dc9837b7a1630aaa985d9a920792 and found no remaining actionable findings. The selected local fallback was used because local ClawSweeper setup was unavailable. The refreshed hosted review confirmed the earlier ancestry and bundle findings were fixed and identified only the static import cycle. The final repair replaces concrete owner/renderer dependencies with leaf structural contracts; the actual Madge check now reports zero cycles, with no runtime code or import changes.
  • Inspected synthetic before/after screenshots are attached to this PR and were delivered in the work session. No private session contents were used in the captures. This proves the actual bundled UI against an isolated mock Gateway, not Vincent's authenticated browser.
  • The unchanged same-host comparison against a7ba22b91b85e859e63ac09fcf18722f13d6f301 passes: normalized chat-boot gzip 1,298,789 B → 1,298,844 B (+55 B, within the existing 64 B build-variance allowance), 20 requests unchanged; largest ordinary chunk 550.8 KiB versus its 551.3 KiB limit. This evidence is retained across the final type-only, runtime-identical repair. One loaded catalog runtime and prepared row facts replace duplicate projections, activity adapters, and manual-state serialization. No budgets or baselines were raised.
  • The existing browser test grows by 109 lines under its exact dedicated allocation; the local ratchet is 6,617,494 lines against a 6,617,494 ceiling. The earlier prepared-base 70-line debt was not added to this grant. Published head e39e6f78d1c93f4ecdca388c4fd3114de04771cf has the same tree as verified and reviewed commit f071f18f3628c60ccd4ec9a5077a759b9a7a0fd8.
  • Completed prior-head CI run 42782986590 failed the now-repaired static-cycle guard and formatting in four unrelated release-tooling files. Those four files and formatter/configuration/lockfile inputs are identical to the original base. The CI classifier labels formatting “new” because its matching main job passed without a selected-scope comparison; that label is retained rather than represented as green. No unrelated release files were edited, no CI rerun was requested, and current-head checks remain required.

Reported and co-authored by @vincentkoc.

Work sessions

Linked for team reference; these sessions aren’t public.

Worked on by

roboclaw-bot and others added 2 commits November 10, 2026 05:57
Use the native session tree and expansion lifecycle for converted catalog rows, retain owner and involvement filters, and avoid orphaned duplicate children. Extend the existing browser flow with 56 allocated regression lines covering disclosure, filtering, pagination, navigation and ancestry restoration.

Co-authored-by: vincentkoc <[email protected]>
Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 97b90201-b3ab-4722-9d60-723277d5ca13
@clawsweeper

clawsweeper Bot commented Nov 10, 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 10, 2026
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Converted child-session disclosure — browser proof

Synthetic data rendered by the actual bundled Control UI, light theme, 1280×900 viewport. Both frames follow activation of the same five-child disclosure. These crops contain only the relevant sidebar; no private session data is included.

Before

The disclosure stays closed and children appear separately.

Before: converted row remains collapsed with orphaned child rows

After

The native nested tree expands, shows four children plus pagination, and does not duplicate the children as top-level rows.

After: converted row expands one native child-session tree

The committed regression additionally checks filtered descendants, collapse, opening a native child transcript, and ancestry restoration on return.

@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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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 10, 2026
@clawsweeper

clawsweeper Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

Converted catalog conversations reuse the native session tree for child disclosure, pagination, filtering, and navigation reveal.

Example: Expand Collaborative coding under Involving me, with five admitted Shared follow-up conversations.

  • Before: The disclosure stays closed and the children appear separately.
  • After: Four children appear beneath the converted parent, with Show 1 more and no duplicate root rows.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful repair with direct browser proof and both earlier blockers resolved; the introduced static cycle still blocks the architecture gate.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected screenshots show the actual bundled Control UI against synthetic mock-Gateway data changing from failed converted disclosure and orphaned children to one expanded native tree with pagination; the extended browser flow covers filtering, nested toggles, child navigation, and collapsed catalog ancestry.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Clicking a converted conversation’s child disclosure does nothing while its children appear separately.
Reason: This maintainer-authored repair restores an existing native-session interaction while preserving catalog grouping and filters.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep this PR open: it repairs a real sidebar bug and resolves both previous findings, but a newly introduced static import cycle fails the architecture check.

Priority: P2
Reviewed head: 89826b75ec46dc9837b7a1630aaa985d9a920792

Before merge

  • Remove the catalog helper’s dependency on AppSidebarOwner (P2) - This new type import closes a static cycle: app-sidebar-session-catalog-row.ts → app-sidebar-owner.tsx → app-sidebar-session-catalog-render.tsx → app-sidebar-session-catalog-row.ts. The repository’s madge checker includes type imports, so the cycle fails the required architecture check even though the import is erased at runtime; current-head annotations confirm madge-import-cycles failed. Describe the reveal operation’s required host members with a narrow structural contract instead of importing the concrete owner, preserving the existing lazy boundary.

Findings

  • [P2] Remove the catalog helper’s dependency on AppSidebarOwner — ui/src/components/app-sidebar-session-catalog-row.ts:9
Agent review details

How this fits together

The Control UI combines Gateway session lists, catalog bindings, and loaded child windows into sidebar projections that feed native tree rendering and conversation navigation.

flowchart TD
  A[Gateway session lists] --> C[Sidebar projection]
  B[Catalog bindings] --> C
  C --> D[Native session tree]
  D --> E[Disclosure owner]
  E --> F[Sidebar renderer]
  F --> G[Conversation navigation]
Loading

Technical review

Best possible solution:

Retain the shared native tree and navigation reveal, replacing the catalog helper’s concrete sidebar-owner dependency with a narrow structural host contract.

Do we have a high-confidence way to reproduce the issue?

Current-main source exposes the flat converted-row path, and the inspected bundled-browser before/after images corroborate the disclosure failure; this review executed no target code.

Is this the best way to solve the issue?

The defect is a converted row disconnected from the native child lifecycle; the invariant is one filtered, discoverable hierarchy, and the smallest complete fix reuses the existing reference, tree, disclosure, and section owners.

Full review comments:

  • [P2] Remove the catalog helper’s dependency on AppSidebarOwner — ui/src/components/app-sidebar-session-catalog-row.ts:9
    This new type import closes a static cycle: app-sidebar-session-catalog-row.ts → app-sidebar-owner.tsx → app-sidebar-session-catalog-render.tsx → app-sidebar-session-catalog-row.ts. The repository’s madge checker includes type imports, so the cycle fails the required architecture check even though the import is erased at runtime; current-head annotations confirm madge-import-cycles failed. Describe the reveal operation’s required host members with a narrow structural contract instead of importing the concrete owner, preserving the existing lazy boundary.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 09723cdcad18.

Provenance checked

  • Converted native rendering and catalog placement keeps the original intent (c2521d7: Keep adopted sessions selectable as native rows inside their catalog without duplicate ordinary-list placement.)
  • Complete session forest before catalog exclusion keeps the original intent (8c2996e: Share session-tree projection across sidebar modes while preserving catalog placement.)
  • Explicit-reference child projection keeps the original intent (49aa6fc: Personal placements retain their child hierarchy and live disclosure behavior through the existing reference owner.)
  • Navigation-scoped ancestor and section reveal keeps the original intent (16daab2: Reveal the selected path through existing section operations while preserving later manual collapse and pagination choices.)
  • Projection memoization and publication keeps the original intent (6f24d83: Avoid repeated sidebar projection using explicit source identities and invalidation inputs.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm check:madge-import-cycles
  • pnpm tsgo:ui
  • pnpm test:ui:e2e ui/src/e2e/session-catalog-involvement.e2e.test.ts ui/src/e2e/external-session-catalogs.e2e.test.ts
  • pnpm ui:check-performance:base a7ba22b
  • git diff --check

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 6f24d83 adds ui/src/components/sidebar-projection-memo.ts:70 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 6f24d835b4a5; files: ui/src/components/sidebar-projection-memo.ts)
  • RoboClaw: Raw commit 16daab2 adds ui/src/components/app-sidebar-child-expansion.ts:19 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 16daab2e6864; files: ui/src/components/app-sidebar-child-expansion.ts)

PR surface

Source +107, Tests +109, Docs +1, Other +2. Total +219 across 16 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 13 266 159 +107
Tests 1 114 5 +109
Docs 1 2 1 +1
Config 0 0 0 0
Generated 0 0 0 0
Other 1 2 0 +2
Total 16 384 165 +219

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.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: Converted child disclosure is a concrete Control UI navigation defect with limited scope and an existing way to open children separately.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • 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-10T06:26:02.850Z sha 8c5e5cd :: needs changes before merge. :: [P2] Reveal the owning catalog section when restoring a selected child | [P2] Reduce catalog projection overhead to satisfy the existing byte gates

Reviewed November 10, 2026, 3:36 AM ET / 08:36 UTC (Revision 2).

roboclaw-bot and others added 4 commits November 10, 2026 07:02
Reuse the lazy catalog tree owner for native activity, disclosure and PR indicators. Filter the complete hierarchy before catalog placement and reconcile owner-filtered navigation keys.

Co-authored-by: vincentkoc <[email protected]>
Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: ac6d9054-ec71-4838-9ae1-2678f0a283ae
Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: ddc3db24-652a-4ddd-9d2a-5bf513a34fbb
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 10, 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. labels Nov 10, 2026
@clawsweeper clawsweeper Bot 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 10, 2026
roboclaw-bot and others added 2 commits November 10, 2026 08:43
Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 1265bd61-2719-4b90-87ce-2c73b796357a
@roboclaw-bot
roboclaw-bot merged commit e02f38d into main Nov 10, 2026
88 of 91 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/mellow-shrimp-7 branch November 10, 2026 09:23
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 11, 2026
…96472)

* fix: converted sessions cannot expand child conversations

Use the native session tree and expansion lifecycle for converted catalog rows, retain owner and involvement filters, and avoid orphaned duplicate children. Extend the existing browser flow with 56 allocated regression lines covering disclosure, filtering, pagination, navigation and ancestry restoration.

Co-authored-by: vincentkoc <[email protected]>

* fix: converted sessions cannot expand child conversations

Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 97b90201-b3ab-4722-9d60-723277d5ca13

* fix: share converted session tree projections

Reuse the lazy catalog tree owner for native activity, disclosure and PR indicators. Filter the complete hierarchy before catalog placement and reconcile owner-filtered navigation keys.

Co-authored-by: vincentkoc <[email protected]>

* Publish openclaw/mellow-shrimp-7

Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: ac6d9054-ec71-4838-9ae1-2678f0a283ae

* fix: reveal converted child ancestry across catalog groups

Co-authored-by: vincentkoc <[email protected]>

* Publish openclaw/mellow-shrimp-7

Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: ddc3db24-652a-4ddd-9d2a-5bf513a34fbb

* fix: break converted sidebar type import cycles

Co-authored-by: vincentkoc <[email protected]>

* Publish openclaw/mellow-shrimp-7

Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 1265bd61-2719-4b90-87ce-2c73b796357a

---------

Co-authored-by: vincentkoc <[email protected]>
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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: L status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant