Terminal
htmx swaps HTML rendered by latest_output_html()
Every line above is a row in commands. Nothing is stored in the page —
reload and the transcript is rebuilt from the database.
Database
The same tables the deployed system runs on
SELECT id, command, status, exit_code, submitted_at, completed_at FROM commands ORDER BY id DESC
fork_session() rebuilds an environment from a command's
cwd_snapshot/env_snapshot;
replay_session() re-queues the session's original commands under one
replay_run_id.
Queries run against the same database the shell uses. ⌘/Ctrl+Enter runs.