Skip to content

fix(ui): use Last updated for fresh sidebar preferences - #196489

Merged
vyctorbrzezowski merged 3 commits into
mainfrom
openclaw/guestfix-g12-nov10
Nov 11, 2026
Merged

vyctorbrzezowski merged 3 commits into
mainfrom
openclaw/guestfix-g12-nov10

Conversation

@roboclaw-bot

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

Copy link
Copy Markdown
Collaborator

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

  • Red/green: missing/invalid preference cases failed on the base with Created instead of Updated. Browser regressions also failed on the base for Reset and its changed-state indicator, then passed with the fix.
  • Focused tests: 64 persistence/navigation tests passed across three files (1.81 s invocation). The changed persistence file passed 19 tests on its own (594 ms Vitest duration; 2.30 s command wall time). The full Chromium filter-menu file passed 17 tests (25.06 s), including saved Created/Updated/Owners across remount, Reset, keyboard navigation, and unchanged Status-only filter-dot behavior. The three new remount cases together took 752 ms. CI timing is pending.
  • Test budget: exactly 43 net regression/fixture lines are allocated in g12-sidebar-updated-default.txt for missing/invalid preferences, saved-choice remounts, Reset/indicator agreement, and 16 additional lines making existing sort-dependent fixtures explicit. The staged test-line ratchet passed with zero slack.
  • Real product path: an isolated real Gateway with synthetic durable sessions and the source Control UI reproduced Created-first ordering before the fix and activity-first ordering afterward at 1280×800 and 390×800. Visible controls verified Created selection and Reset back to persisted Updated. No mocked Gateway responses or model calls were used for this proof.
  • Checks: UI production and UI-components test typechecks, targeted oxlint, touched-file formatting, docs inventory, and git diff --check passed.
  • Independent review: canonical autoreview, medium reasoning, P0–P2, one pass over base a7ba22b and the exact staged candidate: scoped-clean, no findings. This was a source/context assessment; the independent reviewer did not execute tests.
  • Limits: proof used the source UI, not a production bundle, and Chromium, not WebKit. An initial Chromium fixture setup failed because its temporary socket path was too long; that fixture-only path issue was corrected before both successful real-Gateway runs. Screenshots below were captured, inspected, uploaded, and verified visible in the actual PR. The originating mobile pair was delivered. No full-build or CI result is claimed.

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.

Before After
Before: fresh sidebar uses Created After: fresh sidebar uses Last updated
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

Before: desktop Created default

After

After: desktop Last updated default

Contributor: @vyctorbrzezowski.

Work sessions

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

Worked on by

roboclaw-bot and others added 2 commits November 10, 2026 06:37
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 11051163-2cbc-430a-b995-5b79152a544e
@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: S labels Nov 10, 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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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: blocked before merge.

What this changes

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

  • Before: Created ordering puts the newly created conversation first.
  • After: Last updated ordering puts the older, recently active conversation first.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The implementation is focused and supported by real UI evidence, with upgrade validation still incomplete.
Proof confidence 🦐 gold shrimp (3/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Fresh sidebar preferences favor creation time, so an older conversation with recent activity can appear below a newly created conversation.
Reason: The maintainer-authored PR approves activity-first ordering, preserves explicit preferences, and updates Reset consistently; no additional direction approval is needed.

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
Reviewed head: 00d683328dfadbd57c7ab3e404fe234c84f4c5e6

Before merge

  • Add data-model compatibility proof - The review found that existing stored data may not work after upgrade. Show that existing data still loads and works with this change.

Findings

None.

Tests

  • Missing end-to-end proof: Supply a latest-stable-to-candidate upgrade run showing saved Created, Updated, and supported Owners choices survive with other settings and session data intact.
Agent review details

How this fits together

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

Technical review

Best 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

  • Initial sidebar sort changes intended behavior with a stated reason (9455286: The persistence repair deliberately kept Created as the stable default while making explicit selections durable.)
  • Reset and changed-state detection keeps the original intent (188e031: Reset intentionally restores visible Display settings as well as filters; the Solid migration preserved that responsibility.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Raw commit 9455286 adds ui/src/components/app-sidebar-session-types.ts:268 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 94552862ad84; files: ui/src/components/app-sidebar-session-types.ts)

PR surface

Source +4, Tests +27, Docs +2, Other +2. Total +35 across 6 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 2 7 3 +4
Tests 2 35 8 +27
Docs 1 3 1 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 1 2 0 +2
Total 6 47 12 +35

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:

  • P3: This changes a recoverable sidebar display default; users already have an in-product sort selector.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.

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.

Reviewed November 10, 2026, 2:09 AM ET / 07:09 UTC.

@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review November 11, 2026 01:14
@vyctorbrzezowski
vyctorbrzezowski enabled auto-merge (squash) November 11, 2026 03:33
@vyctorbrzezowski
vyctorbrzezowski merged commit 3a4afb1 into main Nov 11, 2026
95 of 98 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the openclaw/guestfix-g12-nov10 branch November 11, 2026 03:39
@vyctorbrzezowski

Copy link
Copy Markdown
Member

Merged via squash auto-merge.

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

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]>
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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants