Repository navigation
feat(ui): grid picker for session icons - #124335
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 15, 2026, 10:35 PM ET / August 16, 2026, 02:35 UTC. ClawSweeper reviewWhat this changesThis PR replaces the session-icon submenu’s single-column emoji choices with a 12-choice keyboard-navigable action grid while preserving the existing set/remove icon action. Merge readinessKeep open for maintainer handling. The prior radio-semantics finding is fixed on the current head, and this remains a bounded Control UI refinement with direct visual proof; exact-head CI and the Web Awesome submenu integration still need maintainer confirmation. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI session menu lets an operator choose a persistent session icon, then forwards that choice through the existing session-update action to the Gateway. The sidebar and Sessions page share this menu component and continue to consume the same action contract. flowchart LR
A[Operator opens session menu] --> B[Session icon action grid]
B --> C[Click or keyboard selection]
C --> D[Existing session update action]
D --> E[Gateway session patch]
E --> F[Sidebar and Sessions display]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +145, Tests +40. Total +185 across 3 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the existing Gateway action contract and merge the compact action grid once exact-head CI and real Web Awesome submenu focus behavior are confirmed. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a presentation feature PR rather than a report of broken existing behavior; its visible result is demonstrated by the supplied screenshot and recording. Is this the best way to solve the issue? Yes. Reusing the shared session-menu owner and existing set-icon action avoids a new Gateway, configuration, or persistence path; action-grid semantics correctly avoid persisting selection on every Arrow key movement. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 289a9cabc877. 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 (1 earlier review cycle)
|
ClawSweeper: menuitemradio/radio semantics promise arrow-key selection, but arrows here only move focus (selection persists server-side, so select-on-focus would patch per keypress). Plain buttons with aria-pressed match the click/Enter-only contract.
|
Accepted the ClawSweeper radio-semantics finding and fixed it in ec72c9f. The icon picker now uses a labelled action grid ( Proof: the focused session-menu test suite passes 34/34. |
|
Merged via squash.
|
* feat(ui): add session icon grid picker * fix(ui): use radio semantics for icon grid * fix(ui): use pressed-state action-grid semantics for the icon picker ClawSweeper: menuitemradio/radio semantics promise arrow-key selection, but arrows here only move focus (selection persists server-side, so select-on-focus would patch per keypress). Plain buttons with aria-pressed match the click/Enter-only contract.
Related: #124034
What Problem This Solves
#124034 shipped Set icon as a single column of menu rows; the intended design is a compact grid. One emoji per row wastes space and scales poorly.
Why This Change Was Made
This is the maintainer-requested design pass: a 6x2 grid of 12 emoji (all RGI-valid), roving-tabindex arrow-key navigation, accent highlighting on the active emoji, and a conditional Remove icon row. This is presentation-only; the set-icon action contract, gateway field, and agent tool are unchanged from #124034.
User Impact
The Set icon submenu is now a compact grid, and the available emoji choices grew from 8 to 12.
Evidence
grid-picker.mp4
check-changed: exit 0 on the original implementation (local fallback; remote providers unavailable).