Files
devvm/testdata
w3cjandClaude Opus 5.5 1812867162 fix(vm): a subfolder's lookup stops at the nearest parent with state; widening a parent's VM asks
The parent-folder lookup passed over a parent whose VM was made for an
earlier folder or that its backend had lost, and went on to a VM further
out. A VM can rename a nested project folder through its mount (a new
device and inode), so devvm skipped the nested folder's VM and acted on
the outer one, the VM that replaced it. parentVM now stops at the first
parent folder with state of its own: its VM is used only when its backend
has it and it was made for that folder, else the folder devvm runs in has
no VM (no_vm; devvm makes a new one). Only folders without state are
passed over.

Commands that give a parent folder's VM more access, run from a
subfolder, ask first ([y/N]), naming the VM and its folder, and refuse
without a terminal: devvm secret use, ssh-agent on and devvm, network
off, policy allow, policy rm of a deny, and git-protect off (found.widen).

Messages: widen_parent_vm (the prompt), widen_parent_vm_refused (linked
to getting-started/commands#a-subfolder).

Tests: TestLookupParents (a parent's lost VM and another folder's VM stop
the search: no VM, no_vm), TestWidenParentVM (each command refused
without a terminal, a no changing nothing, a yes changing it; taking
access away asks nothing), subfolder.txtar (the refusals without a
terminal).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-30 23:51:07 -07:00
..
2026-10-24 09:50:15 -06:00