Skip to content

Commit 2bbf8a6

Browse files
alexsteeelclaude
andcommitted
feat: copy .env from host ~/.claude for Ralph CLI
Enables Telegram notifications and recovery settings in container. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 3f116d7 commit 2bbf8a6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/ai_sbx/dockerfiles/devcontainer-base/entrypoint.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,13 @@ if [ "$COPY_CLAUDE_SETTINGS" = "true" ] && [ -d /host/.claude ]; then
126126
if [ -f /host/.claude/settings.json ] && [ ! -f /home/claude/.claude/settings.json ]; then
127127
cp /host/.claude/settings.json /home/claude/.claude/ 2>/dev/null || true
128128
fi
129+
130+
# Copy .env from host if exists (for Ralph CLI: Telegram tokens, recovery settings)
131+
if [ -f /host/.claude/.env ] && [ ! -f /home/claude/.claude/.env ]; then
132+
cp /host/.claude/.env /home/claude/.claude/ 2>/dev/null && \
133+
chmod 600 /home/claude/.claude/.env 2>/dev/null && \
134+
echo "Copied .env from host ~/.claude" || true
135+
fi
129136
fi
130137

131138
# Copy Codex auth.json from host if mounted and readable

0 commit comments

Comments
 (0)