M4: terminal panel with Claude Code in tmux, live reload #5

Open
opened 2026-11-15 23:51:26 +01:00 by schmidt.florian · 1 comment
Owner

node-pty + tmux terminal over /api/terminal, xterm.js panel in web, file watcher emitting file.changed, workspace CLAUDE.md format guide. Spec §6.
Done when: Claude edits a notebook in the panel and the view updates live.

node-pty + tmux terminal over /api/terminal, xterm.js panel in web, file watcher emitting file.changed, workspace CLAUDE.md format guide. Spec §6. Done when: Claude edits a notebook in the panel and the view updates live.
Author
Owner

Landed on main (7cf1ef8, 91ac1df, a6429e0): /api/terminal WebSocket → node-pty → tmux new-session -A -s shellbook-<name> in the workspace (closing a tab only detaches; validated input/resize), notebook watcher (chokidar, debounced) wired into /api/events, xterm.js panel in the web app (lazy-loaded, survives collapse, reconnect), starter workspace in templates/workspace (CLAUDE.md format guide + 3 example notebooks). systemd uses KillMode=process so tmux sessions survive service restarts. Left open: the done-when check (Claude edits a notebook in the panel, view updates live) needs Linux with tmux and a logged-in claude; the dev host is Windows, so the real-tmux test was skipped. Verify on CT 501, then close.

Landed on main (7cf1ef8, 91ac1df, a6429e0): /api/terminal WebSocket → node-pty → `tmux new-session -A -s shellbook-<name>` in the workspace (closing a tab only detaches; validated input/resize), notebook watcher (chokidar, debounced) wired into /api/events, xterm.js panel in the web app (lazy-loaded, survives collapse, reconnect), starter workspace in templates/workspace (CLAUDE.md format guide + 3 example notebooks). systemd uses KillMode=process so tmux sessions survive service restarts. Left open: the done-when check (Claude edits a notebook in the panel, view updates live) needs Linux with tmux and a logged-in `claude`; the dev host is Windows, so the real-tmux test was skipped. Verify on CT 501, then close.
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: FinalFactory/ShellBook#5