Expand description
A container agent’s Shell drawer runs in its container, never on the host.
The drawer’s shell is a sub-block of the agent’s pane. When that pane belongs to a container agent
(agentMode “container”), the shell is docker exec -it <container> bash in the agent’s workspace
mount, so what the person types runs where the agent’s own commands run. The CLI is pointed at the
daemon the container manager found (DOCKER_HOST; a Podman socket speaks Docker’s API), not at whatever
context the CLI would pick. If docker or the container is not there, the exec fails and says so in the
terminal: it never falls back to a host shell. An explicit SSH or WSL connection on the shell wins over this.