Skip to content

Commit 1406c09

Browse files
stbenjamclaude
andcommitted
Bind-mount host workspace for local podman sessions
For local (non-SSH) podman sessions, bind-mount the host workspace directory directly to /pvc/workspace instead of requiring git remote setup. This makes code immediately available in the container, which is especially important for large repos where git push is slow. SSH remote sessions continue to use the named volume + git remote flow. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 50050b6 commit 1406c09

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/paude/backends/podman/backend.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,11 @@ def create_session(self, config: SessionConfig) -> Session:
320320
mounts = list(config.mounts)
321321
mounts.extend(["-v", f"{vname}:/pvc"])
322322

323+
# Bind-mount host workspace directly for local sessions (avoids
324+
# the git-remote sync step, which is slow for large repos).
325+
if not self._engine.is_remote:
326+
mounts.extend(["-v", f"{config.workspace}:{CONTAINER_WORKSPACE}:z"])
327+
323328
proxy_name_for_env = (
324329
(proxy_ip or proxy_container_name(session_name))
325330
if config.proxy_image

0 commit comments

Comments
 (0)