[BUG]

Resolved 💬 3 comments Opened Dec 19, 2025 by ghosted7982 Closed Feb 14, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Title:
[Bug] PreToolUse hook error appearing when no PreToolUse hooks are configured

Body:
## Description

Recurring "PreToolUse hook error" messages appear during tool execution, even though no PreToolUse hooks are configured in settings.

## Error Message

⎿ PreToolUse:mcp__linear-server__create_comment hook error
⎿ PreToolUse:Read hook error

## Environment

  • OS: Linux (WSL2) - Linux 5.15.167.4-microsoft-standard-WSL2
  • Claude Code Version: Latest (as of 2025-12-19)
  • Model: claude-opus-4-5-20251101

## Behavior

  1. Error appears on multiple unrelated tools (Read, Linear MCP, etc.)
  2. Non-blocking: Tools still execute successfully after the error
  3. No PreToolUse hooks are configured - only SessionStart and PostToolUse

## Steps to Reproduce

  1. Configure settings.local.json with only SessionStart and PostToolUse hooks
  2. Enable the feature-dev@claude-code-plugins plugin
  3. Use various tools (Read, MCP tools)
  4. Observe "PreToolUse hook error" messages before tool execution

## Expected Behavior

No "PreToolUse hook error" should appear when no PreToolUse hooks are configured.

## Workaround

None needed - error is non-blocking.

What Should Happen?

see above

Error Messages/Logs

Steps to Reproduce

see above

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

latest

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

WSL (Windows Subsystem for Linux)

Additional Information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗