Repository navigation
feat: save named chat bookmarks with the OpenClaw claw - #140977
roboclaw-bot wants to merge 6 commits into
Conversation
|
🦞👀 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. Reviewed September 7, 2026, 7:42 PM ET / 23:42 UTC. ClawSweeper reviewWhat this changesAdds profile-saved named message bookmarks, searchable management, a hoverable chat position rail, and read-only excerpts from earlier conversation generations. Merge readiness⛔ Blocked before merge - 1 item remains This remains useful work absent from current main and paired with an open feature request. The recorded storage decision addresses the earlier design concern, and this review found no blocking introduced defect. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI turns saved message references into navigation destinations. Existing Gateway preferences store their names and identifiers, while transcript history and media services supply content under current access checks. flowchart TD
A[Message footer or session menu] --> B[Bookmark controls]
B --> C[Profile preferences]
C --> D[Saved message reference]
D --> E{Current conversation generation?}
E -->|Yes| F[Reveal message in chat]
E -->|No| G[Authorized history read]
G --> H[Read-only excerpt]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +1308, Tests +1604, Docs +55, Other +3. Total +2970 across 45 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Mantis proof suggestionAn optional chat interaction capture would make the newly added historical reader directly inspectable alongside the published baseline evidence. A maintainer can ask Mantis to capture proof by posting this exact PR comment: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep bookmarks on the existing profile-preference and transcript-navigation paths, preserving current access checks and saved display preferences. Do we have a high-confidence way to reproduce the issue? Not applicable to the primary feature request; current main lacks named bookmarks, and the submitted tests cover the proposed interactions and persistence behavior. Is this the best way to solve the issue? Yes. Independent preference keys and existing transcript readers avoid a parallel backend, and the recorded decision explicitly accepts the shared quota and consolidation semantics. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 9fb6b2b5ec3b. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (18 earlier review cycles; latest 8 shown)
|
24d5db1 to
3fb48ee
Compare
3fb48ee to
92346d7
Compare
Implementation and validation summaryCommit 4260e4d80b3 addresses the reviewed bookmark issues while reusing the existing preferences service and transcript navigation. No new table, schema version, API, or profile redesign was introduced.
The requesting maintainer approved this existing-preferences approach on September 7, 2026, superseding the dedicated-table proposal in #140468. Shared capacity, target-value precedence on collisions, and the older implementation's downgrade limitations remain documented in the PR description. Validation: post-rebase regression checks, five production-built browser tests, the CI-planner scenario, and documentation checks passed. Independent P0–P2 reviews found no actionable defects. Exact commands and change counts are in the PR description; current automated results remain in the checks and review thread. |
a839770 to
8844542
Compare
1fa44fb to
4260e4d
Compare
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
d14c538 to
43df0bb
Compare
2ce8f83 to
c3a68fc
Compare
Save named message positions using existing profile preferences and native transcript navigation. Keep the original claw before Reply, the physical-left position rail, current-conversation search, and management of unavailable references in the existing session menu. Retain distinct preferences during consolidation without adding a store, schema, API, or profile redesign. Keep new-key admission bounded while allowing existing entries to be edited and removed above the cap. Reveal saved sources through their rendered presentation without changing saved view settings. Consolidate footer actions and keep controls readable on desktop and mobile. Co-authored-by: IWhatsskill <[email protected]> Worked on by: - @IWhatsskill
Move the physical rail and gutter admission to the right, with left-facing claws, ticks and previews. Keep mouse-edge discovery, keyboard focus, touch access and suggestion controls usable without adding persistent state. Retire keyboard-owned previews on pointer acquisition, including reuse of an already-focused marker, and remove the redundant title tooltip. Co-authored-by: IWhatsskill <[email protected]> Worked on by: - @IWhatsskill
Reuse the candidate index for interaction membership, make bookmark types explicit, and use the shared deferred helper in the existing tests. Keep rendering, navigation, profile fencing and storage behavior unchanged. Co-authored-by: IWhatsskill <[email protected]> Worked on by: - @IWhatsskill
Keep text-field focus inside the control, separate adjacent fields, and keep the short Rename/Remove row actions aligned on narrow screens. Preserve editor titles, standalone tooltips, and all bookmark behavior. Align the palette loading regression with the maintained main fixture. Co-authored-by: IWhatsskill <[email protected]> Worked on by: - @IWhatsskill
Keep the shared menu title eager and load bookmark-only copy with its consumers using the existing lazy catalog pattern. Preserve catalog values, key order, namespace identity, and all visible behavior. Reduce startup bytes without changing performance limits or baselines. Co-authored-by: IWhatsskill <[email protected]> Worked on by: - @IWhatsskill
Read retained same-conversation generations through exact history anchors in the existing Bookmarks dialog without changing live chat or draft state. Fence stale reader/media completions, preserve passive content rendering, and prevent historical views from requesting media permission grants. Keep delayed bookmark saves from closing replacement views and release rejected historical image resources. Cover reset, scope, lifecycle, and responsive browser behavior without changing storage or performance limits. Co-authored-by: IWhatsskill <[email protected]> Worked on by: - @IWhatsskill
c3a68fc to
218e004
Compare


Related: #140468. Builds on the position rail introduced in #138603.
What Problem This Solves
Long Control UI conversations need named, durable message destinations. The position rail should stay out of the way until needed, without hiding keyboard navigation or covering existing task-suggestion controls.
Why This Change Was Made
Reuse the original OpenClaw claw before Reply, the existing session menu, transcript navigation, and
users.prefs.get/set. The rail is physically on the right in both LTR and RTL; its claws, ticks, and previews point toward the conversation. On mouse-hover devices it appears when entering the rail edge or using keyboard focus. A mouse click or touch tap does not leave a stale preview behind. There is one preview rather than a duplicate title tooltip.No new bookmark backend, table, database, schema version, RPC, dependency, configuration option, or profile redesign is introduced. Footer actions continue to share the existing renderer.
Accepted minimal storage decision
On September 7, 2026, the requesting maintainer selected the existing-preferences repair. The recorded decision supersedes the dedicated-table option in #140468.
Consolidation retains every distinct preference key; identical keys keep the target value. It may leave more than 128 keys, but new-key writes are rejected atomically when the resulting total would exceed 128. Existing entries remain editable and removable. The shared settings quota and 4 KiB/value limit remain. There is no migration or parallel reader. Downgrading to older code does not protect against its original lossy consolidation behavior.
User Impact
Save, rename, search, open, and remove named positions, with names up to 70 Unicode code points. Independent keys preserve unrelated concurrent saves.
Current-conversation listing remains the default. All conversations makes unavailable references recognizable and removable without navigating to a different conversation or replacement generation.
Current-generation bookmark jumps clear the correct presentation's search and temporarily reveal hidden commentary or its containing work section without changing saved display preferences.
The right-hand rail appears on hover or keyboard focus; non-hover devices keep direct access when space permits. Ticks and bookmarked claws face left. Previews remain reachable from their markers, while existing task suggestions stay usable.
Preserve footer action order, light/dark themes, native keyboard navigation, RTL geometry, reduced motion, and narrow-pane hiding. No conversation edits or messages are sent.
Markers from earlier generations of the same conversation now open a read-only excerpt in the existing Bookmarks dialog, with a highlighted target and optional surrounding context. The live conversation, draft, current markers, and view preferences stay unchanged. Missing or inaccessible targets fail visibly rather than opening a replacement message.
Evidence
Implementation head: 218e004. No merge or auto-merge requested.
Bookmark dialog: focus and actions
Mobile: the actions stay together and the checkbox remains clear of the focused search field.
Screenshots: current rail before and after
Earlier video: baseline bookmark controls
Fresh recording from PR head
de91d0cb: 42 seconds, 1440 × 900, normal speed. Shows the right-side hover rail, bookmark jumps and renaming, including the corrected field focus, spacing, and short list actions.Actual production-built Control UI with synthetic Gateway/history fixtures. The cursor is highlighted for visibility; this is not live-provider output. This earlier recording covers the baseline bookmark controls, not the historical reader added in the final update.
bookmark-ui-corrected-de91d0cb.webm
Validation
Final historical-reader verification: 91 focused/sibling/QA tests, 7 production-built browser cases, and the complete changed-file gate pass. Startup JavaScript is 343,791 B gzip against the unchanged 350,953 B limit; CSS growth against the selected base is 0 B. No budget or timeout was relaxed.
Independent final review: no remaining concrete P0–P2 findings. The one retained-image cleanup finding was repaired at the ownership-transfer callback and verified with a delayed shared-resource RED→GREEN regression. The original disabled-marker scenario and the late-save/replacement-dialog race also have RED→GREEN proof. The reviewer used the explicitly approved independent OpenClaw review path; no proxy or security checks were disabled.
Bounded implementation and cleanup: reuse exact
chat.historyanchors and existing passive content renderers. Validate the historical top-level session ID and saved message ID, retire stale scope/selection results, release only reader-owned media, and prevent historical views from granting media permissions. No new storage schema, Gateway method, or dependency.Fresh media: a new 38.52-second, 1440 × 900, normal-speed recording and desktop/mobile captures were produced from the final source tree, visually inspected, and the video fully decoded. They were delivered directly to the requester because GitHub attachment upload currently returns HTTP 400. The published images/video above remain explicitly baseline evidence, not claims of the new reader.
Red CI preflight: current main already fixed the QA-Lab authentication-scenario selector in fix(qa): restore Gateway credential scenario selection #141555; that canonical correction is included. Hosted CI run 34168309037, attempt 1, passed on this exact head on September 7, 2026 at 23:12:33 UTC: 123 successful jobs, 10 skipped, zero failed or pending. All 133 jobs and all 189 exact-head checks were reconciled; required
openclaw/ci-gatepassed. UI, browser, real-Gateway, QA-Lab config and performance lanes passed. Actual CI startup JavaScript: 343,777 B < 350,953 B, with no threshold relaxation.Earlier CI base refresh: incorporated the canonical main fix for the lazy native-link-menu test instead of retaining a parallel test workaround. The refreshed tree matches the original bookmark changes combined with the selected main revision; all contributor trailers were verified. 23 native-routing/menu checks passed. No additional Bookmark behavior, test thresholds, or timeouts were changed.
Startup CI correction: bookmark-only English now loads with the chat consumers through the existing lazy catalog mechanism; the shared menu title remains eager. On the exact CI source/base pair, the native comparison changed from 351,123 B (fail) to 350,886 B (pass) against the unchanged 350,953 B limit. This reproduction used Linux/Node 26.7; hosted CI used Node 24.20. All catalog values/order are identical. 51 focused tests, 8 production-built browser cases, changed-file checks, and fresh P0–P2 autoreview passed. No budget or baseline was relaxed.
Focus and action-label correction: the field focus stays inside the control, adjacent fields have clear separation, and Rename/Remove remain together on mobile. The new browser regression fails on the original 3px external focus paint and passes after this scoped fix. 25 focused unit tests, 8 production-built browser cases, the complete changed-file gate, and a fresh P0–P2 autoreview passed. The palette test now matches the maintained main fixture, resolving the test-only merge conflict.
Earlier behavior-preserving cleanup: reused the existing marker index instead of two repeated scans, made bookmark types explicit, and replaced a copied deferred-test helper with the shared one. The same 25 focused tests pass before and after; the complete changed-file gate and a fresh P0–P2 autoreview are clean. Rendering, navigation, profile/session fencing, and storage behavior are unchanged.
Earlier CI repair (before this cleanup): replayed the original 312-file UI shard with its captured two-worker settings: 5,109 tests passed. Five targeted production-built browser tests also passed. The two test-only corrections establish keyboard focus through keyboard navigation and scope palette loading assertions to the palette overlay; production code is unchanged. Targeted lint and an independent P0–P2 review passed.
Earlier focused validation: 25 focused UI tests and 10 production-built browser tests passed. Browser coverage includes idle/edge hover, mouse departure after clicking, re-entering the empty edge, native Tab navigation, touch, saved-width changes, asymmetric RTL gutters, preview hit testing, task-suggestion controls, and existing bookmark flows.
Fresh independent P0–P2 review is scoped-clean. Applicable checks passed: core-test/UI types, formatting, i18n, unused-export scanning, lint/styles, and MDX/glossary checks. The combined gate initially flagged a shadowed test-local name; corrected lint and the remaining checks passed on resumption.
Reproduced the previous behavior before each repair: always-visible rail, pointer-acquired focus retaining a preview, and suggestion cards covering moved markers. The same scenarios pass after the owner-level fixes.
Before/after captures above were visually inspected. Tests use real production-built UI with synthetic Gateway/history fixtures, not live-provider or native-app proof.
This cleanup adds no storage, configuration, Gateway API, or runtime package dependency.
Earlier feature and storage evidence
The previously reviewed head
4260e4d80b34c2f420497dd7c21d4f054c705faapassed the complete CI gate, independent review, 326 focused local store/profile/RPC/UI tests, and post-rebase regression/browser/documentation checks. That evidence covers the unchanged persistence repair and earlier bookmark behavior; the current rail is validated separately above.The SQLite regression reopens 127 target keys plus two distinct source entries as 129 retained entries, preserves collision precedence, allows existing edits/deletes, rejects mixed over-limit batches atomically, and permits new entries once capacity is freed.
Current automated results are in the PR checks and review thread.
Worked on by: