[Bug] Subagents Not Executing Configured Hooks Correctly

Resolved 💬 3 comments Opened Aug 25, 2025 by Anthony-Bible Closed Aug 29, 2025

Bug Description
Subagents don't seem to execute hooks, I have a hook to execute a golangci-lint and report the errors including asking the agent to fix them even if thtey're not related to current changes echoerr "golangci-lint found issues, fix these one by one, even if they're not related to your change as we like leaving the code better than we found it: $filespecific" I don't see any feedback that it's being ran the same way I do for the main thread/agent.

Environment Info

  • Platform: linux
  • Terminal: goland
  • Version: 1.0.89
  • Feedback ID: dce65f93-09bf-4540-85a4-f140454e1d41

Errors

[{"error":"Error: {\n  \"error\": \"Invalid nextThoughtNeeded: must be a boolean\",\n  \"status\": \"failed\"\n}\n    at d2B (file:///home/anthony/.nvm/versions/node/v20.19.4/lib/node_modules/@anthropic-ai/claude-code/cli.js:1870:12047)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async Object.call (file:///home/anthony/.nvm/versions/node/v20.19.4/lib/node_modules/@anthropic-ai/claude-code/cli.js:1870:6785)\n    at async RL5 (file:///home/anthony/.nvm/versions/node/v20.19.4/lib/node_modules/@anthropic-ai/claude-code/cli.js:3408:10495)\n    at async fgB (file:///home/anthony/.nvm/versions/node/v20.19.4/lib/node_modules/@anthropic-ai/claude-code/cli.js:3408:6814)\n    at async ML5 (file:///home/anthony/.nvm/versions/node/v20.19.4/lib/node_modules/@anthropic-ai/claude-code/cli.js:3408:5792)\n    at async NL5 (file:///home/anthony/.nvm/versions/node/v20.19.4/lib/node_modules/@anthropic-ai/claude-code/cli.js:3408:5421)\n    at async DE (file:///home/anthony/.nvm/versions/node/v20.19.4/lib/node_modules/@anthropic-ai/claude-code/cli.js:3408:2920)\n    at async DE (file:///home/anthony/.nvm/versions/node/v20.19.4/lib/node_modules/@anthropic-ai/claude-code/cli.js:3408:3686)\n    at async DE (file:///home/anthony/.nvm/versions/node/v20.19.4/lib/node_modules/@anthropic-ai/claude-code/cli.js:3408:3686)","timestamp":"2025-08-24T18:01:33.368Z"},{"error":"Error: Request was aborted.\n    at HP.makeRequest (file:///home/anthony/.nvm/versions/node/v20.19.4/lib/node_modules/@anthropic-ai/claude-code/cli.js:943:3840)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-08-25T00:52:32.985Z"},{"error":"SyntaxError: Unexpected token 'I', \"I apologiz\"... is not valid JSON\n    at JSON.parse (<anonymous>)\n    at file:///home/anthony/.nvm/versions/node/v20.19.4/lib/node_modules/@anthropic-ai/claude-code/cli.js:712:9932\n    at Q (file:///home/anthony/.nvm/versions/node/v20.19.4/lib/node_modules/@anthropic-ai/claude-code/cli.js:671:13339)\n    at cn2 (file:///home/anthony/.nvm/versions/node/v20.19.4/lib/node_modules/@anthropic-ai/claude-code/cli.js:1058:1992)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-08-25T01:08:44.207Z"},{"error":"Error: Request was aborted.\n    at HP.makeRequest (file:///home/anthony/.nvm/versions/node/v20.19.4/lib/node_modules/@anthropic-ai/claude-code/cli.js:943:3840)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-08-25T01:55:53.623Z"},{"error":"Error: EISDIR: illegal operation on a directory, read\n    at Module.readFileSync (node:fs:449:20)\n    at Object.readFileSync (file:///home/anthony/.nvm/versions/node/v20.19.4/lib/node_modules/@anthropic-ai/claude-code/cli.js:690:9211)\n    at UeA (file:///home/anthony/.nvm/versions/node/v20.19.4/lib/node_modules/@anthropic-ai/claude-code/cli.js:735:9240)\n    at Object.call (file:///home/anthony/.nvm/versions/node/v20.19.4/lib/node_modules/@anthropic-ai/claude-code/cli.js:1765:936)\n    at call.next (<anonymous>)\n    at RL5 (file:///home/anthony/.nvm/versions/node/v20.19.4/lib/node_modules/@anthropic-ai/claude-code/cli.js:3408:10495)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async fgB (file:///home/anthony/.nvm/versions/node/v20.19.4/lib/node_modules/@anthropic-ai/claude-code/cli.js:3408:6814)\n    at async tt2 (file:///home/anthony/.nvm/versions/node/v20.19.4/lib/node_modules/@anthropic-ai/claude-code/cli.js:1770:3411)\n    at async dBB (file:///home/anthony/.nvm/versions/node/v20.19.4/lib/node_modules/@anthropic-ai/claude-code/cli.js:1955:843)","timestamp":"2025-08-25T01:58:00.543Z"},{"error":"Error: EISDIR: illegal operation on a directory, read\n    at Module.readFileSync (node:fs:449:20)\n    at Object.readFileSync (file:///home/anthony/.nvm/versions/node/v20.19.4/lib/node_modules/@anthropic-ai/claude-code/cli.js:690:9211)\n    at UeA (file:///home/anthony/.nvm/versions/node/v20.19.4/lib/node_modules/@anthropic-ai/claude-code/cli.js:735:9240)\n    at Object.call (file:///home/anthony/.nvm/versions/node/v20.19.4/lib/node_modules/@anthropic-ai/claude-code/cli.js:1765:936)\n    at call.next (<anonymous>)\n    at RL5 (../../GolandProjects/codechunking/internal/application/service/otel_disk_metrics.go:163:21: (*instrumentCreator).createFloat64Histogram - unit always receives "s" (unparam)
file:///home/anthony/.nvm/versions/node/v20.19.4/lib/node_modules/@anthropic-ai/claude-code/cli.

Note: Error logs were truncated.

View original on GitHub ↗

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