claude-code - 💡(How to fix) Fix [Bug] Claude Code resumes autonomously after pause command instead of waiting for explicit user resume [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#55990Fetched 2026-05-05 06:01:00
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
labeled ×3commented ×1

Error Message

[{"error":"Error: ENOTDIR: not a directory, mkdir 'G:'\n at async mkdir (B:/~BUN/root/src/entrypoints/cli.js:53:655)\n at async call (B:/~BUN/root/src/entrypoints/cli.js:3247:512)\n at async Q91 (B:/~BUN/root/src/entrypoints/cli.js:4247:8751)","timestamp":"2026-05-01T12:15:42.781Z"},{"error":"MaxFileReadTokenExceededError: File content (25178 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 BL_ (B:/~BUN/root/src/entrypoints/cli.js:4788:12679)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-01T13:15:11.678Z"},{"error":"MaxFileReadTokenExceededError: File content (33270 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 BL_ (B:/~BUN/root/src/entrypoints/cli.js:4788:12679)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-01T13:15:31.465Z"},{"error":"MaxFileReadTokenExceededError: File content (40211 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 BL_ (B:/~BUN/root/src/entrypoints/cli.js:4788:12679)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-01T13:15:32.146Z"},{"error":"Error: File does not exist. Note: your current working directory is G:\My Drive\Projects Merge\ObsidianNexus.\n at call (B:/~BUN/root/src/entrypoints/cli.js:4797:7634)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-01T13:17:34.084Z"},{"error":"Error: 429 {"type":"error","error":{"type":"rate_limit_error","message":"This request would exceed your account's rate limit. Please try again later."},"request_id":"req_011Cac8tjchbjQzcL1yWQtTA"}\n at generate (B:/~BUN/root/src/entrypoints/cli.js:11:54279)\n at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-01T16:06:23.246Z"},{"error":"Error: Could not resolve authentication method. Expected either apiKey or authToken to be set. Or for one of the "X-Api-Key" or "Authorization" headers to be explicitly omitted\n at validateHeaders (B:/~BUN/root/src/entrypoints/cli.js:50:1013)\n at buildHeaders (B:/~BUN/root/src/entrypoints/cli.js:50:8079)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-01T16:20:32.551Z"},{"error":"Error: Could not resolve authentication method. Expected either apiKey or authToken to be set. Or for one of the "X-Api-Key" or "Authorization" headers to be explicitly omitted\n at validateHeaders (B:/~BUN/root/src/entrypoints/cli.js:50:1013)\n at buildHeaders (B:/~BUN/root/src/entrypoints/cli.js:50:8079)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-01T16:20:37.189Z"},{"error":"Error: File does not exist. Note: your current working directory is G:\My Drive\Projects Merge\ObsidianNexus.\n at call (B:/~BUN/root/src/entrypoints/cli.js:4797:7634)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-01T17:02:48.059Z"},{"error":"MaxFileReadTokenExceededError: File content (43693 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 BL_ (B:/~BUN/root/src/entrypoints/cli.js:4788:12679)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-01T17:56:18.944Z"},{"error":"Error: File does not exist. Note: your current working directory is G:\My Drive\Projects Merge\ObsidianNexus.\n at call (B:/~BUN/root/src/entrypoints/cli.js:4797:7634)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-01T17:56:19.229Z"},{"error":"Error\n at generate (B:/~BUN/root/src/entrypoints/cli.js:11:54094)\n at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (unknown:7:39)","timestamp":"2026-05-01T17:59:18.891Z"},{"error":"Error: 401 {"type":"error","error":{"type":"authentication_error","message":"OAuth authentication is…

Code Example

[{"error":"Error: ENOTDIR: not a directory, mkdir 'G:'\n    at async mkdir (B:/~BUN/root/src/entrypoints/cli.js:53:655)\n    at async call (B:/~BUN/root/src/entrypoints/cli.js:3247:512)\n    at async Q91 (B:/~BUN/root/src/entrypoints/cli.js:4247:8751)","timestamp":"2026-05-01T12:15:42.781Z"},{"error":"MaxFileReadTokenExceededError: File content (25178 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 BL_ (B:/~BUN/root/src/entrypoints/cli.js:4788:12679)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-01T13:15:11.678Z"},{"error":"MaxFileReadTokenExceededError: File content (33270 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 BL_ (B:/~BUN/root/src/entrypoints/cli.js:4788:12679)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-01T13:15:31.465Z"},{"error":"MaxFileReadTokenExceededError: File content (40211 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 BL_ (B:/~BUN/root/src/entrypoints/cli.js:4788:12679)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-01T13:15:32.146Z"},{"error":"Error: File does not exist. Note: your current working directory is G:\\My Drive\\Projects Merge\\ObsidianNexus.\n    at call (B:/~BUN/root/src/entrypoints/cli.js:4797:7634)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-01T13:17:34.084Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"This request would exceed your account's rate limit. Please try again later.\"},\"request_id\":\"req_011Cac8tjchbjQzcL1yWQtTA\"}\n    at generate (B:/~BUN/root/src/entrypoints/cli.js:11:54279)\n    at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-01T16:06:23.246Z"},{"error":"Error: Could not resolve authentication method. Expected either apiKey or authToken to be set. Or for one of the \"X-Api-Key\" or \"Authorization\" headers to be explicitly omitted\n    at validateHeaders (B:/~BUN/root/src/entrypoints/cli.js:50:1013)\n    at buildHeaders (B:/~BUN/root/src/entrypoints/cli.js:50:8079)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-01T16:20:32.551Z"},{"error":"Error: Could not resolve authentication method. Expected either apiKey or authToken to be set. Or for one of the \"X-Api-Key\" or \"Authorization\" headers to be explicitly omitted\n    at validateHeaders (B:/~BUN/root/src/entrypoints/cli.js:50:1013)\n    at buildHeaders (B:/~BUN/root/src/entrypoints/cli.js:50:8079)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-01T16:20:37.189Z"},{"error":"Error: File does not exist. Note: your current working directory is G:\\My Drive\\Projects Merge\\ObsidianNexus.\n    at call (B:/~BUN/root/src/entrypoints/cli.js:4797:7634)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-01T17:02:48.059Z"},{"error":"MaxFileReadTokenExceededError: File content (43693 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 BL_ (B:/~BUN/root/src/entrypoints/cli.js:4788:12679)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-01T17:56:18.944Z"},{"error":"Error: File does not exist. Note: your current working directory is G:\\My Drive\\Projects Merge\\ObsidianNexus.\n    at call (B:/~BUN/root/src/entrypoints/cli.js:4797:7634)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-01T17:56:19.229Z"},{"error":"Error\n    at generate (B:/~BUN/root/src/entrypoints/cli.js:11:54094)\n    at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (unknown:7:39)","timestamp":"2026-05-01T17:59:18.891Z"},{"error":"Error: 401 {\"type\":\"error\",\"error\":{\"type\":\"authentication_error\",\"message\":\"OAuth authentication is…
RAW_BUFFERClick to expand / collapse
<img width="1167" height="662" alt="Image" src="https://github.com/user-attachments/assets/83924927-2ed5-4cfb-baf7-8b8a5c69bd8d" />

Bug Description I told claude to pause what it was doing and "resume in earnest in 2 hours" before going to bed. when i got back to my desk I see "checking in. ." with a list of questions wondering if i'd like to resume now or later, etc. just waiting for my response. UNACCEPTABLE. a wasted night. [Image #4]

Environment Info

  • Platform: win32
  • Terminal: WarpTerminal
  • Version: 2.1.117
  • Feedback ID: 022edb93-df90-44f0-bde1-288fcb8d5d74

Errors

[{"error":"Error: ENOTDIR: not a directory, mkdir 'G:'\n    at async mkdir (B:/~BUN/root/src/entrypoints/cli.js:53:655)\n    at async call (B:/~BUN/root/src/entrypoints/cli.js:3247:512)\n    at async Q91 (B:/~BUN/root/src/entrypoints/cli.js:4247:8751)","timestamp":"2026-05-01T12:15:42.781Z"},{"error":"MaxFileReadTokenExceededError: File content (25178 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 BL_ (B:/~BUN/root/src/entrypoints/cli.js:4788:12679)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-01T13:15:11.678Z"},{"error":"MaxFileReadTokenExceededError: File content (33270 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 BL_ (B:/~BUN/root/src/entrypoints/cli.js:4788:12679)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-01T13:15:31.465Z"},{"error":"MaxFileReadTokenExceededError: File content (40211 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 BL_ (B:/~BUN/root/src/entrypoints/cli.js:4788:12679)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-01T13:15:32.146Z"},{"error":"Error: File does not exist. Note: your current working directory is G:\\My Drive\\Projects Merge\\ObsidianNexus.\n    at call (B:/~BUN/root/src/entrypoints/cli.js:4797:7634)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-01T13:17:34.084Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"This request would exceed your account's rate limit. Please try again later.\"},\"request_id\":\"req_011Cac8tjchbjQzcL1yWQtTA\"}\n    at generate (B:/~BUN/root/src/entrypoints/cli.js:11:54279)\n    at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-01T16:06:23.246Z"},{"error":"Error: Could not resolve authentication method. Expected either apiKey or authToken to be set. Or for one of the \"X-Api-Key\" or \"Authorization\" headers to be explicitly omitted\n    at validateHeaders (B:/~BUN/root/src/entrypoints/cli.js:50:1013)\n    at buildHeaders (B:/~BUN/root/src/entrypoints/cli.js:50:8079)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-01T16:20:32.551Z"},{"error":"Error: Could not resolve authentication method. Expected either apiKey or authToken to be set. Or for one of the \"X-Api-Key\" or \"Authorization\" headers to be explicitly omitted\n    at validateHeaders (B:/~BUN/root/src/entrypoints/cli.js:50:1013)\n    at buildHeaders (B:/~BUN/root/src/entrypoints/cli.js:50:8079)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-01T16:20:37.189Z"},{"error":"Error: File does not exist. Note: your current working directory is G:\\My Drive\\Projects Merge\\ObsidianNexus.\n    at call (B:/~BUN/root/src/entrypoints/cli.js:4797:7634)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-01T17:02:48.059Z"},{"error":"MaxFileReadTokenExceededError: File content (43693 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 BL_ (B:/~BUN/root/src/entrypoints/cli.js:4788:12679)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-01T17:56:18.944Z"},{"error":"Error: File does not exist. Note: your current working directory is G:\\My Drive\\Projects Merge\\ObsidianNexus.\n    at call (B:/~BUN/root/src/entrypoints/cli.js:4797:7634)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-01T17:56:19.229Z"},{"error":"Error\n    at generate (B:/~BUN/root/src/entrypoints/cli.js:11:54094)\n    at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (unknown:7:39)","timestamp":"2026-05-01T17:59:18.891Z"},{"error":"Error: 401 {\"type\":\"error\",\"error\":{\"type\":\"authentication_error\",\"message\":\"OAuth authentication is…

Note: Content was truncated.

extent analysis

TL;DR

The issue is likely caused by a combination of file reading errors, authentication issues, and rate limiting, and a potential workaround is to adjust file reading parameters and authentication settings.

Guidance

  • Review the error logs to identify the specific causes of the failures, such as MaxFileReadTokenExceededError and Error: Could not resolve authentication method.
  • Consider adjusting the file reading parameters, such as using offset and limit parameters to read specific portions of the file, as suggested in the MaxFileReadTokenExceededError messages.
  • Verify that the authentication settings are correct, including the apiKey or authToken, and that the X-Api-Key or Authorization headers are properly set.
  • Check the rate limiting errors and consider implementing a delay or retry mechanism to avoid exceeding the rate limits.

Example

No code example is provided due to the lack of specific code context in the issue.

Notes

The issue content is truncated, which may limit the ability to provide a comprehensive solution. Additionally, the errors suggest a complex interplay between file reading, authentication, and rate limiting, which may require a multifaceted approach to resolve.

Recommendation

Apply workaround: Adjust file reading parameters and authentication settings to mitigate the errors and rate limiting issues, and consider implementing a retry mechanism to handle temporary failures.

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] Claude Code resumes autonomously after pause command instead of waiting for explicit user resume [1 comments, 2 participants]