mirror of
https://github.com/devvmhq/devvm.git
synced 2026-12-01 21:36:40 -10:00
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]>