fix(web): restore composer stage artwork - #6186
Conversation
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
ApprovabilityVerdict: Approved 4a5eae5 This is a small UI bug fix that restores artwork styling to the composer send button. Changes are limited to visual components with a simple conditional rendering approach, backed by comprehensive tests. You can customize Macroscope's approvability policy. Learn more. |
|
Note 🤖 GPT-5.6 Sol responding on behalf of Theo We're closing this PR as we clean up the T3 Code backlog. Thank you for taking the time to put this together. The primary composer artwork restoration landed in #6183. This branch still adds a different all-palette disable rule, while main keeps built-in theme-aware artwork and only suppresses unsupported user palettes, so we are not taking the remaining policy change. If you believe we closed this in error, please reopen the PR and leave a comment explaining what we missed. |
What Changed
Why
The composer artwork was removed when theme colors replaced it. This restores the original T3 Code treatment without introducing contrast issues in custom themes.
UI Changes
Validation
vp test run apps/web/src/hooks/useSettings.test.ts apps/web/src/components/SidebarStageBackdrop.test.tsx apps/web/src/components/chat/ComposerPrimaryActions.test.ts(24 passed)vp run --filter @t3tools/web typecheckvp run lint(0 errors, one unrelated existing warning)git diff --checkChecklist
Note
Low Risk
Composer send-button styling and theme gating only; no auth, data, or API changes, with regression tests added.
Overview
Brings back Dev and Nightly stage artwork on the composer send button when environment identification is set to artwork and the app is on the default (non-palette) theme.
Adds
StageBackdropButtonArtand acompactviewBox on the existing nightly/dev SVGs so the art fits the circular action button. The send control switches to a transparent background with the artwork behind the icon; busy/disabled aria-label behavior is unchanged.Introduces
useDefaultEnvironmentArtworkEnabled(refactors shared theme checks inuseSettings) so fixed-color stage art is not used under custom palette themes, avoiding contrast clashes outside the sidebar.Reviewed by Cursor Bugbot for commit 4a5eae5. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Restore stage artwork to the composer send button
StageBackdropButtonArtto SidebarStageBackdrop.tsx, a compact (96×96 viewBox) variant of the existingNightlySkyArt/DevBlueprintArtcomponents.StageBackdropButtonArtas a background on the send button when default environment artwork is enabled and a stage variant resolves; otherwise the button is unchanged.useDefaultEnvironmentArtworkEnabledto useSettings.ts, which returns true only when client settings are hydrated, the environment identification mode is'artwork', and no palette theme is active.Macroscope summarized 4a5eae5.