[BUG] Plugin paths hardcoded with absolute paths fail across environments
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Reopen #15717
I am also having problems with my devcontainer setup. I mounted my .claude folder from the host system, but because the usernames differ, the plugins cannot be loaded within the Docker container.
As a workaround, I created a symlink to the host's home directory inside the container. However, when I add a plugin within the Docker container, it doesn't work in the host environment.
What Should Happen?
The paths to the installed plugins should be relative to the .claude folder.
Error Messages/Logs
Steps to Reproduce
Host System Home directory: /home/blankse/
Docker Container Home directory: /home/node/
devcontainer.json
{
"mounts": [
"source=${localEnv:HOME}/.claude,target=/home/node/.claude,type=bind,consistency=cached",
"source=${localEnv:HOME}/.claude.json,target=/home/node/.claude.json,type=bind,consistency=cached"
]
}
Dockerfile
RUN chown -R node:node /usr/local/share
USER node
ENV PATH=$PATH:/home/node/.local/bin
RUN curl -fsSL https://claude.ai/install.sh | bash
Open VS Code in Docker Container and open claude code.
=> Plugins cannot be loaded
Workaround with symlink:
devcontainer.json
{
"containerEnv": {
"HOST_HOME": "${localEnv:HOME}"
},
"postCreateCommand": "bash .devcontainer/post-create.sh",
}
post-create.sh
#!/bin/bash
set -e
sudo ln -s "$HOME" "$HOST_HOME"
Claude Model
None
Is this a regression?
No, this never worked
Last Working Version
_No response_
Claude Code Version
2.1.69
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
WSL (Windows Subsystem for Linux)
Additional Information
_No response_
This issue has 8 comments on GitHub. Read the full discussion on GitHub ↗