Skip to content

fix: G0 health check misses top-level event-key hooks #91

@claudioemmanuel

Description

@claudioemmanuel

The G0 health check shipped in #90 / #89 only scans settings.hooks.*. The squeez installer (PATCH_SCRIPT in src/hosts/claude_code.rs) writes hook arrays at top-level event keys (settings.PreToolUse, settings.SessionStart, settings.PostToolUse).

End-to-end testing on a real ~/.claude/settings.json confirmed: hooks present, grep finds 4 squeez references, but the new health check reported missing — a false alarm that would prompt users to re-run squeez setup unnecessarily.

Fix: scan both buckets (settings.hooks.* AND top-level event keys) plus the statusLine slot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions