t3code icon indicating copy to clipboard operation
t3code copied to clipboard

Composer background shows full-width behind an attached notice when the context row is visible

Open ehonis opened this issue 1 month ago • 2 comments

What happened

On the new-thread screen ("What should we work on?"), when a server update is running, the "Updating server · Downloading…" notice sits on top of the composer as usual, inset from both sides. But a full-width rounded slab in the composer's background color shows behind it: you can see it to the left and right of the notice and above it. It reads like an older, wider version of the composer peeking out behind the notice.

Threads that don't show the row under the composer (machine / branch / access) look correct.

Diagnosis

ComposerSurface.Shell hides its own glass ::before when a banner is attached:

  • apps/web/src/components/chat/ComposerSurface.tsx:23 has-data-[composer-banner-surface=attached]:before:hidden

When the context row is shown (data-context-row), the Shell hides its ::before (line 25), and ComposerSurface.Host paints the glass instead, with before:absolute before:inset-0 before:rounded-2xl before:bg-(--chat-composer-glass-surface)/(--glass-opacity) (line 42). Host only drops its shadow and outline (after:hidden, line 44) when a banner is attached. Its ::before stays, so it isn't hidden.

ComposerBanner.Dock renders inside the form, which is inside Host. So Host's box grows to include the banner (the measured Host is 146px tall, and ComposerSurface.Main is 112px). Host's full-width ::before then paints behind the banner, which is inset by --chat-composer-drawer-inset. The slab shows around it.

Measured with the update banner showing and the context row on: Host ::before is display: block, inset: 0px, background oklab(0.179 0 0 / 0.8). Shell ::before is display: none.

A fix is probably to hide Host's context-row ::before when a banner is attached, the same way Shell does, or to confine it to Main. Main already paints its own glass in that state.

Steps to reproduce

  1. Open the new-thread screen ("What should we work on?"). The row under the composer shows the machine name and access level. Alternatively, turn on the setting that keeps the composer's context row on every thread (persistComposerContextStrip).
  2. Start a server update, so the composer shows "Updating … server · Downloading…".
  3. A wider, lighter rounded background shows around the inset notice.

Reproduced headless as well: the full app was mounted against the in-process fake environment (apps/web/test/fakeEnvironment.ts), with persistComposerContextStrip: true and serverUpdateStateAtom set to { status: "running", stage: "downloading" }. It shows in the default dark theme. It doesn't happen with the context row off.

Version

0.1.4-nightly.20261028.3838 (commit 237498c22fa6ed41356b1245212eb9a55b050dc4). No later commit on main touches ComposerSurface.tsx.

Environment

  • Client: T3 Code Desktop 0.1.4-nightly.20261028.3838 on Windows
  • Server: same version, Linux x64, the machine being updated
  • Theme: default dark

Evidence

Screenshot from the user's desktop app

Image

plus a headless before/after render of the composer with the context row, without and with the update notice.

Image

Related issues

None found. Nearby fixes already in this build: #25329 (stacked notices cast a dark band) and #25335 (bottom toolbar background under update notices).

Fix applied or workaround

None. It's cosmetic and goes away when the update finishes.

Filed by

Claude Opus 5.5 (claude-opus-5-5) via Claude Code, running the T3 Code triage playbook.

ehonis avatar Oct 28 '26 20:10 ehonis

Still present after updating to 0.1.5-nightly.20261029.3877. Seen again on the new-thread screen while updating a second, different server (a remote machine shown with the cloud icon in the context row), so it isn't specific to one machine. No commits have touched ComposerSurface.tsx since the build in the original report.

Image

ehonis avatar Oct 29 '26 12:10 ehonis

[!NOTE] 🤖 Claude Opus 5.5 responding on behalf of Theo

Closing: this is covered by #26958, which landed. Reopen if an important part is still missing.

t3dotgg avatar Oct 31 '26 11:10 t3dotgg