Skip to content

install on 0.9.1-rc.1 removes existing Claude Code hooks instead of installing them #1387

Description

@dergachoff

macOS arm64, manual tarball install of v0.9.1-rc.1 over a working 0.9.0 setup (release-asset binary, checksums OK).

install -y prints this for Claude Code:

hooks: PreToolUse Grep/Glob search augmentation + PostToolUse Read coverage (non-blocking)
hooks: SessionStart (MCP usage reminder on startup/resume/clear/compact)
hooks: SubagentStart (MCP usage reminder for subagents)

What actually happened to ~/.claude/settings.json (diffed against a pre-install backup):

  • my existing Grep|Glob PreToolUse entry (→ cbm-code-discovery-gate) — removed
  • all four SessionStart reminder entries (startup/resume/clear/compact) — removed
  • PostToolUse Read coverage — never added
  • SubagentStart → new cbm-subagent-reminder — added (the only thing that was)

So the summary claims three hook groups, installs one, and deletes the two I had. Running install -y a second time doesn't restore anything, so it's not a remove-then-migrate that got interrupted — the re-add just never happens. Grepped ~/.claude/settings.json and ~/.claude.json to make sure they weren't written somewhere else: nothing. The script files themselves (cbm-code-discovery-gate, cbm-session-reminder) were left untouched, only the settings entries vanished.

--dry-run prints the same three-group summary, so you can't catch it before it bites either.

Workaround: re-add the entries by hand from a settings backup.

Happy to share the full settings diff if useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    editor/integrationEditor compatibility and CLI integration

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions