Problem
The removeCaptureHooks() function in src/cli/commands/capture.ts:93 can throw if a settings.json hook entry is missing its hooks array. This throws during the init settings pass, aborting the entire init command.
Current Status
Expected Behavior
removeCaptureHooks() should gracefully handle missing/malformed hook entries
- Should return a Result type or log a warning instead of throwing
- Init should continue even if hook cleanup encounters a missing array
Acceptance Criteria
Related
Problem
The
removeCaptureHooks()function insrc/cli/commands/capture.ts:93can throw if a settings.json hook entry is missing its hooks array. This throws during the init settings pass, aborting the entire init command.Current Status
Expected Behavior
removeCaptureHooks()should gracefully handle missing/malformed hook entriesAcceptance Criteria
removeCaptureHooks()returns Result type instead of throwingRelated