Repository navigation
fix(ui): emoji section of the session icon picker has no clear choice - #168689
vyctorbrzezowski merged 7 commits into
Conversation
Emoji and glyph icons share one session icon slot, but the "No icon" choice was only rendered at the start of the glyph section. Users who picked an emoji had to clear it from the Icons row. Render the same choice first in the emoji row as well, keeping a single tab stop. Refs openclaw#168688
|
🦞👀 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 changesAdds a “No icon” choice to the Emoji section while preserving the selected color and a single initial keyboard entry point. Example: A session has icon 🦞 and color blue.
Review scores
ProductKind: Preference · Worth it: Needs a maintainer decision · Fix scope: Complete Merge readiness⛔ Blocked before merge - 1 item remains This PR provides a focused improvement that current main still lacks, with no introduced correctness defect found; the appearance owner still needs to decide whether to accept the additional clear control and third Emoji row. Priority: P3 Decision needed
Before merge
FindingsNone. Agent review detailsHow this fits togetherThe shared Control UI appearance picker renders session and plugin appearance controls, translating selections into existing owner callbacks and session patch actions. flowchart TD
A[Session menu] --> B[Shared appearance picker]
C[Plugin appearance control] --> B
B --> D[Existing appearance callbacks]
D --> E[Session organizer]
E --> F[Gateway session state]
Technical reviewBest possible solution: If the appearance owner accepts the layout tradeoff, retain this small change in the existing shared picker and reuse its established clearing action. Do we have a high-confidence way to reproduce the issue? Current-main source confirms the missing Emoji clear choice, and the contributor supplies before/after browser captures and Gateway state results; no target code was executed during this review. Is this the best way to solve the issue? The implementation is the smallest complete change using the shared renderer: add the existing clear choice and distinguish its duplicate in the existing focus map. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 50520de188dd. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +4, Tests +38. Total +42 across 3 files. Added test files: 0. View PR surface stats
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 HistoryReview history (4 earlier review cycles)
Reviewed October 19, 2026, 6:46 PM ET / 22:46 UTC (Revision 5). |
The session menu moved to the Solid appearance picker (openclaw#168931), which still rendered "No icon" only in the Icons grid. Apply the same emoji-row clear choice there, keeping one tab stop. Refs openclaw#168688
The registered session menu test already covers the Solid picker's clear choice, selection and single tab stop; it fails without the Solid change. Refs openclaw#168688
…i-clear # Conflicts: # ui/src/components/session-icon-picker-solid.tsx # ui/src/components/session-icon-picker.ts
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
…i-clear # Conflicts: # ui/src/components/session-menu.test.ts
vyctorbrzezowski
left a comment
There was a problem hiding this comment.
Reviewed the Emoji section’s added clear control, shared selection callback, distinct focus-map key, initial tab stop, arrow-key navigation, custom-entry focus restoration, and the updated desktop/compact menu assertions. No actionable issue found in the reviewed diff at 435baa616e6414a908ab9eff1c601362bba32b24.
Automated code review complete. No further changes are requested from the author at this stage. Final product and design review will be handled by the responsible maintainer before the PR is considered for merge.
|
Merged via squash.
|
…openclaw#168689) * fix(ui): offer the clear-icon choice in the emoji section too Emoji and glyph icons share one session icon slot, but the "No icon" choice was only rendered at the start of the glyph section. Users who picked an emoji had to clear it from the Icons row. Render the same choice first in the emoji row as well, keeping a single tab stop. Refs openclaw#168688 * fix(ui): offer the clear-icon choice in the Solid emoji section too The session menu moved to the Solid appearance picker (openclaw#168931), which still rendered "No icon" only in the Icons grid. Apply the same emoji-row clear choice there, keeping one tab stop. Refs openclaw#168688 * test(ui): drop duplicate Solid clear-choice table The registered session menu test already covers the Solid picker's clear choice, selection and single tab stop; it fails without the Solid change. Refs openclaw#168688
Related: #168688
What Problem This Solves
Fixes: a session emoji can only be removed from the Icons row of the Icon & color picker, because the Emoji section has no "No icon" choice while Color and Icons both start with one.
User Impact
User impact: users clear an emoji from the Emoji section, the same way they clear a color or an icon. The color is kept. The existing choice in the Icons row and "Reset to default" keep working.
Layout: the Emoji grid gains one cell, so "Custom icon…" moves to a third row (the Icons row already wraps its last glyph the same way).
Alternative if the extra row is unwanted: drop one of the 11 preset emojis, so the Emoji grid stays at two rows of six. The session icon is stored as a plain value, not as a reference to the preset list, so sessions that already use the dropped emoji keep it, and "Custom icon…" still accepts it; only its preset cell disappears. This PR does not do that because choosing which preset to drop is a product call for the picker owner.
Why This Change Was Made
Emoji and glyph share one session icon value, so both sections now start with the same "No icon" choice (
set-iconwithnull). Only the first one is a tab stop, so keyboard navigation keeps one entry point.Since #168931 the session menu (checked in the sidebar) renders the Solid picker (
session-icon-picker-solid.tsx); the Lit picker (session-icon-picker.ts) still backsopenclaw-appearance-picker. This PR applies the same change to both, after merging currentmain.Evidence
Update 2026-10-19: merged current
main(e559b9e) to resolve conflicts.maindeleted the Lit picker (session-icon-picker.ts), so the change now lives only in the Solid picker. The Solid picker onmainnow keys its arrow-key focus map by icon value, so the repeated clear choice in the Icons row gets its own key (glyph:none); without it the Emoji row's clear choice drops out of arrow-key navigation. No visible change against the screenshots below. Tests (--maxWorkers=1, head 5f5efc4):session-icon-picker.test.tsx,session-menu.test.ts,session-menu-solid.test.tsx,workboard-page.test.ts→ 91 passed;appearance-picker.browser.test.ts→ 4 passed;session-color.e2e.test.ts→ 4 passed (49 s wall). Without the separate key, two cases insession-icon-picker.test.tsxfail (2 failed, 62 passed withsession-menu.test.ts): the arrow-key move onto the Emoji row's clear choice, and Back from the custom entry, which leaves that clear choice as a second tab stop.pnpm tsgo:ui,oxfmt --checkandoxlint --type-awareclean.Real Gateway built from this branch (
main49d2a93 + fix,pnpm build) on loopback with isolated state; one session with icon 🦞 and color blue. Before = the same build with both picker files taken frommain, served viagateway.controlUi.rootwith the same build ID; after = the branch build. Driven by Playwright in headless Chrome: right-click the sidebar row → Advanced → Icon & color, read the grids, click "No icon" in the Emoji grid, then readsessions.list. The picker's host element isopenclaw-session-menu(the Solid bridge).sessions.listafterwards🦞*, 🚀 … 🎯, Custom icon…🦞, colorblueNo icon, 🦞*, 🚀 … 🎯, Custom icon…None, colorbluebotglyph (17:47:01)No icon, 🦞 … Custom icon…None, colorblueBefore:
After:
(The test host has no emoji font; the driver loads Noto Color Emoji into the test browser only.)
The first revision of this PR (Lit picker only) was proven the same way on the 2026.9.9 release build: same grids, emoji and glyph cleared.
Tests (
--maxWorkers=1):pnpm test ui/src/components/session-icon-picker.test.tsx ui/src/components/session-menu.test.ts ui/src/components/session-menu-solid.test.tsx→ 64 passed. The registered session menu test (session-menu.test.ts, mounts the Solid picker; both clear choices lead their grid, one tab stop, both dispatchset-icon: null) fails without the Solid change (2 failed, 58 passed). The duplicate Solid table from the previous revision was folded into it, as suggested in the review.pnpm test ui/src/e2e/session-color.e2e.test.ts→ 4 passed (sidebar, header and compact keyboard flows), 40 s wall.pnpm tsgo:uiandpnpm check:control-ui-lit-ratchetpass.pnpm tsgo:test:uireports one error inui/src/components/session-background.browser.test.tsx, a file this PR does not change (identical tomain49d2a93).src/plugin-state/, types insrc/plugins/channel-presence-policy.ts,test/scripts/plugin-sdk-surface-report.test.ts) were in files this PR does not touch;mainwas green again when it was merged into this branch.