Repository navigation
feat(ui): persistent emoji session icons in the sidebar - #124034
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
6db1184 to
258cf6c
Compare
|
Codex review: needs maintainer review before merge. Reviewed August 15, 2026, 2:52 AM ET / 06:52 UTC. ClawSweeper reviewWhat this changesThe PR adds persistent emoji session icons that operators and agents can set, store, synchronize through the Gateway, and display in the Control UI sidebar. Merge readinessKeep open: current main still intentionally discards session icons, while this maintainer-held PR restores a validated storage-to-Gateway-to-Control-UI path. No patch-introduced correctness defect was found; exact-head CI remains the remaining merge gate. Priority: P2 Review scores
Verification
How this fits togetherSession metadata is stored in the agent SQLite database, projected into Gateway session rows and events, and reconciled into Control UI navigation. This change adds a durable icon alongside existing transient attention state and renders it when no attention marker takes precedence. flowchart LR
A[Operator or agent] --> B[Session icon patch]
B --> C[Gateway validation]
C --> D[Session SQLite metadata]
D --> E[Gateway rows and events]
E --> F[Control UI reconciliation]
F --> G[Sidebar glyph]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +137, Tests +80, Docs +4, Other +12. Total +233 across 41 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the single canonical emoji-only icon path after exact-head CI confirms the additive protocol, native generated models, persisted session entries, and Control UI behavior together. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR adds a capability rather than repairing a reported existing-behavior failure; its screenshots and focused tests demonstrate the after-fix flow. Is this the best way to solve the issue? Yes. Reusing the existing nullable SQLite column and restoring one validated canonical session field is cleaner than creating separate UI-only state or a parallel compatibility path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 7bb3909e4b5a. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
|
CI update: the |
|
ClawSweeper checklist:
Focused proof: |
ClawSweeper P2: single non-emoji graphemes like 漢 passed the segmenter-based predicate. Anchored \p{RGI_Emoji} admits exactly one interchange emoji sequence and deletes the length cap and ASCII carve-out.
b8a5c86 to
d667530
Compare
|
Merged via squash.
|
) * feat(gateway): persist emoji session icons * feat(ui): add persistent session icon menu * docs: explain persistent session icons * docs: list Set icon in the session context menu enumeration * test(gateway): canonicalize group defaults workspace path * fix(ci): sync session icon protocol coverage * fix(sessions): enforce RGI emoji sequences for session icons ClawSweeper P2: single non-emoji graphemes like 漢 passed the segmenter-based predicate. Anchored \p{RGI_Emoji} admits exactly one interchange emoji sequence and deletes the length cap and ASCII carve-out. * fix(sessions): compile RGI emoji validation
What Problem This Solves
Sessions in the sidebar are only distinguishable by text. Agents can raise transient attention icons, but neither operators nor agents can set a durable visual marker. The old
iconsession field was retired and ignored.Why This Change Was Made
This maintainer-requested change restores the owner-approved
iconfield as a first-class product surface. Icons use an emoji-only, single-grapheme grammar so the six curated attention icons remain unambiguous state signals; attention always outranks the decorative icon, and an empty string clears it. Doctor canonicalization drops invalid legacy values such ashammer.The pre-existing nullable SQLite
iconcolumn is reused, so there is no schema change or version bump. The gateway protocol gains additiveiconrow and patch fields.User Impact
The session context menu gains Set icon with eight emoji choices, Remove, and the
Ishortcut. The agentsessionstool gains aniconpatch parameter. In the sidebar, a configured emoji becomes the leading glyph instead of the owner avatar whenever no higher-priority attention state is active.Evidence
Sidebar: before and after
Context menu: before and after
Focused test tails:
node scripts/check-changed.mjsexited 0 after full local recovery, including typecheck, lint, i18n, schema, and import-cycle checks, following Blacksmith unavailability and missing Daytona workspace dependencies.Post-rebase compatibility: current
mainadded a macOS-sensitive group-defaults assertion that compared/var/...with the gateway-canonical/private/var/...path. The branch canonicalizes that expected test path. The first exact-head CI run then exposed two branch-owned gaps: stale generated Swift protocol models and a max-lines overage in the gateway RPC test. The generated model is now current, and icon persistence/clearing assertions were consolidated into the existing RPC flow without changing the seven-test count or any baseline.Autoreview: clean (Codex
gpt-5.6-sol, confidence 0.98) for the feature stack; clean (Codexgpt-5.6-sol, confidence 0.99) for both post-rebase repair passes.Production LOC: +173/-32. Tests: +114/-37. Generated Swift: +12/-0. Docs: +6/-2.
AI-assisted: yes.
Release-note context: operators and agents can assign persistent per-session emoji icons in the sidebar; no external contributors to credit.