claude-code - 💡(How to fix) Fix [Feature Request] Add context transfer capability with `/new` command instead of requiring `/clear` [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#53130Fetched 2026-04-26 05:23:37
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×4commented ×1

Error Message

[{"error":"Error: 1: Command failed with ERR_STREAM_PREMATURE_CLOSE: code --force --install-extension anthropic.claude-code\nPremature close \n at vp1 (/$bunfs/root/src/entrypoints/cli.js:1687:4046)\n at async Lp1 (/$bunfs/root/src/entrypoints/cli.js:1687:1435)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T15:47:51.816Z"},{"error":"MaxFileReadTokenExceededError: File content (27840 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-24T16:22:26.101Z"},{"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_011CaNvRGMup89bCRC2BztmY"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:55343)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T16:36:06.807Z"},{"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-24T17:22:09.835Z"},{"error":"EACCES: permission denied, mkdir '/Volumes/SSD/.claude.lock'","timestamp":"2026-04-24T23:27:52.476Z"},{"error":"EACCES: permission denied, mkdir '/Volumes/SSD/.claude.lock'","timestamp":"2026-04-24T23:41:29.270Z"}]

Code Example

[{"error":"Error: 1: Command failed with ERR_STREAM_PREMATURE_CLOSE: code --force --install-extension anthropic.claude-code\nPremature close \n    at vp1 (/$bunfs/root/src/entrypoints/cli.js:1687:4046)\n    at async Lp1 (/$bunfs/root/src/entrypoints/cli.js:1687:1435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T15:47:51.816Z"},{"error":"MaxFileReadTokenExceededError: File content (27840 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-24T16:22:26.101Z"},{"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_011CaNvRGMup89bCRC2BztmY\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:55343)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T16:36:06.807Z"},{"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-24T17:22:09.835Z"},{"error":"EACCES: permission denied, mkdir '/Volumes/SSD/.claude.lock'","timestamp":"2026-04-24T23:27:52.476Z"},{"error":"EACCES: permission denied, mkdir '/Volumes/SSD/.claude.lock'","timestamp":"2026-04-24T23:41:29.270Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description [Image #7] rather than it asking me to slash clear to start new token. i prefer it help me to transfer certain context and where i type the slash new or any command then it will trigger the new session. this will save a lot of our work

Environment Info

  • Platform: darwin
  • Terminal: vscode
  • Version: 2.1.119
  • Feedback ID: b61eff40-6d38-4ae4-8d68-ea0b6142ef30

Errors

[{"error":"Error: 1: Command failed with ERR_STREAM_PREMATURE_CLOSE: code --force --install-extension anthropic.claude-code\nPremature close \n    at vp1 (/$bunfs/root/src/entrypoints/cli.js:1687:4046)\n    at async Lp1 (/$bunfs/root/src/entrypoints/cli.js:1687:1435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T15:47:51.816Z"},{"error":"MaxFileReadTokenExceededError: File content (27840 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-24T16:22:26.101Z"},{"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_011CaNvRGMup89bCRC2BztmY\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:55343)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T16:36:06.807Z"},{"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-24T17:22:09.835Z"},{"error":"EACCES: permission denied, mkdir '/Volumes/SSD/.claude.lock'","timestamp":"2026-04-24T23:27:52.476Z"},{"error":"EACCES: permission denied, mkdir '/Volumes/SSD/.claude.lock'","timestamp":"2026-04-24T23:41:29.270Z"}]

extent analysis

TL;DR

The issue can be mitigated by addressing the EACCES: permission denied errors and handling rate limits.

Guidance

  • Check the permissions of the /Volumes/SSD/ directory to ensure the application has write access.
  • Consider implementing retry logic with exponential backoff to handle rate limit errors (e.g., 429 status code).
  • Verify that the claude-code extension is properly installed and configured in the VSCode environment.
  • Review the error logs to identify any patterns or correlations between the errors.

Example

No code snippet is provided as the issue is more related to configuration and permissions.

Notes

The provided errors suggest a mix of permission issues, rate limiting, and potential configuration problems. Addressing these errors may require a combination of configuration changes, code updates, and infrastructure adjustments.

Recommendation

Apply workaround: Handle rate limits and permission errors by implementing retry logic and adjusting directory permissions. This approach can help mitigate the issues until a more permanent fix is available.

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 [Feature Request] Add context transfer capability with `/new` command instead of requiring `/clear` [1 comments, 2 participants]