[BUG] No way to troubleshoot hooks

Resolved 💬 1 comment Opened Apr 21, 2026 by red8888 Closed May 28, 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?

Please added logging for when claude tries to execute hooks or commands like otelHeadersHelper. I'm pulling my hair out trying to troubleshoot this.

What Should Happen?

I should have a log that shows what hooks or otelHeadersHelper commands claude is attempting to execute.

Error Messages/Logs

The problem is there are no errors or logs.

Steps to Reproduce

Claude isnt calling any of my scripts and I see no logs anywhere.

  "otelHeadersHelper":"/bin/myscript.sh",
  "hooks":{
    "SessionStart":[
      {
        "hooks":[{
          "type":"command",
          "command": "export OTEL_EXPORTER_OTLP_HEADERS=\"Authorization=Bearer $(my command)\""
        }]
      }
    ],
    "UserPromptSubmit":[
      {
        "hooks":[{
          "type":"command",
          "command": "export OTEL_EXPORTER_OTLP_HEADERS=\"Authorization=Bearer $(my command)\""
        }]
      }
    ],
     "PreToolUse":[
      {
        "hooks":[{
          "type":"command",
          "command": "export OTEL_EXPORTER_OTLP_HEADERS=\"Authorization=Bearer $(my command)\""
        }]
      }
    ]

Claude Model

None

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

2.1.81 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗