Repository navigation
fix(ui): keep composer and floating surfaces opaque - #183295
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 maintainer review before merge. What this changesThis PR makes composers opaque, preserves their surface during disabled and attachment-drag states, and consolidates floating surfaces around the shared popover palette. Example: Drag an attachment over a Miami Light chat.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this maintainer-authored PR open: the inspected visual changes are coherent, and no actionable defect was found. The previous approval-card finding concerns code absent from this replacement diff; the current performance check is still running. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherControl UI styles consume theme tokens and component state classes to paint composers, menus, Sharing, and Details without changing Gateway requests or permissions. flowchart LR
A[Theme palette] --> B[Shared surface tokens]
B --> C[Composer styles]
B --> D[Popover painter]
E[Disabled and drag states] --> C
C --> F[Visible writing surface]
D --> G[Menus and Details]
Technical reviewBest possible solution: Use the existing composer and popover owners to keep writing surfaces solid and floating surfaces consistent across themes. Do we have a high-confidence way to reproduce the issue? Fetched-main CSS directly establishes the translucent and whole-surface fading paths, and the inspected before captures show their appearance; no target code was executed during this review. Is this the best way to solve the issue? The patch uses existing painting owners, removes superseded overrides, and updates existing browser coverage without introducing additional production machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 6c5e22056d96. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource -37, Tests +23. Total -14 across 19 files. 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 HistoryReview history (1 earlier review cycle)
Reviewed October 27, 2026, 12:24 PM ET / 16:24 UTC (Revision 2). |
f0c6399 to
af9b031
Compare
|
@clawsweeper re-review Head: |
|
🦞👀 Re-review progress:
|
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
* fix(ui): keep composer and floating surfaces opaque * test(ui): align checks with opaque composer surfaces * test(ui): consolidate artwork contrast checks
What Problem This Solves
The message composer blends with the page background, and disabling it or dragging attachments fades the whole writing surface. Related menus and Details also use competing background tokens.
User Impact
The composer stays solid over page artwork, including disabled and attachment-drag states. Menus and Details follow the same popover surface in each theme, and light elevated surfaces are easier to distinguish from the canvas.
Why This Change Was Made
Paint the full composer surface over an opaque canvas and keep disabled styling on its contents. Preserve the existing drag highlight without fading the composer. Reuse the shared popover painter, remove competing background overrides, and align sticky headers and scroll fades with that surface. Light elevated surfaces use an equal mix of their existing canvas and white. Dark themes retain a higher composer elevation than their menus.
Evidence
CI repair and baseline failures
The final test-only follow-up (
184547fb9cf0) renames a shadowed local variable and keeps the background-invalidation check aligned with the opaque composer. The focused invalidation test and targeted lint passed. All production UI files are byte-identical to screenshot headaf9b031c60a5, so the five comparisons below still show the current interface.Two unchanged end-to-end cases also fail on clean
mainatf810bb4eede72229dffe70be69c366141c4141a2; their test files are identical to this PR's base:chat-send-pending-handoff.e2e.test.ts:517: the consumed-prompt count is 1 instead of 0 after reconnect.chat-startup-priority.e2e.test.ts:235: the held, hidden chat already contains one history message instead of zero.Risk and coverage
Production changes are CSS only. The shared composer rule serves chat, new sessions, the session rail, and Custodian. Theme hue anchors, component geometry, and controls remain owned by their current themes and components. Browser evidence uses a mocked Gateway; it does not claim a live Gateway or provider run.
Visual comparison
Left:
mainat243cfdaf2a87bf5bdc1206fce330cf40aff49ee6. Right: published headaf9b031c60a525da87c7bef59280b2ac381625cf. The right-hand captures were generated again after publishing and verified against that head. All panels retain the same viewport and synthetic session.