diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 6f4d516a9f..26594e5c41 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -1,6 +1,11 @@ #!/bin/bash set -e +# Ensure required subdirectories exist. +# Named volumes inherit these from the image layer on first run; bind mounts do not, +# which causes the Claude subprocess to fail silently when spawned with a missing cwd. +mkdir -p /.archon/workspaces /.archon/worktrees + # Determine if we need to use gosu for privilege dropping if [ "$(id -u)" = "0" ]; then # Running as root: fix volume permissions, then drop to appuser