mirror of
https://github.com/bitbaum/openclaw.git
synced 2026-12-05 10:17:27 +01:00
* fix(ui): stabilize sidebar session list with a single projection owner The sidebar flickered as gateway events arrived: rows popped out when runs ended (active/pinned page bypass), rows jumped within createdAt ties after paging (per-publish created-order pruning), child trees auto-collapsed when a descendant went idle (per-render derivation), and running-row subtitles blank-flashed between observer/narration updates. SidebarSessionProjection now owns all presentation stability for the sidebar lifetime: sticky page membership with user-action reset boundaries, a monotonic bounded created-order registry, latched child expansion with an explicit collapsed-by-user mode, and a last-subtitle hold per active run. The scattered mechanisms it replaces are deleted (limitSidebarSessionRows, partitionSidebarVisibleSections, per-publish order pruning, three expansion key sets). * fix(ui): hold running-row subtitles across run rotation with a display floor Live A/B on a dev gateway showed two residual subtitle defects: the hold was keyed to the exact active-run-id set, so the queued->running rotation still blanked the row, and racing ambient sources (observer digest, narration, work path) swapped the line A->B->A within a second. The hold now lives for the session's running lifetime and ambient replacements respect a 2s minimum display floor (matching the narration throttle); attention, agent status, and the queued explanation bypass the floor because the operator must act on them. * test(ui): assert subtitle holds on non-localized sources The run-rotation and critical-replacement tests asserted the localized queued string through the shared i18n singleton; in the striped ui CI lane (shared module graph, isolate=false) that resolution is environment- sensitive and failed in checks-node-compact-large-11. Narration and agentStatusNote exercise the same hold invariants with raw strings. * fix(ui): reset sticky sidebar membership when grouping changes ClawSweeper finding: grouping switches can re-emit the same section id (e.g. ungrouped) with a different row population, so sticky keys must not carry across; grouping now joins the membership reset boundary with a regression row in the boundary table. The created-sort e2e migrates to the sticky contract: an externally discovered newest session still lands on top, and the previously visible page is retained instead of evicted.