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
{{ message }}
Repository navigation
Host mounts saved in the config aren't expanded or checked like --mount #25
Host mounts given on the command line (--mount, --desktop) go through expandHostPath(), plus an existence check, in src/commands/start.ts. Host mounts saved in the config (sandbox.hostMounts) skip both: resolveHostMounts() copies them as-is, and buildRunFlags() passes each one straight to --volume ${mount.source}:${mount.target}:${mount.mode} (src/docker/templates.ts).
So a saved source such as ~/data or ./data reaches Docker unexpanded. Docker rejects it, or, for a bare name like data, mounts a named volume instead of the host folder. A saved source that no longer exists is created by Docker (owned by root on Linux), where --mount would refuse.
Nothing in the CLI writes sandbox.hostMounts today, so this affects hand-edited configs. It'll matter more with declarative workspaces (#14).
Expected
Saved host mounts get the same treatment as --mount: ~ expanded and the source checked to exist. For a relative or bare-name source, the same legacy question as the workspace in #24 applies. A bare name may be an existing Docker volume holding data, so it should be kept with a warning rather than silently remapped.
Activity