Merge #859: a chat view shows a Claude session's conversation, rendered and live (chat view 1/5)

# Conflicts:
#	docs/architecture-invariants.md
#	src/web/CLAUDE.md
#	src/web/public/settings-ui.js
This commit is contained in:
Codeman maintainer committed 2026-12-03 10:15:29 +01:00
commit 3397d11859
39 files changed
+3844 -244

No files matched your search

+15 -3
View File
@@ -14,6 +14,7 @@ Press `Ctrl+?` in the app for the same list in a floating overlay.
| `Alt+1` to `Alt+9` | Switch to tab N. Physical keys, so macOS Option layouts work. |
| `Ctrl+Shift+{` / `Ctrl+Shift+}` | Move the active tab left / right. |
| `Alt+B` | Collapse / expand the session sidebar, when that layout is on. |
| `Alt+Shift+C` | Switch a Claude session between Chat and Terminal view, when [the chat view](Settings-Reference#header--panels) applies to it. |
`Ctrl+W` is not a Codeman shortcut: it goes to the terminal, where shells and agent CLIs
use it to delete the previous word. **Close Session** has no key by default; close a session
@@ -89,9 +90,20 @@ The terminal sees keystrokes before the app does. Any chord the app claims has t
swallowed at the terminal layer, or xterm writes the control byte into the session as well
as triggering the action. A chord **you** rebind an action to is kept out of the terminal
too, so rebinding Previous Session to `Alt+J` switches the session and sends nothing to the
CLI. The built-in defaults are deliberately not held back this way: `Ctrl+L` clears the
screen and also reaches the CLI, which redraws on it. Binding an action back onto its own
default behaves like the default.
CLI. Several built-in defaults are held back too, each by a check of its own:
- the tab switches (`Alt+1` to `Alt+9`, `Alt+[` and `Alt+]`) and the session finder
(`Ctrl+K`, `Alt+K`);
- `Alt+B`, while the sidebar layout is on;
- `Alt+Shift+C`, while the active session can show the chat view;
- Copy Selection, whose `Ctrl+Shift+C` never reaches the CLI and whose `Ctrl+C` does not
while text is selected;
- the tile grid chords.
None of those chords types anything into the CLI when it acts as its shortcut; `Ctrl+C`
with nothing selected is the interrupt and reaches the CLI. The other defaults still
reach it: `Ctrl+L` clears the screen and also reaches the CLI, which redraws on it.
Binding an action back onto its own default behaves like the default.
`Alt+1` through `Alt+9` are matched on **physical key position** rather than the character
produced, so macOS Option layouts that produce `¡™£` still switch tabs.
+15 -1
View File
@@ -122,7 +122,21 @@ images it produced. Claude sessions, local and remote (SSH). Nothing is read unt
stores those diffs (secrets included) under `~/.codeman/edit-history/`; see
[Working With Files](Working-With-Files#edit-history).
Most default to off. The stock desktop header is system stats, File Viewer, Tiles, and the gear.
Under **Panels**, **Open Claude sessions in Chat view** (per device, off by default, never on
phones) picks the view a Claude session opens in. The chat view draws the session's conversation
as text, over the terminal. To type, switch to the Terminal view. The terminal keeps running underneath, so switching
views never resizes it. The chat view applies to local and Docker Claude sessions in the main
view. Remote (SSH) and adopted sessions keep the terminal, and so do the tiles of the tile grid
and the second pane of a split. Each session remembers its own choice in this browser: press
`Alt+Shift+C`, or use the Chat / Terminal switch at the terminal's top right, to change it.
Another browser or device opens the same session in its own default until you choose there too.
This setting decides only where a session with no choice of its own starts.
**Show the Chat / Terminal switch** (per device, on by default, never on phones) shows that switch
at the top right of a Claude session. Turn it off to keep the switch from covering the
terminal's corner. Each session keeps the view it had, and `Alt+Shift+C` still switches views.
Most header chips default to off. The stock desktop header is system stats, File Viewer, Tiles, and the gear.
**Header Stats Style** picks how the system stats and plan usage are drawn: *Compact*
(default; two pills with a ring beside every value), *Tiles* (label over value with a bar underneath) or *As before* (the bars and the `5H · 7D` chip). Desktop only, per device.
New header controls never appear on phones. Split is desktop-only regardless of this