Skip to content

Commit 4869e59

Browse files
committed
Fix devcontainer credential forwarding and permission issues
- Add ~/.claude mount to devcontainer.json for IDE users (VS Code "Reopen in Container" now gets Claude credentials) - Add updateRemoteUserUID to fix UID mismatch between host and container - Fix wl-session-restore path in wl mux (use absolute path since bash -c doesn't source .bashrc)
1 parent 7847798 commit 4869e59

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33
"image": "ghcr.io/modern-tooling/work-lab:latest",
44
"workspaceFolder": "/workspaces/project",
55
"workspaceMount": "",
6+
"updateRemoteUserUID": true,
67
"mounts": [
78
// User's XDG config for work-lab customizations (optional)
8-
"source=${localEnv:HOME}/.config/work-lab,target=/home/worklab/.config/work-lab,type=bind,consistency=cached"
9+
"source=${localEnv:HOME}/.config/work-lab,target=/home/worklab/.config/work-lab,type=bind,consistency=cached",
10+
// Claude Code credentials (settings, API keys, session tokens)
11+
"source=${localEnv:HOME}/.claude,target=/home/worklab/.claude,type=bind,consistency=cached"
912
// Note: Project mount is added dynamically by 'work-lab up' based on current git repo
1013
],
1114
"remoteUser": "worklab",

bin/work-lab

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ cmd_mux() {
776776
if tmux has-session -t lab 2>/dev/null; then
777777
tmux attach -t lab
778778
elif [[ -f /workspaces/project/.work-lab/tmux-session ]]; then
779-
wl-session-restore lab && tmux attach -t lab
779+
/home/worklab/bin/wl-session-restore lab && tmux attach -t lab
780780
else
781781
tmux new-session -d -s lab -n '$project_name'
782782
tmux attach -t lab

0 commit comments

Comments
 (0)