Skip to content

Fix safe Host sessions and duplicate status lines - #199

Open
reiase wants to merge 2 commits into
mainfrom
fix/safe-spawn-home-mount
Open

reiase wants to merge 2 commits into
mainfrom
fix/safe-spawn-home-mount

Conversation

@reiase

@reiase reiase commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • pvisor spawn --safe failed before the command ran when the default Run directory lived under $HOME. The rootless sandbox copy-on-writes that directory, and the workspace FUSE mount inside it made mount(2) return EINVAL. The live mount now sits outside those roots.
  • pvisor status printed the same session id twice. It now prints one session line, and a distinct recorded session line only when that id differs.

Test plan

  • mise run test -- pvisor-cli -- --test rootless_local --test-threads 1 (17 passed, including default Run storage under HOME)
  • mise run test -- pvisor pvisor-cli -- -E 'test(merged_mount_outside_state_roots_prefers_runtime_then_temp)'
  • mise run test -- pvisor-cli -- -E 'test(status_identity)'
  • Manual README path: spawn --safe, review both files, apply only hello.txt, drop the rest
  • Manual selective apply: keep an edit, drop a spaced new file and a deletion

Made with Cursor

reiase and others added 2 commits November 24, 2026 08:16
The rootless sandbox copy-on-writes HOME, but the workspace FUSE mount was created inside that tree and mount(2) failed before the agent ran.

Co-authored-by: Cursor <cursoragent@cursor.com>
`pvisor status` printed the run id and the recorded session id with the same label, so an ordinary session looked duplicated.

Co-authored-by: Cursor <cursoragent@cursor.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant