Inject
inject
¶
Injection helpers for sealed containers.
In sealed isolation mode, the container has no bind mounts — files must be
injected via podman cp. These helpers complement
prepare_agent_config_dir which prepares
the files on the host side.
inject_agent_config(container_name, config_dir)
¶
Copy a prepared agent-config directory into a sealed container.
The container must be in the created or stopped state. Delegates
to terok_sandbox.Sandbox.copy_to.
Source code in src/terok_executor/container/inject.py
inject_prompt(container_name, prompt_text)
¶
Write a follow-up prompt into a stopped sealed container.
Writes prompt_text to a temp file and copies it into the container
via podman cp. Works on stopped containers (unlike podman exec),
which is the expected state during headless follow-ups.