fix: doctor deletions check and onboard docs improvements

- Fix doctor to treat empty deletions.jsonl as valid (0 entries OK status)
- Fix HydrateDeletionsManifest to create empty file when no deletions found
- Add --parent flag documentation to onboard command
- Add CLI --help tip throughout onboard documentation

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Steve Yegge
2025-11-27 13:23:14 -08:00
parent bba6dd1d70
commit 3f609267d4
4 changed files with 32 additions and 4 deletions

View File

@@ -2078,10 +2078,17 @@ func checkDeletionsManifest(path string) doctorCheck {
deletionsPath := filepath.Join(beadsDir, "deletions.jsonl")
// Check if deletions.jsonl exists and has content
// Check if deletions.jsonl exists
info, err := os.Stat(deletionsPath)
if err == nil && info.Size() > 0 {
// Count entries
if err == nil {
// File exists - count entries (empty file is valid, means no deletions)
if info.Size() == 0 {
return doctorCheck{
Name: "Deletions Manifest",
Status: statusOK,
Message: "Present (0 entries)",
}
}
file, err := os.Open(deletionsPath) // #nosec G304 - controlled path
if err == nil {
defer file.Close()