claude-code - 💡(How to fix) Fix [Bug] Auto mode bypasses planning mode gates [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#56286Fetched 2026-05-06 06:32:10
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×4commented ×1

Error Message

[{"error":"McpToolCallError: Tool 'ticket' timed out after 15s.\n at QI7 (/$bunfs/root/src/entrypoints/cli.js:4829:63)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-26T11:16:41.828Z"},{"error":"McpToolCallError: Error calling tool 'review_pr': sequence item 6: expected str instance, NoneType found\n at QI7 (/$bunfs/root/src/entrypoints/cli.js:4829:63)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-26T13:46:17.796Z"},{"error":"McpToolCallError: Error calling tool 'review_pr': sequence item 4: expected str instance, NoneType found\n at QI7 (/$bunfs/root/src/entrypoints/cli.js:4829:63)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-26T13:48:56.013Z"},{"error":"McpToolCallError: Error calling tool 'review_pr': sequence item 0: expected str instance, NoneType found\n at QI7 (/$bunfs/root/src/entrypoints/cli.js:4829:63)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-26T13:51:29.607Z"},{"error":"MaxFileReadTokenExceededError: File content (25903 tokens) exceeds maximum allowed tokens (25000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n at qC7 (/$bunfs/root/src/entrypoints/cli.js:4789:12701)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-26T13:52:43.299Z"},{"error":"Error: EISDIR: illegal operation on a directory, read '/Users/banton/Sites/unlockdb/packages/rule-engine/src'\n at kOH (/$bunfs/root/src/entrypoints/cli.js:1678:144)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-26T17:30:17.330Z"},{"error":"Error: EISDIR: illegal operation on a directory, read '/Users/banton/Sites/unlockdb/packages/triage/src'\n at kOH (/$bunfs/root/src/entrypoints/cli.js:1678:144)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T06:21:37.228Z"},{"error":"Error: Request was aborted.\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T10:31:35.190Z"},{"error":"Error: File does not exist. Note: your current working directory is /Users/banton/Sites/unlockdb.\n at call (/$bunfs/root/src/entrypoints/cli.js:4802:7647)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T18:41:35.209Z"},{"error":"McpToolCallError: Error calling tool 'review_pr': sequence item 6: expected str instance, NoneType found\n at QI7 (/$bunfs/root/src/entrypoints/cli.js:4829:63)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T08:44:54.680Z"},{"error":"McpToolCallError: Error calling tool 'review_pr': sequence item 2: expected str instance, NoneType found\n at QI7 (/$bunfs/root/src/entrypoints/cli.js:4829:63)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T08:47:44.715Z"},{"error":"McpToolCallError: Error calling tool 'review_pr': expected string or bytes-like object, got 'NoneType'\n at QI7 (/$bunfs/root/src/entrypoints/cli.js:4829:63)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T08:50:39.701Z"},{"error":"McpToolCallError: Error calling tool 'review_pr': sequence item 2: expected str instance, NoneType found\n at QI7 (/$bunfs/root/src/entrypoints/cli.js:4829:63)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T09:02:31.886Z"},{"error":"McpToolCallError: Error calling tool 'review_pr': sequence item 1: expected str instance, NoneType found\n at QI7 (/$bunfs/root/src/entrypoints/cli.js:4829:63)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T09:07:07.836Z"},{"error":"McpToolCallError: Error calling tool 'review_pr': expected string or bytes-like object, got 'NoneType'\n at QI7 (/$bunfs/root/src/entrypoints/cli.js:4829:63)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T09:08:34.859Z"},{"error":"McpToolCallError: Error calling tool 'review_pr': sequence item 2: expected str instance, NoneType found\n at QI7 (/$bunfs/root/src/entrypoints/cli.js:4829:63)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T09:09:19.313Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:119:13291)\n at emit (node:events:92:22)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:118:3321)\n at request (/$bunfs/root/src/entrypoints/cli.js:121:2467)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T09:16:01.176Z"},{"error":"AxiosError: timeout of 5000ms exceeded\…

Code Example

[{"error":"McpToolCallError: Tool 'ticket' timed out after 15s.\n    at QI7 (/$bunfs/root/src/entrypoints/cli.js:4829:63)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-26T11:16:41.828Z"},{"error":"McpToolCallError: Error calling tool 'review_pr': sequence item 6: expected str instance, NoneType found\n    at QI7 (/$bunfs/root/src/entrypoints/cli.js:4829:63)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-26T13:46:17.796Z"},{"error":"McpToolCallError: Error calling tool 'review_pr': sequence item 4: expected str instance, NoneType found\n    at QI7 (/$bunfs/root/src/entrypoints/cli.js:4829:63)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-26T13:48:56.013Z"},{"error":"McpToolCallError: Error calling tool 'review_pr': sequence item 0: expected str instance, NoneType found\n    at QI7 (/$bunfs/root/src/entrypoints/cli.js:4829:63)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-26T13:51:29.607Z"},{"error":"MaxFileReadTokenExceededError: File content (25903 tokens) exceeds maximum allowed tokens (25000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at qC7 (/$bunfs/root/src/entrypoints/cli.js:4789:12701)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-26T13:52:43.299Z"},{"error":"Error: EISDIR: illegal operation on a directory, read '/Users/banton/Sites/unlockdb/packages/rule-engine/src'\n    at kOH (/$bunfs/root/src/entrypoints/cli.js:1678:144)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-26T17:30:17.330Z"},{"error":"Error: EISDIR: illegal operation on a directory, read '/Users/banton/Sites/unlockdb/packages/triage/src'\n    at kOH (/$bunfs/root/src/entrypoints/cli.js:1678:144)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T06:21:37.228Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T10:31:35.190Z"},{"error":"Error: File does not exist. Note: your current working directory is /Users/banton/Sites/unlockdb.\n    at call (/$bunfs/root/src/entrypoints/cli.js:4802:7647)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T18:41:35.209Z"},{"error":"McpToolCallError: Error calling tool 'review_pr': sequence item 6: expected str instance, NoneType found\n    at QI7 (/$bunfs/root/src/entrypoints/cli.js:4829:63)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T08:44:54.680Z"},{"error":"McpToolCallError: Error calling tool 'review_pr': sequence item 2: expected str instance, NoneType found\n    at QI7 (/$bunfs/root/src/entrypoints/cli.js:4829:63)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T08:47:44.715Z"},{"error":"McpToolCallError: Error calling tool 'review_pr': expected string or bytes-like object, got 'NoneType'\n    at QI7 (/$bunfs/root/src/entrypoints/cli.js:4829:63)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T08:50:39.701Z"},{"error":"McpToolCallError: Error calling tool 'review_pr': sequence item 2: expected str instance, NoneType found\n    at QI7 (/$bunfs/root/src/entrypoints/cli.js:4829:63)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T09:02:31.886Z"},{"error":"McpToolCallError: Error calling tool 'review_pr': sequence item 1: expected str instance, NoneType found\n    at QI7 (/$bunfs/root/src/entrypoints/cli.js:4829:63)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T09:07:07.836Z"},{"error":"McpToolCallError: Error calling tool 'review_pr': expected string or bytes-like object, got 'NoneType'\n    at QI7 (/$bunfs/root/src/entrypoints/cli.js:4829:63)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T09:08:34.859Z"},{"error":"McpToolCallError: Error calling tool 'review_pr': sequence item 2: expected str instance, NoneType found\n    at QI7 (/$bunfs/root/src/entrypoints/cli.js:4829:63)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T09:09:19.313Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:119:13291)\n    at emit (node:events:92:22)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:118:3321)\n    at request (/$bunfs/root/src/entrypoints/cli.js:121:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T09:16:01.176Z"},{"error":"AxiosError: timeout of 5000ms exceeded\…
RAW_BUFFERClick to expand / collapse

Bug Description Claude Opus 4.7 and especially ever touching auto mode will not respect planning mode gates anymore

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.119
  • Feedback ID: 1ccfbe05-2694-4fe2-832f-2fe7465459db

Errors

[{"error":"McpToolCallError: Tool 'ticket' timed out after 15s.\n    at QI7 (/$bunfs/root/src/entrypoints/cli.js:4829:63)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-26T11:16:41.828Z"},{"error":"McpToolCallError: Error calling tool 'review_pr': sequence item 6: expected str instance, NoneType found\n    at QI7 (/$bunfs/root/src/entrypoints/cli.js:4829:63)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-26T13:46:17.796Z"},{"error":"McpToolCallError: Error calling tool 'review_pr': sequence item 4: expected str instance, NoneType found\n    at QI7 (/$bunfs/root/src/entrypoints/cli.js:4829:63)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-26T13:48:56.013Z"},{"error":"McpToolCallError: Error calling tool 'review_pr': sequence item 0: expected str instance, NoneType found\n    at QI7 (/$bunfs/root/src/entrypoints/cli.js:4829:63)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-26T13:51:29.607Z"},{"error":"MaxFileReadTokenExceededError: File content (25903 tokens) exceeds maximum allowed tokens (25000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at qC7 (/$bunfs/root/src/entrypoints/cli.js:4789:12701)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-26T13:52:43.299Z"},{"error":"Error: EISDIR: illegal operation on a directory, read '/Users/banton/Sites/unlockdb/packages/rule-engine/src'\n    at kOH (/$bunfs/root/src/entrypoints/cli.js:1678:144)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-26T17:30:17.330Z"},{"error":"Error: EISDIR: illegal operation on a directory, read '/Users/banton/Sites/unlockdb/packages/triage/src'\n    at kOH (/$bunfs/root/src/entrypoints/cli.js:1678:144)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T06:21:37.228Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T10:31:35.190Z"},{"error":"Error: File does not exist. Note: your current working directory is /Users/banton/Sites/unlockdb.\n    at call (/$bunfs/root/src/entrypoints/cli.js:4802:7647)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-28T18:41:35.209Z"},{"error":"McpToolCallError: Error calling tool 'review_pr': sequence item 6: expected str instance, NoneType found\n    at QI7 (/$bunfs/root/src/entrypoints/cli.js:4829:63)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T08:44:54.680Z"},{"error":"McpToolCallError: Error calling tool 'review_pr': sequence item 2: expected str instance, NoneType found\n    at QI7 (/$bunfs/root/src/entrypoints/cli.js:4829:63)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T08:47:44.715Z"},{"error":"McpToolCallError: Error calling tool 'review_pr': expected string or bytes-like object, got 'NoneType'\n    at QI7 (/$bunfs/root/src/entrypoints/cli.js:4829:63)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T08:50:39.701Z"},{"error":"McpToolCallError: Error calling tool 'review_pr': sequence item 2: expected str instance, NoneType found\n    at QI7 (/$bunfs/root/src/entrypoints/cli.js:4829:63)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T09:02:31.886Z"},{"error":"McpToolCallError: Error calling tool 'review_pr': sequence item 1: expected str instance, NoneType found\n    at QI7 (/$bunfs/root/src/entrypoints/cli.js:4829:63)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T09:07:07.836Z"},{"error":"McpToolCallError: Error calling tool 'review_pr': expected string or bytes-like object, got 'NoneType'\n    at QI7 (/$bunfs/root/src/entrypoints/cli.js:4829:63)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T09:08:34.859Z"},{"error":"McpToolCallError: Error calling tool 'review_pr': sequence item 2: expected str instance, NoneType found\n    at QI7 (/$bunfs/root/src/entrypoints/cli.js:4829:63)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T09:09:19.313Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:119:13291)\n    at emit (node:events:92:22)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:118:3321)\n    at request (/$bunfs/root/src/entrypoints/cli.js:121:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T09:16:01.176Z"},{"error":"AxiosError: timeout of 5000ms exceeded\…

Note: Content was truncated.

extent analysis

TL;DR

The issue seems to be related to errors in tool calls and file operations, suggesting a potential problem with the current configuration or version of the software.

Guidance

  1. Review recent changes: Check if any recent updates or changes were made to the Claude Opus version 4.7 or the auto mode configuration that might be causing the planning mode gates to be disregarded.
  2. Tool call errors: Investigate the McpToolCallError instances, particularly those related to review_pr, to understand why they are expecting string instances but finding NoneType instead.
  3. File operation issues: Look into the EISDIR and File does not exist errors to ensure that file paths and directories are correctly configured and accessible.
  4. Timeouts and request abortions: Examine the AxiosError timeouts and request abortions to see if there are network or server-side issues affecting the application's performance.

Example

No specific code snippet can be provided without more context, but reviewing the cli.js file around lines 4829 and 1678 might offer insights into how tool calls and file operations are handled.

Notes

The provided error log is truncated, which might limit the ability to identify all potential causes. It's essential to review the full log for a comprehensive understanding of the issue.

Recommendation

Apply a workaround by temporarily reverting any recent changes to the Claude Opus configuration or version until the root cause of the errors can be fully identified and addressed. This might involve disabling auto mode or adjusting planning mode gates manually.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [Bug] Auto mode bypasses planning mode gates [1 comments, 2 participants]