Repository navigation
refactor(ui): schedule icon picker focus after settling - #174271
Conversation
|
🦞👀 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 SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesThis PR replaces the session icon picker’s focus-request signal and effect with event-triggered onSettled callbacks. Example: Open Custom, enter 🦀, then select Back.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this maintainer-authored PR open: it removes unnecessary reactive state using the supported Solid scheduling API, with no concrete introduced defect found. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI session appearance picker receives menu events and session presentation data, updates local input mode and focus, and forwards appearance actions to the existing session action owner. flowchart LR
A[Session menu] --> B[Appearance picker events]
B --> C[Local mode and draft]
C --> D[Solid DOM update]
B --> E[Settled focus callback]
D --> E
B --> F[Session action owner]
Technical reviewBest possible solution: Keep focus scheduling in the existing appearance owner using onSettled while preserving native events, keyboard navigation, and session action dispatch. Do we have a high-confidence way to reproduce the issue? This is a behavior-preserving refactor rather than a reported bug; existing component scenarios exercise the affected focus paths, and no target code was run during this review. Is this the best way to solve the issue? The change uses the pinned Solid API for event-triggered post-settle work and completely removes the superseded signal/effect path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 01e659317b7f. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
PR surfaceSource -2. Total -2 across 1 file. Added test files: 0. View PR surface stats
LabelsLabel 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 Reviewed October 16, 2026, 10:05 AM ET / 14:05 UTC. |
|
Merged via squash.
|
What problem this solves
The session appearance picker stored a focus request in a signal solely to replay it through an effect after switching between the icon grid and custom input. The request was not presentation state.
Schedule the same focus work directly with Solid's
onSettledfrom the existing event handlers. Keep the native click handlers, custom-input focus, Back-button focus and grid tab-stop restoration. No tag, selector, route, styling or domain-action changes.Evidence
38910969257passedTouched production metrics against
88ef99e66fc9b698c2350774b5ef5dbef3c6c9a4:createEffectcreateRenderEffectuntrackThe retained queries implement the existing grid-wide roving tab stop. This change removes only the focus-request signal/effect; the grid's native keyboard behavior is unchanged.
Strict CI performance compared the merge base and head on the same runner: head startup 339,361 B gzip / 7 JS requests, and startup CSS 38,786 B / 1 request, unchanged CSS from base. Chat boot JS was 1,644,908 → 1,644,963 B (+55 B); new-session boot JS was 1,336,175 → 1,336,263 B (+88 B), with unchanged request counts and CSS. The check does not print a separate base initial-entry JS total. Startup remains below the 374,285 B baseline and all strict limits passed. No lazy-boundary or imported-library change.