Skip to content

Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.

Merge remote-tracking branch 'refs/remotes/pr/1410' into carry/pr-1410

review8ee118cf0985
diff --cc CLAUDE.md
index 612af733c,4c77023a5..f7075f1e7
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@@ -4636,13 -4594,13 +4636,20 @@@ command-bearing opens; this does not ad
terminal equivalent. Surfaces: Desktop + Server Edition identical (dictation and uploads already
bridge — `files.saveUpload`, `speech.*`); SSH nodes upload to the host; kanban card modal shares
ChatPanel and wires both props; relay tabs keep the panel's existing refusal; mobile N/A.
+ **Its height** (`lib/chatComposerHeight.ts`): the textarea grows with the draft until the whole
+ composer fills half the INNER space (top of `.term-chat__thread` to the bottom of the composer,
+ never the whole panel), or keeps the height the user dragged the grip on its top edge to
+ (localStorage, one value for every composer; double-click / Enter on the grip = auto again). The
+ `/` and `@` menu takes at most 240px, half the inner space and the room above the composer
+ (`completeMenuMax` → `--chat-complete-max`), so a tall box cannot push it under the panel header.
+ Heights are layout pixels: a drag divides by the canvas zoom.
+ **The draft is not component state** (`state/chatDraft.ts`): ChatPanel unmounts on every project
+ switch, and a `useState` draft was lost with it. It is keyed by node id (the canvas node and the
+ card modal share one draft) and persisted to localStorage (`nodeterm.chatDrafts`, machine-local),
+ so it survives a reload and a restart as the TUI's own input box does in tmux. Writes are
+ debounced, flushed on pagehide, and merge only this window's changes into the stored map (two
+ Server Edition tabs); bounded by age (30 days), count (50) and size (32,000 chars stays in memory
+ only). Pruned by age, not node existence: a closed project still holds its nodes.
Fix-round rules (same day): the composer is its OWN component (`nodes/ChatComposer.tsx`) so the
thread and the composer restyle independently. A label click is an explicit "go to the
terminal", so the flip FOCUSES the xterm whatever its entry state was