Skip to content

fix(ui): keep composer and floating surfaces opaque - #183295

Merged
vyctorbrzezowski merged 3 commits into
mainfrom
brzezowski/visual-12-approval-surfaces-20261025
Oct 27, 2026
Merged

vyctorbrzezowski merged 3 commits into
mainfrom
brzezowski/visual-12-approval-surfaces-20261025

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Oct 25, 2026 •

Copy link
Copy Markdown
Member

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

  • Five existing end-to-end cases passed: theme changes and draft retention, custom palettes, light/dark background presentation, and docked Details behavior. The run built the Control UI bundle.
  • The existing browser case for stock, imported, and custom menu palettes passed.
  • Targeted CSS lint, formatting, and UI end-to-end typechecking passed.
  • The existing composer regression fails on the translucent base and passes with the full surface. Its contrast measurement now preserves computed sRGB precision for this uniform surface; the 4.5 threshold is unchanged.
  • Before/after browser captures use the same synthetic session in Miami Light, Absolutely Light, Dash Light, and Claw Dark, plus read-only and attachment-drag states. Captures show the composer, actions menu, Sharing, and Details.

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 head af9b031c60a5, so the five comparisons below still show the current interface.

Two unchanged end-to-end cases also fail on clean main at f810bb4eede72229dffe70be69c366141c4141a2; 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: main at 243cfdaf2a87bf5bdc1206fce330cf40aff49ee6. Right: published head af9b031c60a525da87c7bef59280b2ac381625cf. The right-hand captures were generated again after publishing and verified against that head. All panels retain the same viewport and synthetic session.

Miami Light before and after

Absolutely Light before and after

Dash Light before and after

Claw Dark before and after

Composer states before and after

@vyctorbrzezowski vyctorbrzezowski self-assigned this Oct 25, 2026
@clawsweeper

clawsweeper Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review October 25, 2026 05:35
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 25, 2026
@clawsweeper

clawsweeper Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: The entire chat content, including the writing surface, fades to 50% opacity.
  • After: The accent drop highlight remains while the composer retains its solid surface.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Focused visual proof supports the changed behavior, and source review found no actionable defect or unnecessary production machinery.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Five inspected before/after browser comparisons exercise the actual composer, menus, Sharing, Details, disabled state, and attachment-drag presentation with synthetic Gateway data; the final head preserves their production CSS.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Page artwork and fading states reduce the composer's visual separation, while floating surfaces use inconsistent backgrounds.
Reason: The earlier translucency was intentional, but the maintainer-authored PR supplies the owner decision to change it and demonstrates a bounded visual improvement.

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
Reviewed head: 184547fb9cf0531522f5413a22d2148b3f37a9b6

Before merge

None.

Findings

None.

Agent review details

How this fits together

Control 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]
Loading

Technical review

Best 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

  • Composer translucency and managed-background paint changes intended behavior with a stated reason (2ecfef2: Theme artwork deliberately used one lightly translucent composer; personal backgrounds later added an opaque underlay.)
  • Disabled and attachment-drag fading changes intended behavior with a stated reason (fix(ui): disable chat composer when sending is not permitted #160977: Disabled composition was grayed out to communicate send restrictions, while attachment dragging faded content to emphasize the destination pane.)
  • Light elevated palette and floating surface overrides changes intended behavior with a stated reason (a9787f1: The theme hierarchy separated navigation, reading canvases, and elevated controls; this PR explains its brighter elevation and shared popover treatment.)
  • Managed-background invalidation regression keeps the original intent (4f4eb17: Ancestor conditions were narrowed to avoid restyling unchanged sidebar descendants when background preferences settle.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Pinned introduction reviewed: The introduced diff replaces the translucent composer paint, moves disabled opacity to its children, removes drag-induced fading, and removes competing menu backgrounds; it introduces no authority, dependency, configuration, or persistence changes. (ui/src/styles/chat/composer-surface.css:243, 184547fb9cf0)
  • Visual evidence inspected: All five linked comparisons were inspected: Miami Light, Absolutely Light, Dash Light, Claw Dark, and disabled/chat-drag/new-session-drag states show the changed surfaces through the rendered application with synthetic Gateway data. The final commit changes only test files, preserving the screenshot production source. (184547fb9cf0)
  • Existing surface owner reused: The shared .oc-menu and .oc-popover painter already supplies var(--popover); removing component overrides consolidates the existing owner rather than adding another painting path. (ui/src/components/solid/overlay.css:215, 184547fb9cf0)
  • Original intent and current main: feat(ui): add theme-matched app backgrounds #153583 deliberately introduced the 78% translucent composer; fetched main retains it. This maintainer-authored PR explicitly changes that visual direction and explains the opaque replacement. (ui/src/styles/chat/composer-surface.css:246, 2ecfef2a5900)
  • Related work remains distinct: fix(ui): keep chat colors and links readable across themes #185821 explicitly leaves shared surfaces and Details to this PR while changing participant bubbles and names.
  • Earlier finding and exact-head checks: The earlier finding targeted added approval-card rules that are absent from the current introduced diff. No failing check was returned by the refreshed exact-head check query; control-ui-performance remains in progress, so its budget result is not yet established. (ui/src/styles/components.css, 184547fb9cf0)

PR surface

Source -37, Tests +23. Total -14 across 19 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 16 16 53 -37
Tests 3 55 32 +23
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 19 71 85 -14

Labels

Label changes:

  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P3: This is visual consistency and readability polish without a demonstrated blocked workflow or runtime regression.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-25T05:51:15.684Z sha f0c6399 :: needs changes before merge. :: [P2] Keep the approval surface change within the CSS asset budget

Reviewed October 27, 2026, 12:24 PM ET / 16:24 UTC (Revision 2).

@vyctorbrzezowski
vyctorbrzezowski marked this pull request as draft October 25, 2026 16:54
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/visual-12-approval-surfaces-20261025 branch from f0c6399 to af9b031 Compare October 27, 2026 15:55
@vyctorbrzezowski vyctorbrzezowski changed the title improve(ui): soften execution approval surfaces fix(ui): keep composer and floating surfaces opaque Oct 27, 2026
@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review October 27, 2026 15:59
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Head: 184547fb9cf0531522f5413a22d2148b3f37a9b6.

@clawsweeper

clawsweeper Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Oct 27, 2026
@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 27, 2026
@vyctorbrzezowski
vyctorbrzezowski merged commit eb78444 into main Oct 27, 2026
82 of 87 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/visual-12-approval-surfaces-20261025 branch October 27, 2026 17:59
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant