Visually distinguish plan mode from chat mode in composer#828
Visually distinguish plan mode from chat mode in composer#828Xisisrefliel wants to merge 7 commits intopingdotgg:mainfrom
Conversation
Apply amber accent to composer border and send button when in plan mode, making it easier to identify the active interaction mode at a glance.
Replace hardcoded amber-500 with the warning design token so plan mode styling can be changed from the central theme in index.css.
Introduce a --ring-plan CSS variable independent of --warning, mirroring how --ring works for chat mode. This allows plan mode styling to be themed separately from warning colors.
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Show a pill-shaped "PLAN" label on the top-left border of the composer when in plan mode. The badge border and text animate to amber on focus, matching the composer's own border transition.
The plan mode is now indicated by the PLAN badge on the composer border, making the inline toggle redundant.
|
Does this look good/better? @juliusmarminge |
@juliusmarminge I think the Plan button would be pretty useful for wider adoption of T3 Code. Part of my role at work (I work in a DevEx team in a large org) is evangelizing and encouraging adoption of tooling, with a big focus on AI tooling atm. One thing I've noticed is that there are a lot of devs that won't actually know that functionality exists unless it's very obvious, particularly if they're a bit hesitant around AI/agentic development in general. We have run into similar stuff with Cursor (devs at my org use Cursor or Claude Code at a 50/50 split) where unless new features are very obvious, people will often not even try to use it. Don't even get me started on Claude Code and the nightmare that is onboarding these devs into the terminal! You can sort of see an example of it with T3 Code already in #687, where there was a ticket raised to add an integrated terminal because it's hidden behind a keyboard shortcut. |
|
will think on it more. thank you @Xisisrefliel for now, will get back to you on this |



What Changed
Updated the composer container's border and send button styling in ChatView.tsx to visually distinguish "plan" mode from "chat" mode:
Composer border: focused state uses border-amber-500/45 in plan mode, border-ring/45 in chat mode (unfocused remains border-border in both)
Send button: uses bg-amber-500/90 in plan mode, bg-primary/90 in chat mode
Why
When the composer is in plan mode, there is no visual cue on the composer itself to indicate the active interaction mode. Adding an amber accent to the border and send button provides immediate, at-a-glance feedback so users don't accidentally send messages in the wrong mode.
UI Changes
Checklist
Note
Visually distinguish plan mode from chat mode in the composer
ring-planamber color tokens to the focus ring, drag-over border, and send button wheninteractionMode === 'plan'.--ring-planCSS color token (amber-500) in index.css to support plan-specific styling.Macroscope summarized 45a7d5e.