Skip to main content

remove_session_boot_block

Function remove_session_boot_block 

Source
pub fn remove_session_boot_block(repo_root: &Path) -> Result<(), PawError>
Expand description

Reads path (treating a missing file as empty), removes any git-paw managed block, and writes the result back. Idempotent: a file with no markers is a no-op and the original content is preserved byte-for-byte.

v0-5-0-audit-cleanup Bug E — cmd_stop and cmd_purge invoke this against the repo-root AGENTS.md after teardown so the supervisor- pane boot block does not accumulate across sessions.