From 0b48d9bd21bd7dceb5e91c0fe671238cae0367b1 Mon Sep 17 00:00:00 2001 From: Karamelmar Date: Mon, 9 Mar 2026 13:10:15 +0100 Subject: [PATCH] Create ~/.anthropic before container start if it doesn't exist Podman refuses to bind-mount a path that doesn't exist on the host. On a fresh machine ~/.anthropic won't exist until claude is first run. Co-Authored-By: Claude Sonnet 4.6 --- lib/container.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/container.sh b/lib/container.sh index 1fe3f40..3fe271a 100644 --- a/lib/container.sh +++ b/lib/container.sh @@ -68,6 +68,9 @@ fi # ── Stop stale container ───────────────────────────────────────────────── "\$RUNTIME" rm -f "\$CONTAINER_NAME" 2>/dev/null || true +# ── Ensure ~/.anthropic exists (Claude Code stores auth/config here) ───── +mkdir -p "\$HOME/.anthropic" + # ── Start agents container ─────────────────────────────────────────────── # Mount project at the same absolute path so host and container paths match. # CS Core sets agent working dirs to host paths; the wrapper relays PWD.