claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

Can you turn OFF the hook succeeded messages or option

Open OmniZenRaj opened this issue 3 months ago • 7 comments

Bug Description Can you turn OFF the hook succeeded messages or provide a simple config to turn them OFF. They take up too much valuable space in a prominent location and don't have any value once you get the hooks working. Thanks - keep up the good work.

Environment Info

  • Platform: darwin
  • Terminal: vscode
  • Version: 2.0.17
  • Feedback ID: 2683923e-6d08-42a5-b814-751178c092a2

Errors

[{"error":"AxiosError: Request failed with status code 401\n    at CO (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:24:1136)\n    at IncomingMessage.<anonymous> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:29:9845)\n    at IncomingMessage.emit (node:events:519:35)\n    at IncomingMessage.emit (node:domain:489:12)\n    at endReadableNT (node:internal/streams/readable:1701:12)\n    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n    at i81.request (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:31:2129)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async DIB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1497:26166)","timestamp":"2025-10-15T19:28:13.235Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"This credential is only authorized for use with Claude Code and cannot be used for other API requests.\"},\"request_id\":\"req_011CU9Y3iC8cCht35n9YGZQB\"}\n    at q4.generate (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:202:83047)\n    at hS.makeStatusError (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:356:2117)\n    at hS.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:356:5330)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-10-15T19:28:14.754Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"This credential is only authorized for use with Claude Code and cannot be used for other API requests.\"},\"request_id\":\"req_011CU9Y3ixmZ7U2yaf6RKqVo\"}\n    at q4.generate (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:202:83047)\n    at hS.makeStatusError (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:356:2117)\n    at hS.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:356:5330)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-10-15T19:28:14.897Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"This credential is only authorized for use with Claude Code and cannot be used for other API requests.\"},\"request_id\":\"req_011CU9Y3jfSKnapmKmHEQCmK\"}\n    at q4.generate (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:202:83047)\n    at hS.makeStatusError (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:356:2117)\n    at hS.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:356:5330)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-10-15T19:28:15.094Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"This credential is only authorized for use with Claude Code and cannot be used for other API requests.\"},\"request_id\":\"req_011CU9YEPsctvvwxy3zLHnPk\"}\n    at q4.generate (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:202:83047)\n    at hS.makeStatusError (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:356:2117)\n    at hS.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:356:5330)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-10-15T19:30:39.682Z"},{"error":"SyntaxError: Unexpected token 'A', \"API Error:\"... is not valid JSON\n    at JSON.parse (<anonymous>)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:62:719\n    at Q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:15093)\n    at Np2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1056:20444)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-10-15T19:30:39.683Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"This credential is only authorized for use with Claude Code and cannot be used for other API requests.\"},\"request_id\":\"req_011CU9YGZKTC4nbBKC3DfkWa\"}\n    at q4.generate (file:///opt/homebrew/lib/node_modules/@anthropic-ai/c

Note: Error logs were truncated.

OmniZenRaj avatar Oct 15 '25 19:10 OmniZenRaj

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/3060
  2. https://github.com/anthropics/claude-code/issues/8990
  3. https://github.com/anthropics/claude-code/issues/6924

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

github-actions[bot] avatar Oct 15 '25 19:10 github-actions[bot]

This is totally breaking if you have many hooks running--the CLI will fill up with "hooks succeeded" messages, and the scroll goes nuts so that it is impossible to actually track anything in real time.

cbockman avatar Oct 16 '25 01:10 cbockman

It has use cases for me and I felt relieved seeing it in the last release, so I hope it will be kept as optional to keep it / hide it instead or removing.

Labiri avatar Oct 16 '25 06:10 Labiri

Image

Alex-R-A avatar Oct 18 '25 17:10 Alex-R-A

Hello! I had the same problem, made a quickfix, and packaged as a plugin: https://github.com/towc/claude-hide-hooks

This should work until Anthropic addresses the issue. Obviously it's a change to code that may change anytime, so use at your own risk, but it works for now at least:

# Add the marketplace
claude plugin marketplace add towc/claude-marketplace

# Install hide-hooks
claude plugin install hide-hooks

# After Claude restarts, apply the patch
/hide-hooks:patch

# Restart Claude to see the changes

towc avatar Nov 08 '25 10:11 towc

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

github-actions[bot] avatar Dec 09 '25 10:12 github-actions[bot]

Still an issue! My temporary fix plugin breaks every client update, it's not a long-term solution

towc avatar Dec 09 '25 10:12 towc