Skip to content

Commit 9bbb6be

Browse files
MohsinHashmi-DataInnmohsin-wiserclaude
authored
fix: update claude mount paths to /root for coder workspaces (#421)
* fix: remove unnecessary coder binary move step in deployment workflow * fix: update claude mount paths to /root for coder workspaces - Changed Claude data directory mount from /home/vscode/.claude to /root/.claude - Added Claude configuration file mount at /root/.claude.json - Resolves issue where Claude CLI running as root couldn't access mounted data This ensures Claude CLI data persists correctly across workspace restarts since the CLI runs as root user in Coder containers. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> --------- Co-authored-by: Mohsin Hashmi <mhashmi@wiser.com> Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent c2d3c8e commit 9bbb6be

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.coder/template.tf

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,13 @@ resource "docker_container" "workspace" {
323323
# User credentials (persistent across host)
324324
volumes {
325325
host_path = "/home/coder/.coder-mount/${data.coder_workspace_owner.me.name}/claude"
326-
container_path = "/home/vscode/.claude"
326+
container_path = "/root/.claude"
327+
}
328+
329+
# Claude configuration file (must be pre-created as a file on host)
330+
volumes {
331+
host_path = "/home/coder/.coder-mount/${data.coder_workspace_owner.me.name}/claude/claude.json"
332+
container_path = "/root/.claude.json"
327333
}
328334

329335
volumes {

0 commit comments

Comments
 (0)