Skip to content

Commit 7c4789a

Browse files
committed
Update sandcat config
1 parent 6cd3105 commit 7c4789a

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

.devcontainer/Dockerfile.app

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,9 @@ RUN if MISE_JAVA=$(mise where java 2>/dev/null); then \
4242
} >> "$HOME/.bashrc"; \
4343
fi
4444

45-
# Pre-create the Claude config directory and seed onboarding flag so Claude
46-
# Code can use an API key from the environment without interactive setup.
47-
RUN mkdir -p /home/vscode/.claude \
48-
&& echo '{"hasCompletedOnboarding":true}' > /home/vscode/.claude.json
45+
# Pre-create ~/.claude so Docker bind-mounts (CLAUDE.md, agents/, commands/)
46+
# don't cause it to be created as root-owned.
47+
RUN mkdir -p /home/vscode/.claude
4948

5049
RUN echo 'alias claude-yolo="claude --dangerously-skip-permissions"' >> /home/vscode/.bashrc
5150

.devcontainer/sandcat/scripts/app-user-init.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,11 @@ EOFJSON
7373
fi
7474
fi
7575

76+
# Seed the onboarding flag so Claude Code uses the API key without interactive
77+
# setup. Only written when the user configured an ANTHROPIC_API_KEY secret.
78+
if [ -n "${ANTHROPIC_API_KEY:-}" ]; then
79+
echo '{"hasCompletedOnboarding":true}' > "$HOME/.claude.json"
80+
fi
81+
7682
# Best-effort: may fail if network isn't routed yet or CLI was just installed.
7783
claude update || true

0 commit comments

Comments
 (0)