Freeze
Use when the user says to only edit a path, freeze edits, restrict edits, or lock file changes to a directory.
Process
- If no path was supplied, ask which file or directory should be editable.
- Resolve the path from the current working directory with Bash.
- Run
lstack freeze <path>orlstack freeze --allow <path> --allow <path2>. - Tell the user the boundary that is active.
Required Notes
- Freeze applies to Edit, Write, and MultiEdit.
- Read, Glob, Grep, and Bash are not blocked by freeze by default.
- Bash can still mutate files. Freeze is an accidental-edit guard, not a security sandbox.
- To change the boundary, run
lstack unfreezeorlstack freeze <path>.