v0.12.0 — live session mirror
See a running mosh instance from the browser, and type back into it.
app.moshcode.sh/sessions lists your connected instances; opening one streams what that pit is printing, in real time, with its colour intact. The send box runs a command in the live prompt.
- CLI registers on start, tees its output to the app in small batches, long-polls for web commands
- SSE stream replays scrollback first, so a page opened mid-run has context
- commands are claimed exactly once (the UPDATE is the lock)
- best-effort and opt-out: network errors are swallowed, only an interactive TTY registers,
MOSHCODE_NO_MIRROR=1disables it
Known limit: when an engine takes the terminal (/agents claude) it writes to the tty on its own fd, so the mirror shows the hand-off, not the engine's own screen.
Requires the app to run its new migration (005_sessions.sql).