Skip to content

fix(ui): emoji section of the session icon picker has no clear choice - #168689

Merged
vyctorbrzezowski merged 7 commits into
openclaw:mainfrom
holgergruenhagen:fix/session-icon-emoji-clear
Oct 22, 2026
Merged

vyctorbrzezowski merged 7 commits into
openclaw:mainfrom
holgergruenhagen:fix/session-icon-emoji-clear

Conversation

@holgergruenhagen

@holgergruenhagen holgergruenhagen commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

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-icon with null). 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 backs openclaw-appearance-picker. This PR applies the same change to both, after merging current main.

Evidence

Update 2026-10-19: merged current main (e559b9e) to resolve conflicts. main deleted the Lit picker (session-icon-picker.ts), so the change now lives only in the Solid picker. The Solid picker on main now 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 in session-icon-picker.test.tsx fail (2 failed, 62 passed with session-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 --check and oxlint --type-aware clean.

Real Gateway built from this branch (main 49d2a93 + fix, pnpm build) on loopback with isolated state; one session with icon 🦞 and color blue. Before = the same build with both picker files taken from main, served via gateway.controlUi.root with 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 read sessions.list. The picker's host element is openclaw-session-menu (the Solid bridge).

Run (UTC, 2026-10-11) Emoji grid Click "No icon" in Emoji grid sessions.list afterwards
Before, icon 🦞 (17:45:58) 🦞*, 🚀 … 🎯, Custom icon… not present icon 🦞, color blue
After, icon 🦞 (17:46:43) No icon, 🦞*, 🚀 … 🎯, Custom icon… clicked icon None, color blue
After, icon bot glyph (17:47:01) No icon, 🦞 … Custom icon… clicked icon None, color blue

Before:

Before: Emoji row has no clear choice

After:

After: Emoji row starts with the clear choice

(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 dispatch set-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:ui and pnpm check:control-ui-lit-ratchet pass. pnpm tsgo:test:ui reports one error in ui/src/components/session-background.browser.test.tsx, a file this PR does not change (identical to main 49d2a93).
  • The red checks on the first revision (lint in src/plugin-state/, types in src/plugins/channel-presence-policy.ts, test/scripts/plugin-sdk-surface-report.test.ts) were in files this PR does not touch; main was green again when it was merged into this branch.

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
@clawsweeper

clawsweeper Bot commented Oct 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.

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Oct 10, 2026
@clawsweeper

clawsweeper Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

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

  • Before: Clearing the emoji requires using “No icon” in the Icons section; Reset to default also clears blue.
  • After: The Emoji section offers “No icon,” which clears 🦞 and keeps blue.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused patch and supplied product proof are sound; readiness remains capped by the unresolved appearance-layout decision.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots show the shared session picker's added Emoji clear control; the supplied isolated-Gateway browser trace records clearing 🦞 and a bot glyph while sessions.list retains blue, with current-head regression results supporting the updated focus-map key.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Preference · Worth it: Needs a maintainer decision · Fix scope: Complete
User problem: Users looking in the Emoji section cannot find how to clear their emoji while retaining the session color.
Reason: The discoverability benefit is concrete, but duplicating a working control changes the owner-designed layout and adds a row.

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
Reviewed head: 5f5efc4e9b7975c296151d10e4cab1c744efb078
Owner decision: Required. See Decision needed.

Decision needed

  • Question: Should the Emoji section gain its own clear control even though this moves Custom icon onto a third row?
  • Recommendation: Accept the additional clear control: Improve discoverability without removing presets, using the implementation and layout shown in this PR.
  • Why: Clearing already works through the Icons section, and the inspected screenshots confirm the layout tradeoff; no appearance-owner approval of this change is recorded.

Before merge

  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.

Findings

None.

Agent review details

How this fits together

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

Technical review

Best 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

  • Shared picker layout changes intended behavior with a stated reason (c1258c0: refactor(ui): share Workboard selection and appearance controls #144748 unified session and Workboard appearance controls, introducing the glyph-row clear choice; this PR explains its additional placement as a discoverability improvement.)
  • Roving focus map keeps the original intent (c4540c1: refactor(ui): own appearance picker focus with element refs #174481 placed focus references in the shared picker; the separate duplicate-control key preserves that ownership and keeps both controls reachable.)
  • Existing menu regression coverage keeps the original intent (1ab7e49: The earlier test consolidation retained appearance actions and keyboard contracts; changed indices and null-selection assertions adapt those contracts to the added cell.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit c4540c1 adds ui/src/components/session-icon-picker-solid.tsx:43 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: c4540c18d01b; files: ui/src/components/session-icon-picker-solid.tsx)

PR surface

Source +4, Tests +38. Total +42 across 3 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 8 4 +4
Tests 2 51 13 +38
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 59 17 +42

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This improves discoverability of an appearance action already available within the same picker.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

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.

History

Review history (4 earlier review cycles)
  • reviewed 2026-10-10T22:50:44.873Z sha 415ca97 :: blocked before merge. :: none
  • reviewed 2026-10-11T18:10:34.921Z sha dd17128 :: blocked before merge. :: none
  • reviewed 2026-10-11T21:49:27.347Z sha f7788d2 :: blocked before merge. :: none
  • reviewed 2026-10-11T22:47:34.847Z sha 066bdfb :: blocked before merge. :: none

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
@holgergruenhagen

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. labels Oct 19, 2026
…i-clear

# Conflicts:
#	ui/src/components/session-menu.test.ts

@vyctorbrzezowski vyctorbrzezowski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@vyctorbrzezowski
vyctorbrzezowski merged commit 72ed23c into openclaw:main Oct 22, 2026
81 checks passed
@vyctorbrzezowski

Copy link
Copy Markdown
Member

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 23, 2026
…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
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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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