ticket #63: TUI chat — reasoning in a colour of its own
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3780f1a parent: bf7b6a3 added
.tickets/issues/0063-tui-chat-reasoning-in-its-own-colour.yaml +50 -0 | new file mode 100644 | ||
| @@ -0,0 +1,50 @@ | ||
| 1 | +# Managed by IssueSpec. Hand edits are welcome; keep the schema valid. | |
| 2 | +id: 63 | |
| 3 | +title: "TUI chat: show the reasoning in a colour of its own" | |
| 4 | +state: open | |
| 5 | +author: | |
| 6 | + name: k33g | |
| 7 | + email: ph.charriere@gmail.com | |
| 8 | +createdAt: 2026-11-27T08:00:00.000Z | |
| 9 | +updatedAt: 2026-11-27T08:00:00.000Z | |
| 10 | +labels: | |
| 11 | + - "kind::feature" | |
| 12 | + - "area::tui" | |
| 13 | + - "priority::medium" | |
| 14 | +milestone: "v0.3 — TUI" | |
| 15 | +epic: "TUI mode" | |
| 16 | +related: | |
| 17 | + - 55 | |
| 18 | + - 58 | |
| 19 | +body: | | |
| 20 | + Asked by the user (2026-11-27): when thinking is on, the reasoning ("thinking") part of an answer must be shown in a different colour in the Chat screen, so it cannot be mistaken for the answer. | |
| 21 | + | |
| 22 | + ## Today | |
| 23 | + `ChatRenderer.reasoning` draws it dim (`Style.dim`, ANSI 2) with a ` ⋯ ` prefix when the display is `shown`; `folded` shows one dim line (`⋯ thinking (N words) · Ctrl-R to show`); `hidden` shows nothing. Dim is hard to tell apart from the dim stats line and, on some themes, barely visible. | |
| 24 | + | |
| 25 | + ## To do | |
| 26 | + - A colour for reasoning (e.g. cyan or magenta, ANSI 36 / 35; keep it readable on light and dark themes), used for the shown reasoning lines and the folded line, distinct from the answer (default colour), the stats (dim) and errors (red). | |
| 27 | + - Keep the `⋯` prefix so it stays distinct without colours (`NO_COLOR`, `colors: false`). | |
| 28 | + - Maybe a preference (`tui.yaml` `reasoning_color`, Settings field) — decide; at least the constant lives in `Style`. | |
| 29 | + - While the reasoning is streaming (before the answer starts), the same colour. | |
| 30 | + | |
| 31 | + ## Acceptance | |
| 32 | + ChatRenderer tests: reasoning lines carry the reasoning colour code, answer lines do not; plain output unchanged without colours. Reference EN+FR (`reference/tui.md`, Chat) mentions the colour. | |
| 33 | +tasks: | |
| 34 | + - id: 1 | |
| 35 | + title: "Reasoning colour in Style and ChatRenderer (shown, folded, streaming), tests" | |
| 36 | + state: open | |
| 37 | + priority: medium | |
| 38 | + author: | |
| 39 | + name: k33g | |
| 40 | + email: ph.charriere@gmail.com | |
| 41 | + createdAt: 2026-11-27T08:00:00.000Z | |
| 42 | + - id: 2 | |
| 43 | + title: "Decide on a reasoning_color preference; docs EN+FR" | |
| 44 | + state: open | |
| 45 | + priority: low | |
| 46 | + author: | |
| 47 | + name: k33g | |
| 48 | + email: ph.charriere@gmail.com | |
| 49 | + createdAt: 2026-11-27T08:00:00.000Z | |
| 50 | +comments: [] | |
| new file mode 100644 | |||
| @@ -0,0 +1,50 @@ | |||
| 1 | +# Managed by IssueSpec. Hand edits are welcome; keep the schema valid. | ||
| 2 | +id: 63 | ||
| 3 | +title: "TUI chat: show the reasoning in a colour of its own" | ||
| 4 | +state: open | ||
| 5 | +author: | ||
| 6 | + name: k33g | ||
| 7 | + email: ph.charriere@gmail.com | ||
| 8 | +createdAt: 2026-11-27T08:00:00.000Z | ||
| 9 | +updatedAt: 2026-11-27T08:00:00.000Z | ||
| 10 | +labels: | ||
| 11 | + - "kind::feature" | ||
| 12 | + - "area::tui" | ||
| 13 | + - "priority::medium" | ||
| 14 | +milestone: "v0.3 — TUI" | ||
| 15 | +epic: "TUI mode" | ||
| 16 | +related: | ||
| 17 | + - 55 | ||
| 18 | + - 58 | ||
| 19 | +body: | | ||
| 20 | + Asked by the user (2026-11-27): when thinking is on, the reasoning ("thinking") part of an answer must be shown in a different colour in the Chat screen, so it cannot be mistaken for the answer. | ||
| 21 | + | ||
| 22 | + ## Today | ||
| 23 | + `ChatRenderer.reasoning` draws it dim (`Style.dim`, ANSI 2) with a ` ⋯ ` prefix when the display is `shown`; `folded` shows one dim line (`⋯ thinking (N words) · Ctrl-R to show`); `hidden` shows nothing. Dim is hard to tell apart from the dim stats line and, on some themes, barely visible. | ||
| 24 | + | ||
| 25 | + ## To do | ||
| 26 | + - A colour for reasoning (e.g. cyan or magenta, ANSI 36 / 35; keep it readable on light and dark themes), used for the shown reasoning lines and the folded line, distinct from the answer (default colour), the stats (dim) and errors (red). | ||
| 27 | + - Keep the `⋯` prefix so it stays distinct without colours (`NO_COLOR`, `colors: false`). | ||
| 28 | + - Maybe a preference (`tui.yaml` `reasoning_color`, Settings field) — decide; at least the constant lives in `Style`. | ||
| 29 | + - While the reasoning is streaming (before the answer starts), the same colour. | ||
| 30 | + | ||
| 31 | + ## Acceptance | ||
| 32 | + ChatRenderer tests: reasoning lines carry the reasoning colour code, answer lines do not; plain output unchanged without colours. Reference EN+FR (`reference/tui.md`, Chat) mentions the colour. | ||
| 33 | +tasks: | ||
| 34 | + - id: 1 | ||
| 35 | + title: "Reasoning colour in Style and ChatRenderer (shown, folded, streaming), tests" | ||
| 36 | + state: open | ||
| 37 | + priority: medium | ||
| 38 | + author: | ||
| 39 | + name: k33g | ||
| 40 | + email: ph.charriere@gmail.com | ||
| 41 | + createdAt: 2026-11-27T08:00:00.000Z | ||
| 42 | + - id: 2 | ||
| 43 | + title: "Decide on a reasoning_color preference; docs EN+FR" | ||
| 44 | + state: open | ||
| 45 | + priority: low | ||
| 46 | + author: | ||
| 47 | + name: k33g | ||
| 48 | + email: ph.charriere@gmail.com | ||
| 49 | + createdAt: 2026-11-27T08:00:00.000Z | ||
| 50 | +comments: [] | ||