OpenProgram Docs

Three-surface sync

Web, TUI and CLI connect to one worker, so a turn started on one surface streams to the others.

BackendWebTUI and CLI
Source of truthOne worker (operations/worker/lock.py) and one session store (runtime/context/session_db.py)SameSame
EventsEventBus and _broadcast: one emission reaches every WebSocket clientReceivesReceives
Running state_running_tasks; running_task and running_task_clear broadcastsSidebar indicator, composer stateStatus
ReconnectSession load resends history and calls _send_running_task_state; subscribe_execution_stream serves a snapshot of execution_stream.v1RestoresRestores
Attended modeWebSocket set_attended, broadcast attended_changed. Per session over a process default of unattended (runtime/permissions/attended.py).Toggle (use-unattended-mode.ts)/attended [on|off], /unattended
Steeringexecution.steer, applied at the next safe point. Message up to 4096 characters.Input while running (lib/chat/send/steer-message.ts)/steer <instruction>; openprogram execution steer --message

Implementation status

All rows are implemented.

Controllability and three-surface sync

Last updated · 2026-11-25