Repository navigation
fix(ui): use Last updated for fresh sidebar preferences - #196489
Conversation
Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 11051163-2cbc-430a-b995-5b79152a544e
|
🦞👀 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: blocked before merge. What this changesThis PR makes Last updated the sidebar’s default sort and Reset target while preserving valid saved choices. Example: A fresh browser profile shows an older conversation active at 10:00 and a conversation created at 09:00.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 1 item remains Keep open: this maintainer-authored PR makes a coherent, approved default change that current main does not provide; no introduced correctness defect was found. Priority: P3 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI loads browser-local sidebar preferences into its navigation owner, which supplies sorting and menu state; Reset persists changes through the existing preference setter. flowchart LR
A[Browser preferences] --> B[Preference loader]
B --> C[Sidebar navigation owner]
D[Shared default] --> B
D --> E[Filter and sort panel]
E --> C
C --> A
C --> F[Ordered session rows]
Technical reviewBest possible solution: Keep the shared Last updated default while retaining explicit saved choices and the existing unsupported-Owners behavior. Do we have a high-confidence way to reproduce the issue? Current-main and stable source confirm the Created fallback, and the supplied before screenshots show it; this is a change to previously intentional behavior rather than an independently established upstream bug. Is this the best way to solve the issue? The patch is the smallest complete implementation: one default in the existing preference module serves loading, Reset, and changed-state detection without altering sorting semantics or storage format. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against baccc7e15291. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +4, Tests +27, Docs +2, Other +2. Total +35 across 6 files. Added test files: 0. 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. LabelsLabel changes: No label 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 Reviewed November 10, 2026, 2:09 AM ET / 07:09 UTC. |
|
Merged via squash auto-merge.
|
) Use Last updated when no valid sidebar sort is saved, and make Reset use the same default. Preserve explicit saved choices. Align existing selection, paging and refresh fixtures with their intended sort contract. Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: Vyctor H. Brzezowski <[email protected]>
What Problem This Solves
Fixes: fresh sidebar preferences start in Created order instead of Last updated, and Reset treats Created as the default.
User Impact
User impact: the sidebar starts with the latest conversation activity when no valid saved sort exists, and Reset returns to Last updated. Explicit saved Created, Last updated, and supported Owners choices remain honored. Other filters, grouping, empty-group defaults, pin priority, and sorting semantics are unchanged.
Why This Change Was Made
Use one shared default for preference loading, Reset, and the panel's changed-state indicator so these paths agree. Keep the existing unsupported-Owners downgrade to Created; no migration or new setting is introduced.
Evidence
Maintainer validation
The correction changes only existing test fixtures/expectations and their per-change allowance. No additional production code or new test cases were added. The affected sidebar suites passed 288 tests (15.27 s), Chromium row-work/visibility passed 7 (2.88 s), and lint/format passed for all 12 edited test files. The official test-line ratchet passes with zero slack.
The prior CI failure in the unrelated plugin-routing test did not reproduce in one local run (35/35 passed). That test mounts the plugin page without a sidebar; its cause is not established or claimed fixed. Fresh CI remains required.
A separate animation restart when existing rows move was reproduced on pre-PR code with Last updated explicitly selected. The refresh-only fixture now retains relative recency, keeping its element/animation/time assertions intact; this PR does not attempt a product fix for row-move animation behavior.
Static-size waiver: Current CI reports a 28-byte normalized-gzip chat-boot overage (1,301,159 B against 1,301,131 B). This is new output size, not an inherited failure. The maintainer-approved budget waiver applies; the approved behavior and useful coverage are preserved.
Screenshots
Mobile, 390×800, dark theme, real isolated Gateway and source UI. All four actual-PR images decoded and were fully visible. The mobile pair is side by side, fully visible, without overflow. Originating mobile-pair delivery is verified.
Desktop context, 1280×800
The selected default and row ordering are the proof target; asynchronously resolved identity and permission chrome differ between these independent fixture runs.
Before
After
Contributor: @vyctorbrzezowski.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by