Skip to content

[Critical Bug] My Claude code cannot update file contents #362

Closed

Description

@anhvandev

Because Claude has a rule requiring it to read a file before editing, the cbm-code-discovery-gate hook blocking the initial file read causes Claude to get stuck in an infinite loop trying to edit the file.
Please fix this.

Activity

  1. added
    bugSomething isn't working
    editor/integrationEditor compatibility and CLI integration
    ux/behaviorDisplay bugs, docs, adoption UX
    on May 30, 2026
  2. DeusData commented on May 30, 2026

    @DeusData
    Owner

    Thanks for the report — the hook no longer blocks Read as of c29e6d5 ("replace blocking Claude PreToolUse gate with non-blocking augmenter"), shipped in v0.7.0. The augmenter is scoped to Grep/Glob and is non-blocking, so the edit-loop you described should not happen.

    If you still see Claude Code stuck on the latest release, please re-open with the exact hook log lines and tool sequence.

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 workingeditor/integrationEditor compatibility and CLI integrationux/behaviorDisplay bugs, docs, adoption UX

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions