Repository navigation
fix(ui): restore custom page and session ordering - #123530
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 14, 2026, 4:51 AM ET / 08:51 UTC. ClawSweeper reviewWhat this changesThe PR renders the Control UI’s reconciled page/session list in saved order again and dispatches tool-bound Gateway turns instead of injecting them into an active run. Regression provenancePossible regression — probable (reviewed change; failure trace). No predecessor PR is attributed. Merge readinessKeep open for maintainer review: the UI fix directly restores the canonical persisted sidebar order, but it intentionally reverses the recently shipped separate-Pinned-group presentation decision. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI reconciles gateway-synced sidebar preferences with available routes and pinned sessions, then renders that list as navigation. Gateway chat requests either inject into an eligible active run or proceed through normal dispatch, preserving the incoming turn’s tool bindings. flowchart LR
A[Saved sidebar preferences] --> B[Sidebar reconciliation]
C[Available routes and pinned sessions] --> B
B --> D[Control UI sidebar]
E[Gateway chat request] --> F{Has tool bindings?}
F -->|Yes| G[Normal turn dispatch]
F -->|No| H[Active-run injection when eligible]
Decision needed
Why: Both behaviors were deliberately shipped recently; source alone cannot choose the intended operator experience. Before merge
Agent review detailsSecurityNone. PR surfaceSource -39, Tests +44. Total +5 across 12 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Confirm that persisted sidebar order is the product contract, then land this direct-render repair once the exact head’s required checks are green. Do we have a high-confidence way to reproduce the issue? Yes—on current main, persist route:usage, session:agent:main:alpha, route:plugins; reconciliation preserves it, while the renderer filters routes before sessions. The branch’s focused UI case encodes the resulting expected order. Is this the best way to solve the issue? Yes for the source-proven ordering defect: rendering the reconciled list directly is the narrow owner-boundary fix. Whether that restored behavior is the intended product policy needs maintainer confirmation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 0bd50cc0a5ba. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles)
|
48c0dc8 to
99a5c8b
Compare
e692288 to
3523d56
Compare
Render pinned sessions at their persisted slots among page entries again instead of projecting them into a separate group. This restores custom page/session interleaving regressed by #121712 while preserving drag-to-pin behavior.
3523d56 to
0714a0d
Compare
|
Rank-up moves addressed:
No ClawSweeper finding remains; the review's product decision and CI conditions are resolved. |
|
Merged via squash.
|
* fix(ui): restore interleaved sidebar ordering Render pinned sessions at their persisted slots among page entries again instead of projecting them into a separate group. This restores custom page/session interleaving regressed by openclaw#121712 while preserving drag-to-pin behavior. * test: consolidate steering authority fixtures * test: isolate CLI commentary fixture * fix: dispatch tool-bound turns normally
Related: #121712
What Problem This Solves
Fixes an issue where operators who customized the Control UI sidebar to interleave pages with pinned sessions would have that order discarded at render time. A persisted order such as
Usage → Quarterly dashboard → Pluginsinstead rendered all pages first and moved every pinned session into a separate Pinned group.This regressed the mixed, drag-ordered sidebar zone introduced in #110682.
Why This Change Was Made
The reconciled sidebar list is already the canonical heterogeneous order for routes, Workboard entries, and pinned sessions. This change renders that list directly again and removes the second presentation-only partition that grouped entries by type.
The shared drag/drop owner and persisted preference shape are unchanged. Pinning, unpinning, page hiding, and ordering continue to write through the existing canonical list.
Exact-head CI also exposed four deterministic Node shard failures that were already red on current
main. During the conflict-required rebase, #123549 landed the shared synchronous-subscription and exact-run authority repairs. This branch retains the missing owner-boundary rule that routes requests with new tool bindings through normal dispatch instead of an existing run with a different tool surface, and consolidates stale reply-operation test doubles into one typed fixture.User Impact
Operators can once again arrange pages and pinned sessions in any order. Existing customized layouts render as saved instead of silently moving sessions below every page.
The CI repair preserves active-run steering while keeping per-turn tool bindings fail-closed and prevents immediate terminal events from being lost during queued steering setup.
Evidence
Usage → Alpha → Pluginsbut receivedUsage → Plugins → Alpha.node scripts/run-vitest.mjs ui/src/components/app-sidebar.test.ts ui/src/lib/sidebar-zone.test.ts— 259 passed.node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/session-management.sidebar.e2e.test.ts -t "pins a session dropped below an existing row in the interleaved sidebar zone"— 1 passed; the mocked Gateway observed the realsessions.patchpin and the resulting order.ui.prefs.sidebarEntries = [route:usage, session:agent:main:dashboard, route:plugins]throughconfig.get, observed exactlyUsage → Quarterly dashboard → Plugins, confirmed no Pinned heading, and produced the after screenshot above.origin/main. Keeping the shared authority fixture on the canonicalmainagent while isolating that subprocess case restored both the commentary test (3/3) and its CLI-session sibling (12/12).node scripts/check-changed.mjs --timed— all selected core, core-test, and UI lanes passed locally. Blacksmith Testbox was unavailable; a Daytona raw-sync attempt also stopped before project checks because.gitwas absent, so exact-head hosted CI remains the remote merge gate.AI-assisted with Codex; the maintainer independently inspected the owners, callers, drag/drop path, queue lifecycle, authority revalidation, upstream Codex turn-steering contract, tests, history, rendered behavior, and final diff.