Skip to content

Commit f584724

Browse files
bgrgicakclaude
andcommitted
Add agent working directory to avoid Claude home trust bug
Claude doesn't trust ~ as a workspace even after marking it trusted (anthropics/claude-code#13288), so create /home/dev/agent and set it as the default WORKDIR. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent cc86564 commit f584724

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

packages/docker/Dockerfile.claude

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,9 @@ RUN curl -fsSL claude.ai/install.sh | bash -s 2.1.101
77
RUN echo 'export PATH="$HOME/.local/bin:$PATH"' >> /home/dev/.bashrc
88

99
ENV PATH="/home/dev/.local/bin:${PATH}"
10+
11+
# Create a dedicated working directory for the agent.
12+
# Claude doesn't trust ~ as a workspace even after marking it trusted:
13+
# https://github.com/anthropics/claude-code/issues/13288
14+
RUN mkdir -p /home/dev/agent
15+
WORKDIR /home/dev/agent

0 commit comments

Comments
 (0)