Repository navigation
feat(ui): organize session menus and combine appearance controls - #133490
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
0594c64 to
ab1ca2a
Compare
|
Codex review: needs maintainer review before merge. Reviewed August 30, 2026, 8:03 PM ET / August 31, 2026, 00:03 UTC. ClawSweeper reviewWhat this changesThis PR unifies Control UI session menus across the sidebar, chat header, and Sessions page, adding grouped appearance, copy, and navigation actions plus a browser tab-discovery race repair. Merge readinessKeep open: the PR remains necessary because current main still has the older separate session-menu controls, while this branch implements the linked feature direction. Source review found no introduced correctness or security defect; merge still requires the maintainer product decision and completion of exact-head checks. Priority: P3 Review scores
Verification
How this fits togetherThe Control UI presents session-management actions from several hosts, which dispatch navigation, clipboard, and session-update requests through shared UI helpers and the Gateway. This change centralizes those actions so each host exposes the same available capabilities and destinations. flowchart LR
A[Sidebar, chat header, Sessions page] --> B[Shared session menu]
B --> C[Capability and action gating]
C --> D[Session navigation and copy helpers]
D --> E[Gateway history access]
D --> F[Browser tab or split destination]
B --> G[Session organization updates]
Decision needed
Why: The linked issue is explicitly marked for maintainer product review, and the PR adds several user-facing session-management capabilities beyond a narrow visual rearrangement. Before merge
Agent review detailsSecurityNone. PR surfaceSource +436, Tests +582, Docs +10, Other 0. Total +1028 across 42 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Sponsor the shared session-menu direction, then land after exact-head checks are green. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR implements a feature direction rather than repairing a reported current-main failure. Is this the best way to solve the issue? Yes, conditionally: shared action and navigation owners avoid the three hosts drifting, and the remaining question is whether the expanded user-facing scope is desired. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 0b392310b92d. LabelsLabel changes:
Label 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)
|
|
Addressed the Markdown-copy review findings and the CI failures on the previous head. Current head: 81a52450038d22b3820fbb51275c7db67335a2f7.
After-fix browser proof used an isolated real Gateway with over 1,000 synthetic messages; oldest/newest export content and silent-reply exclusion were checked. Captured screenshots were inspected. GitHub image publication remains blocked by the configured outbound guard, pending a compatible uploader or explicit acceptance of chat-delivered evidence; no bypass or repository asset commit was used. Fresh Autoreview at its configured P0 scope reports no accepted/actionable findings. Refreshed exact-head CI is pending; this is not a merge-ready assertion. @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
81a5245 to
f12c0d7
Compare
Group routine, appearance, copy, navigation, and destructive session actions across sidebar, chat header, and Sessions page. Add authenticated links, Markdown copying, tab/window/split destinations, and accessible combined icon/color editing. Fixes #133480.
f12c0d7 to
af4be86
Compare
|
Post-rebase landing update: resolved only the Control UI documentation overlap and chat-history import/constants overlap, preserving main's activity-ring wording, accepted-input types, and 400/1,000 history batch sizes. The grouped menu behavior and browser discovery repair are unchanged.
Screenshot publication remains blocked by the outbound guard and unavailable upload backend. The operator renewed the instruction to finish and land after this limitation was disclosed; before/after screenshots were inspected again and remain delivered in the implementation conversation. ClawSweeper's optional attachment rank-up is skipped for that exact reason, without bypassing the guard. Earlier real Gateway/browser proof remains applicable to the unchanged menu and browser behavior. No persistent-store change is present: the extracted visibility and message-identity functions are pure UI helpers, not schema, migration, or vector-store changes. |
|
Land-ready at The exact post-rebase commands and 298-test result are in the preceding landing update. Fresh full-branch autoreview is scoped-clean at the configured P0 threshold. Final tooling CI shard: 1,981 passed, 11 skipped. Native review artifacts validate with zero findings; proceeding through The shared session-action/picker owner is the canonical implementation across sidebar, header, and Sessions page. Removed separate color parsing, obsolete appearance actions, and the redundant preview. New copy/navigation capability and accessible picker behavior account for production +924/-488 (net +436); tests +735/-153. The browser repair is one existing discovery-revision increment plus its invariant comment, verified against delayed inventory handoff in both access modes and real Chromium. Visual proof remains the inspected before/after images delivered in the implementation conversation; the operator renewed finish-and-land direction after the publication limitation was disclosed. The optional runtime-trace attachment rank-up is skipped because the outbound guard and missing upload backend prevent publication. No guard bypass, config/schema migration, or live operator-Gateway change. Maintainer product-direction decision (latest ClawSweeper rank-up): sponsor and land. Peter Steinberger requested the interactive proposal, implementation of the grouped menu and added copy/open capabilities, the selected-color checkmark and removal of the redundant preview, then explicitly instructed this session to finish and land. This is the approved feature scope, not an unsolicited expansion. The exact-head required checks are now green, resolving the other rank-up item. Landed: d65928799921 via native squash merge, from prepared head af4be862c9f2. GitHub reports MERGED; #133480 is closed. The wrapper's initial post-merge observation raced with concurrent main movement. Read-only native reconciliation subsequently verified the exact attempted head and retained the merged receipt; no second merge was sent. Review artifacts/worktree are retained for audit after recovery rather than automatically deleting them. |
…nclaw#133490) * feat(ui): organize session menus and combine appearance controls Group routine, appearance, copy, navigation, and destructive session actions across sidebar, chat header, and Sessions page. Add authenticated links, Markdown copying, tab/window/split destinations, and accessible combined icon/color editing. Fixes openclaw#133480. * fix(ui): validate paged exports and shared navigation boundaries * fix(browser): invalidate stale discovery after tab handoff
Reconcile lagging Chrome tab reads and discovery with the native root commit so initial navigation stays accessible. Keep pending URL, tab identity, and existing access checks intact. Cover acknowledgement and discovery through the relay command handler in both access modes. Related: #150158, #133490.
…150233) Reconcile lagging Chrome tab reads and discovery with the native root commit so initial navigation stays accessible. Keep pending URL, tab identity, and existing access checks intact. Cover acknowledgement and discovery through the relay command handler in both access modes. Related: #150158, #133490.
…penclaw#150233) Reconcile lagging Chrome tab reads and discovery with the native root commit so initial navigation stays accessible. Keep pending URL, tab identity, and existing access checks intact. Cover acknowledgement and discovery through the relay command handler in both access modes. Related: openclaw#150158, openclaw#133490.
Additional instructions
Maintainers can edit this same-repository branch.
Closes #133480 (group session actions and combine appearance controls).
Related: #124364 (broader Control UI menu-surface consistency).
What Problem This Solves
Session menus mix organization, appearance, navigation, and destructive actions in a long list. Changing an icon and its color requires separate desktop menus, and common copy/open actions are hard to discover.
Why This Change Was Made
Keep one canonical session-action renderer across the sidebar, chat header, and Sessions page. Group routine actions first; combine icon/color editing; collect Copy and Open in destinations; keep Delete separate and show Open PR only when it exists.
The appearance picker remains open during edits, uses a centered selected-color checkmark, and relies on the sidebar for its live preview. Keyboard traversal is owned by the embedded picker so users can reach colors, icons, custom emoji, and reset without the dropdown dismissing early.
User Impact
No new configuration, database schema, authentication scope, or public sharing behavior.
Evidence
node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/session-color.e2e.test.ts: 4 passed, including keyboard traversal on sidebar, desktop header, and compact header. The three keyboard regressions failed before the owner-boundary repair.f12c0d78eb813d91af092e4776336530515eb4ee: run 33334304548, attempt 2, including the requiredopenclaw/ci-gate.Design and risk
The shared UI menu/action owner absorbs organization and appearance behavior. The navigation helper reuses canonical session URL routing, Markdown serialization, and history identity rules across all three consumers. Separate color dropdown parsing and redundant preview/remove-icon paths are removed. Production growth is for the new copy/navigation capabilities and accessible embedded-picker behavior, not a runtime fallback or new persistence layer.
Markdown copying detects session or transcript changes during paging and rechecks the tail-only branch marker and opaque history cursor before writing the clipboard. Copy and download share the canonical chat visibility filter. Existing Gateway history projection/redaction limits remain authoritative. The extracted filter is a pure UI function, not a persistence or vector-store change.
Also removes a stale model-specific example from the touched English help text.
LOC including the separately noted browser CI repair (including new files; moves counted in both columns): Docs +13/-3 (net +10); Production +924/-488 (net +436); Tests +735/-154 (net +581); assertion-safety ratchet +1/-1, strictly shrinking the moved owner’s allowance.
Review and CI repairs
chat.inject, copied over 1,000 messages through the actual menu, verified oldest/newest content and silent-reply exclusion, and inspected the visible Copied confirmation.openExternalUrlSafe()returning a window, althoughnoopenercan return null after a successful open. This PR’s tab/window actions use the existing inert-window receipt instead; the broader external-link result contract should be repaired separately.Bounded CI repair: browser tab handoff
The browser bootstrap lane exposed a preexisting race, unchanged by the menu feature: an inventory read started before tab creation could finish after handoff and retract the new CDP target. The tab-access lifecycle owner now invalidates discovery at successful handoff using its existing revision mechanism. No permissions, epochs, protocol, configuration, or retries change.
The existing real-relay/background test now delays inventory across handoff; it failed before the fix in both all-tabs and selected-tabs modes with Session not found. After the fix, all 144 focused creation/access/document tests pass. The exact real Chromium bootstrap lane also passes (1/1), including all-tabs and selected-tabs creation, same-target snapshots, reconnect, revocation, native-host probes, and cleanup. Production delta is one revision increment and two explanatory comment lines; no new helper or production test seam.
Post-conflict rebase: retained main’s test-fixture extraction and the shared visibility import.
git range-diffshows the menu feature and browser repair unchanged; 233 navigation/export/history/live-event tests and UI typecheck pass on the rebased candidate.