feat: colour output tags by status, not mode — readable error bodies (#10)

The output tag was tinted by submission mode for every line kind, so a
[system] line and an [error] line rendered with an identical leftmost
tag — distinguishable only by body colour. And flooding the whole error
body in red made long messages hard to read.

Colour the tag by message status instead (its OutputKind): [system] →
green, [error] → red; the echo tag keeps the mode tint (ADR-0037's
actual purpose — per-command success rides the ✓/✗ marker). Bodies go
neutral; the error body stays bold for weight (rustc-style: severity-
coloured label, readable bold message). Yields a status traffic-light
matching the ✓/✗ palette.

Narrows ADR-0037's mode side-channel to the echo line it was always for.
ADR-0037 Amendment 1; closes the tag-colour gap ADR-0040 flagged as OOS.
This commit is contained in:
claude@clouddev1
2026-05-31 22:02:12 +00:00
parent 1a93f0cd01
commit ae57c6fc82
3 changed files with 252 additions and 18 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long