Skip to main content

Module container_turn

Module container_turn 

Source
Expand description

Getting a container agent’s container ready for a turn: the container is running, and the provider CLI is installed in it.

Both places that start a container turn (agentinput and agent.send) go through prepare, so a failure reads the same in the pane whichever way the message arrived.

Spec: docs/specs/SPEC_CONTAINER_AGENTS_WORK_FOR_EVERYONE_2026_10_07.md.

Structs§

ContainerTurnPrep 🔒
Everything prepare needs from the turn that is starting.

Functions§

error_result_frame 🔒
The result frame that ends a turn with an error and carries message.
fail 🔒
Log e, write its plain-language message to the pane, and return it.
prepare 🔒
Start the container, then make sure the provider CLI is in it. On failure the pane gets a plain-language error frame (persisted, so it survives a reload) and the same text is returned.