detached 7ac2f1b

docs(terminal): clarify color override timing and heuristic claim resolution

commit
7ac2f1bf360d40ebb0fd418c264a6b383afdea4a
author
brice · · 2026-10-03 14:02 UTC
committer
brice · · 2026-10-03 14:14 UTC
parent
30ad963
signature
GPG VerifiedCD88F9E564E0102646FB6077A1A07C7C7C3E349D · arch-gpg Verified for the committer email
2 files · +5 -3
M docs/protocol.md +3 -1
@@ -94,7 +94,9 @@ closed enum (`TRUE_COLOR`, `ANSI256`, `ANSI16`, `MONOCHROME`) and a missing
9494 message, an `UNSPECIFIED` mode, or any unknown enum value is a malformed Hello
9595 (`sessionwire` rejects it before any mutation). `source` `UNSPECIFIED` means
9696 "unknown": the daemon then ignores the claimed mode and re-detects from
97-`Hello.Env`; `DECLARED` and `FORCED` claims are used verbatim.
97+`Hello.Env`; `DECLARED` and `FORCED` claims are used verbatim. A `HEURISTIC` truecolor claim
98+upgrades a weaker daemon-side detection; any other `HEURISTIC` claim falls back
99+to detection.
98100 (`internal/domain/terminalcap.Resolve`; wire tests in
99101 `sessionwire/proto_convert_test.go:TestProtoHelloColorWire`.)
100102
@@ -94,7 +94,9 @@ closed enum (`TRUE_COLOR`, `ANSI256`, `ANSI16`, `MONOCHROME`) and a missing
94 message, an `UNSPECIFIED` mode, or any unknown enum value is a malformed Hello94 message, an `UNSPECIFIED` mode, or any unknown enum value is a malformed Hello
95 (`sessionwire` rejects it before any mutation). `source` `UNSPECIFIED` means95 (`sessionwire` rejects it before any mutation). `source` `UNSPECIFIED` means
96 "unknown": the daemon then ignores the claimed mode and re-detects from96 "unknown": the daemon then ignores the claimed mode and re-detects from
97-`Hello.Env`; `DECLARED` and `FORCED` claims are used verbatim.97+`Hello.Env`; `DECLARED` and `FORCED` claims are used verbatim. A `HEURISTIC` truecolor claim
98+upgrades a weaker daemon-side detection; any other `HEURISTIC` claim falls back
99+to detection.
98 (`internal/domain/terminalcap.Resolve`; wire tests in100 (`internal/domain/terminalcap.Resolve`; wire tests in
99 `sessionwire/proto_convert_test.go:TestProtoHelloColorWire`.)101 `sessionwire/proto_convert_test.go:TestProtoHelloColorWire`.)
100 102
M docs/terminal.md +2 -2
@@ -26,7 +26,7 @@ Detection reads the client's `TERM` and `COLORTERM`. The first matching row wins
2626 | 2 | `TERM=xterm-kitty` inside kitty | truecolor |
2727 | 3 | `TERM` is `dumb`, `vt52`, `vt100`, `vt102`, `vt220`, or ends in `-m` or `-mono` | monochrome |
2828 | 4 | `TERM` contains `256color` | 256 |
29-| 5 | `TERM` is `linux`, `ansi`, `cons25`, or ends in `-16color` or `-color` | 16 |
29+| 5 | `TERM` is `linux`, `ansi`, `cons25`, or ends in `-16color` or `-color` | 16 (8-color terminals use the first 8) |
3030 | 6 | anything else | 256 (unverified guess) |
3131
3232 When detection finds a terminal with fewer than truecolor colors, vev shows a one-time notice. The notice is not shown for the unverified guess or for a forced mode.
@@ -40,7 +40,7 @@ When detection finds a terminal with fewer than truecolor colors, vev shows a on
4040
4141 Values: `auto`, `truecolor`, `256`, `16`, `mono`. `auto` (or an empty value) means detection. A forced mode never shows the notice.
4242
43-The override is read when a client attaches or reconnects. A config reload in the running daemon does not change attached clients.
43+`VEV_COLORS` and `terminal.colors` are read when the client starts; restart the client to apply a change. A config reload in the running daemon does not change attached clients.
4444
4545 ### What each mode changes
4646
@@ -26,7 +26,7 @@ Detection reads the client's `TERM` and `COLORTERM`. The first matching row wins
26 | 2 | `TERM=xterm-kitty` inside kitty | truecolor |26 | 2 | `TERM=xterm-kitty` inside kitty | truecolor |
27 | 3 | `TERM` is `dumb`, `vt52`, `vt100`, `vt102`, `vt220`, or ends in `-m` or `-mono` | monochrome |27 | 3 | `TERM` is `dumb`, `vt52`, `vt100`, `vt102`, `vt220`, or ends in `-m` or `-mono` | monochrome |
28 | 4 | `TERM` contains `256color` | 256 |28 | 4 | `TERM` contains `256color` | 256 |
29-| 5 | `TERM` is `linux`, `ansi`, `cons25`, or ends in `-16color` or `-color` | 16 |29+| 5 | `TERM` is `linux`, `ansi`, `cons25`, or ends in `-16color` or `-color` | 16 (8-color terminals use the first 8) |
30 | 6 | anything else | 256 (unverified guess) |30 | 6 | anything else | 256 (unverified guess) |
31 31
32 When detection finds a terminal with fewer than truecolor colors, vev shows a one-time notice. The notice is not shown for the unverified guess or for a forced mode.32 When detection finds a terminal with fewer than truecolor colors, vev shows a one-time notice. The notice is not shown for the unverified guess or for a forced mode.
@@ -40,7 +40,7 @@ When detection finds a terminal with fewer than truecolor colors, vev shows a on
40 40
41 Values: `auto`, `truecolor`, `256`, `16`, `mono`. `auto` (or an empty value) means detection. A forced mode never shows the notice.41 Values: `auto`, `truecolor`, `256`, `16`, `mono`. `auto` (or an empty value) means detection. A forced mode never shows the notice.
42 42
43-The override is read when a client attaches or reconnects. A config reload in the running daemon does not change attached clients.43+`VEV_COLORS` and `terminal.colors` are read when the client starts; restart the client to apply a change. A config reload in the running daemon does not change attached clients.
44 44
45 ### What each mode changes45 ### What each mode changes
46 46

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 12

Tags 11

↑↓ moveenter openesc close