You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.4 KiB
1.4 KiB
| title | status | type | priority | created_at | updated_at | parent |
|---|---|---|---|---|---|---|
| TUI: color toggle with 'c' key | completed | task | normal | 2026-03-31T00:33:01Z | 2026-03-31T04:32:25Z | claudbg-qpfe |
In the TUI, pressing c toggles color coding on/off globally (affects all transcript views). Color is on by default unless NO_COLOR is set. The toggle state persists for the duration of the TUI session.
Summary of Changes
Added a global color toggle to the TUI, activated with the c key:
src/tui/state.rs: Addedcolor_enabled: boolfield toAppState. Initialised inAppState::new()by checking theNO_COLORenv var (false if set and non-empty, true otherwise). Added tests for both cases.src/tui/run.rs: AddedKeyCode::Char('c')to the global event fallback handler to togglestate.color_enabled. Added a test for the toggle.src/tui/screens/transcript.rs: Updatedbuild_chat_linesto accept acolor_enabled: boolparameter and conditionally apply ratatuiStylecolours to role labels (orange for assistant, grey for user), tool-use lines (cyan), tool-result lines (green/red), and image lines (yellow). Whencolor_enabledis false, all spans useStyle::default(). Updated the call site inrender_transcriptto passstate.color_enabled. Updated all test calls to passfalse.src/tui/modals/help_modal.rs: Addedc toggle colorline toHELP_TEXTand bumpedDIALOG_HEIGHTfrom 14 to 15 to accommodate it.