fix: address PR #373 review feedback

- postuninstall.js: add file logging for debugging on error
- profile-hook-injector.ts: use 'wx' flag for atomic marker creation
- profile-hook-injector.ts: include parse error message in debug log
- install-command.ts: use actual counts for consistent semantics
- Windows tests: align Section 7 with per-profile hook architecture
This commit is contained in:
kaitranntt
2026-01-25 22:02:25 -05:00
parent e0891fe915
commit e98a92fded
4 changed files with 43 additions and 51 deletions
+8 -2
View File
@@ -34,8 +34,14 @@ function cleanupCcsFiles() {
// Note: Do NOT touch ~/.claude/settings.json
// Per-profile hooks in ~/.ccs/*.settings.json will be cleaned up
// when the user removes ~/.ccs/ directory.
} catch {
// Silent fail - not critical
} catch (err) {
// Silent fail - not critical, but log for debugging
try {
const logPath = path.join(CCS_DIR, 'uninstall.log');
fs.appendFileSync(logPath, `${new Date().toISOString()}: ${err.message}\n`);
} catch {
// Ignore logging failures
}
}
}