[BUG] unable to delete hooks

Status Fixed / completed
Maintainer reply ✓ Yes — dicksontsai
Activity 6 comments · opened Jul 12, 2025 · closed Jul 24, 2025
💡 Likely answer: A maintainer (dicksontsai, collaborator) responded on this thread — see the highlighted reply below.

Environment

  • Platform (select one):
  • [ ] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: 1.0.51 (Claude Code) <!-- output of claude --version -->
  • Operating System: Windows 11 <!-- e.g. macOS 14.3, Windows 11, Ubuntu 22.04 -->
  • Terminal: Cursor IDE [WSL: ubuntu] <!-- e.g. iTerm2, Terminal App -->

Bug Description

issuu when try to delete a hook event , insted of delete it its duplicate the event <!-- A clear and concise description of the bug -->

Steps to Reproduce

  1. <!-- First step -->
  2. <!-- Second step -->
  3. <!-- And so on... -->

Expected Behavior

event should be deleted <!-- What you expected to happen -->

Actual Behavior

duplicate the event <!-- What actually happened -->

Additional Context

<!-- Add any other context about the problem here, such as screenshots, logs, etc. -->

<img width="686" height="269" alt="Image" src="https://github.com/user-attachments/assets/d004a4e2-ef2f-4713-acf1-8b2c9a291f3e" />

View original on GitHub ↗

6 Comments

PastaPastaPasta · 1 year ago

<img width="1179" height="483" alt="Image" src="https://github.com/user-attachments/assets/4b31a22f-b068-42ee-8367-957d6fb2ccd6" />
Hi; I've replicated this issue. I am unable to delete hooks in Claude Code ui

PastaPastaPasta · 1 year ago

@claude Please fix this bug :D

dicksontsai collaborator · 1 year ago

Due to the regression, I recommend just editing the settings file directly. Sorry for the inconvenience.

If you want to delete an individual hook, you can select it, which should then lead you to a prompt asking if you want to delete it.

dicksontsai collaborator · 1 year ago

@Gil100 The regression that duplicated settings will be fixed in v1.0.53. cc @bogini

PastaPastaPasta · 1 year ago
Due to the regression, I recommend just editing the settings file directly. Sorry for the inconvenience. If you want to delete an individual hook, you can select it, which should then lead you to a prompt asking if you want to delete it.

Yes, I was able to use claude to edit the settings.json manually :) Thanks for all you do

github-actions[bot] · 1 year ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.