You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The README says the default and sandbox variants share node_modules, Claude config, zsh history and gh/cf logins ("Install packages in one variant and both benefit"; "Sign in once in the default variant"). They don't. The devcontainer CLI passes mounts to Compose as service volumes, and Compose prefixes every non-external named volume with the project name. The two variants have different project names (myproject vs myproject-sandbox), so each gets its own set of volumes, and sandbox auth via the shared ~/.claude volume never works.
Reproduction
Open the default variant, then the sandbox variant, for the same project.
shows two volumes per project, one per compose project name.
Suggested fix
Options: (a) give both variants the same compose name: (they'd then share a compose project — check that opening one doesn't recreate/stop the other's container, since the service name is also devcontainer in both), or (b) declare the volumes in each docker-compose.yml with an explicit name: (and external: false) so Compose doesn't prefix them — at the cost of ${localWorkspaceFolderBasename} interpolation, which Compose can't see. Or (c) correct the README to say volumes are per-variant and sandbox needs CLAUDE_CODE_OAUTH_TOKEN.
Activity
gatezh commentedon Oct 22, 2026
Fixing the cause rather than the README: #236 moves the volumes into
docker-compose.ymlwith fixedname:s so both variants share them.