Repository navigation
feat(ui): named glyphs and custom emoji entry for session icons - #124629
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 16, 2026, 10:51 AM ET / 14:51 UTC. ClawSweeper reviewWhat this changesThis branch expands persistent session icons to accept six named monochrome glyphs or one emoji, adds a custom-emoji picker entry, and shares the grammar across the UI, Gateway, persisted sessions, and agent tool. Merge readinessKeep open. Current main still accepts only emoji session icons; this PR adds the requested glyph and custom-entry capability. The previous accessibility and browser-load findings are addressed on the current head, with no new blocking defect found; the named-glyph downgrade loss remains an intentional compatibility tradeoff. Priority: P2 Review scores
Verification
How this fits togetherSession icon choices flow from the Control UI and agent sessions tool through Gateway validation into stored session metadata, then back to the sidebar’s leading icon. The change broadens that value from emoji alone to emoji or a curated glyph identifier. flowchart LR
A[Control UI picker] --> C[Shared icon validation]
B[Agent sessions tool] --> D[Gateway session patch]
C --> D
D --> E[Stored session metadata]
E --> F[Sidebar leading icon]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +454, Tests +143, Docs 0. Total +597 across 21 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: Retain the shared grammar and land only with the recorded acceptance that named glyphs are not preserved through an older Gateway downgrade. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR adds a capability rather than repairing an established failing behavior; its supplied recording directly demonstrates the intended picker flow. Is this the best way to solve the issue? Yes. One protocol-owned normalizer is reused by the picker, Gateway patch path, persisted-session cleanup, and sessions tool, avoiding competing icon grammars. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against e38a645a7517. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles)
|
ClawSweeper P2: the input had no label relationship; assistive tech announced an unnamed edit control.
|
Addressing both findings from the latest ClawSweeper review:
That leaves the accessibility defect fixed and the downgrade behavior explicitly decided. CI note: exact-head run |
ClawSweeper P1: the picker's static import evaluates this module in the browser; pre-Unicode-Sets engines threw at module scope and took down the session menu. Lazy capability-guarded construction; such engines fall back to the grapheme heuristic as client pre-validation while the Gateway keeps exact RGI validation.
|
Accepted and fixed the browser-load P1 in 59366f6. The Unicode Sets ( Focused proof on this head:
|
|
Merged via squash.
|
…claw#124629) * feat(protocol): add named session icon glyphs * feat(ui): add session glyph and custom emoji picker * docs: describe named and custom session icons * fix(ui): give the custom emoji input an accessible name ClawSweeper P2: the input had no label relationship; assistive tech announced an unnamed edit control. * fix(protocol): guard the v-flag icon regex for browser module loads ClawSweeper P1: the picker's static import evaluates this module in the browser; pre-Unicode-Sets engines threw at module scope and took down the session menu. Lazy capability-guarded construction; such engines fall back to the grapheme heuristic as client pre-validation while the Gateway keeps exact RGI validation.
Related: #124034, #124335
What Problem This Solves
The session icon picker only offered a fixed emoji grid. The intended design also includes monochrome icon choices and a path to any emoji, including the operating system emoji picker, but neither path had a UI.
Why This Change Was Made
This is the maintainer-approved third design pass. The session icon grammar now accepts exactly one RGI emoji or one curated glyph id: braces, book, monitor, bot, kanban, or coins. Those ids are deliberately disjoint from the six attention ids, and tests assert that boundary.
normalizeSessionIconValue moved to packages/gateway-protocol as the single owner shared by gateway validation, the agent sessions tool, and the picker's live input validation. The custom entry provides a focused input plus Set action and shows the platform OS-picker shortcut (⌃⌘Space / Win+.); browsers cannot open the operating system picker programmatically, so a focused input is the honest integration.
The wire schema is unchanged: icon remains a plain string, so no protocol bump is needed. Existing stored ⭐ values keep rendering; only the quick-pick slot was replaced by the custom entry cell.
User Impact
The picker gains an Icons section and a “…” custom-emoji entry. Users can choose a named monochrome glyph or enter any supported emoji, and the agent sessions tool accepts the same named glyphs.
Evidence
Still image:
12-second recording covering glyph selection, selected state, the custom entry with a typed emoji, and remove-restores-avatar:
v3-picker.mp4
Focused validation after rebasing onto current main: