Skip to main content

Module actor_cmds

Module actor_cmds 

Source
Expand description

SessionActor — command bodies that belong to the TUI port (A3): engine_command (structured reply), submit_prepared, plugin_command, resume, session_name, emit_subagent_rows. Kept apart from actor.rs so the turn machine (B) and the command surface (A) never touch the same file.

Functions§

auth_command_reply
/auth reload → {kind: output|error, text}. Token values never appear: success text is built by Runtime::reload_auth, failures carry the broker error (which is token-free by construction).
engine_command_reply
handle_engine_command on runtime + the QueryResult value clients render. Returns (value, view_changed). Shared by the actor and the TUI’s ScriptedTransport so both answer identically.