Problem
If installViaFileCopy crashes mid-plugin (e.g., disk full, permission error), partial artifacts remain in ~/.claude/commands/devflow/, ~/.claude/agents/devflow/, and ~/.claude/skills/. No rollback mechanism exists.
Proposed Fix
- Copy to a temp directory first, validate all files are present
- Move atomically to final location (rename is atomic on same filesystem)
- Track installed files in manifest for clean rollback
- On failure: remove partial artifacts and restore previous state
Scope
- Medium effort — temp directory staging, atomic move, rollback logic
- Improves reliability for users with constrained environments
Problem
If
installViaFileCopycrashes mid-plugin (e.g., disk full, permission error), partial artifacts remain in~/.claude/commands/devflow/,~/.claude/agents/devflow/, and~/.claude/skills/. No rollback mechanism exists.Proposed Fix
Scope