Skip to content

v0.12.0 — live session mirror

Choose a tag to compare

@ralyodio ralyodio released this 30 Jul 09:12
· 261 commits to main since this release

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=1 disables 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).