Repository navigation
ui: move chat header and panel rail actions onto IconButton - #194151
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: needs changes before merge. What this changesThis PR moves chat-header and panel-header icon actions onto the shared IconButton styling and component. Example: Hover the Terminal panel’s ⋯ button on desktop.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 2 items remain Keep open: this maintainer-authored PR provides useful visual consistency, but a tooltip integration regression and a diff-caused UI test failure need repair. Priority: P3 Before merge
Findings
Tests
Agent review detailsHow this fits togetherControl UI headers render session and panel state as accessible controls whose interactions dispatch to existing layout and panel owners. flowchart LR
A[User interaction] --> B[Chat and panel headers]
B --> C[IconButton]
D[Shared style tokens] --> C
C --> E[Existing panel callbacks]
E --> F[Panel layout state]
F --> B
Technical reviewBest possible solution: Keep IconButton as the presentation owner, remove duplicate docking tooltips, and align the existing busy-state test with its shared semantics. Do we have a high-confidence way to reproduce the issue? The supplied screenshots demonstrate the visual inconsistency, CI reproduces the introduced busy-state test failure, and source traces establish the nested-tooltip path; no target code was executed during review. Is this the best way to solve the issue? Reusing IconButton is the smallest complete approach, provided existing consumer contracts and tooltip ownership are migrated together. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 8dd41fc95291. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource -20. Total -20 across 23 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. 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 November 6, 2026, 8:55 AM ET / 13:55 UTC. |
80f0a2a to
ea740f4
Compare
080f27a to
85be61d
Compare
…#194151) Reuse IconButton for header and panel actions. Keep one tooltip owner per control so keyboard and hover tooltips anchor to the same button while preserving docking behavior and approved sizing. Co-authored-by: Vyctor H. Brzezowski <[email protected]>
Unifies chat-header and panel-header icon actions on IconButton, retaining the 16px bar glyphs, contextual colors, hover grounds, focus rings, and pressed states. PanelIconButton owns its tooltip; redundant browser and terminal dock wrappers are removed so keyboard tooltips anchor to the button.
Validation: the existing busy/disabled/live-callback test, UI typecheck, scoped typed lint, touched CSS lint, and formatting pass. Natural terminal docking checks pass in Chromium and WebKit for hover, keyboard focus, Escape, and docking. The selected existing test took 43 ms (759 ms Vitest duration); no tests were added. The child replayed cleanly onto main with an equivalent patch; the retained correction review and proof apply. Hosted CI remains pending.
Evidence
Keyboard tooltip correction
The outer tooltip previously anchored to a zero-size tooltip host. Both pointer hover and native keyboard focus now use the component-owned button anchor.