Skip to content

bug: npm uninstall -g failproofai does not remove hooks from Claude settings #20

Open

Description

@NiveditJain

Problem

npm uninstall -g failproofai is not removing the failproofai hooks from Claude Code settings files after package removal.

The preuninstall lifecycle script should clean up all hooks written during installation, but they persist in settings files after uninstall.

Steps to Reproduce

  1. Install the package: npm install -g failproofai
  2. Confirm hooks are written to ~/.claude/settings.json (and/or project/local settings)
  3. Remove the package: npm uninstall -g failproofai
  4. Check settings files — hooks are still present

Expected Behavior

All failproofai hooks are fully removed from all affected settings files after uninstall. No third-party hooks are accidentally removed.

Settings Files Affected

  • ~/.claude/settings.json (user scope)
  • <project>/.claude/settings.json (project scope)
  • <project>/.claude/settings.local.json (local scope)

Activity

  1. changed the title [-]test: verify preuninstall TypeScript fix in next beta release[/-] [+]test: verify package removal cleans up hooks from Claude settings[/+] on Apr 7, 2026
  2. NiveditJain commented on Apr 7, 2026

    @NiveditJain
    MemberAuthor

    this is open and not working currently. Fixing this

  3. changed the title [-]test: verify package removal cleans up hooks from Claude settings[/-] [+]bug: npm uninstall -g failproofai does not remove hooks from Claude settings[/+] on Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions