claude-code - 💡(How to fix) Fix [Feature Request] Add ability to create new plan files instead of updating existing plan in session [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#56267Fetched 2026-05-06 06:32:42
View on GitHub
Comments
1
Participants
2
Timeline
3
Reactions
0
Author
Timeline (top)
labeled ×2commented ×1

Error Message

[{"error":"MaxFileReadTokenExceededError: File content (25457 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-05-05T10:45:39.638Z"},{"error":"Error: LSP server plugin:pyright-lsp:pyright failed to start: Executable not found in $PATH: "pyright-langserver"\n at start (/$bunfs/root/src/entrypoints/cli.js:3164:22360)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-05T10:56:47.803Z"},{"error":"Error: Executable not found in $PATH: "pyright-langserver"\n at spawn (unknown)\n at spawn (node:child_process:667:35)\n at spawn (node:child_process:14:39)\n at start (/$bunfs/root/src/entrypoints/cli.js:3164:20896)\n at Y (/$bunfs/root/src/entrypoints/cli.js:3164:24879)\n at z (/$bunfs/root/src/entrypoints/cli.js:3164:30119)\n at j (/$bunfs/root/src/entrypoints/cli.js:3164:30504)\n at f (/$bunfs/root/src/entrypoints/cli.js:3164:31063)\n at call (/$bunfs/root/src/entrypoints/cli.js:4850:1388)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-05T10:56:47.803Z"},{"error":"Error: Failed to start LSP server for file /Users/dqunbp/projects/python/fastomat/src/config.py: Executable not found in $PATH: "pyright-langserver"\n at z (/$bunfs/root/src/entrypoints/cli.js:3164:30145)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-05T10:56:47.803Z"},{"error":"Error: Executable not found in $PATH: "pyright-langserver"\n at spawn (unknown)\n at spawn (node:child_process:667:35)\n at spawn (node:child_process:14:39)\n at start (/$bunfs/root/src/entrypoints/cli.js:3164:20896)\n at Y (/$bunfs/root/src/entrypoints/cli.js:3164:24879)\n at z (/$bunfs/root/src/entrypoints/cli.js:3164:30119)\n at j (/$bunfs/root/src/entrypoints/cli.js:3164:30504)\n at f (/$bunfs/root/src/entrypoints/cli.js:3164:31063)\n at call (/$bunfs/root/src/entrypoints/cli.js:4850:1388)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-05T10:56:47.803Z"},{"error":"Error: LSP server plugin:pyright-lsp:pyright failed to start: Executable not found in $PATH: "pyright-langserver"\n at start (/$bunfs/root/src/entrypoints/cli.js:3164:22360)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-05T10:56:50.188Z"},{"error":"Error: Executable not found in $PATH: "pyright-langserver"\n at spawn (unknown)\n at spawn (node:child_process:667:35)\n at spawn (node:child_process:14:39)\n at start (/$bunfs/root/src/entrypoints/cli.js:3164:20896)\n at Y (/$bunfs/root/src/entrypoints/cli.js:3164:24879)\n at z (/$bunfs/root/src/entrypoints/cli.js:3164:30119)\n at j (/$bunfs/root/src/entrypoints/cli.js:3164:30504)\n at f (/$bunfs/root/src/entrypoints/cli.js:3164:31063)\n at call (/$bunfs/root/src/entrypoints/cli.js:4850:1388)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-05T10:56:50.188Z"},{"error":"Error: Failed to start LSP server for file /Users/dqunbp/projects/python/fastomat/tests/api/test_generations.py: Executable not found in $PATH: "pyright-langserver"\n at z (/$bunfs/root/src/entrypoints/cli.js:3164:30145)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-05T10:56:50.188Z"},{"error":"Error: Executable not found in $PATH: "pyright-langserver"\n at spawn (unknown)\n at spawn (node:child_process:667:35)\n at spawn (node:child_process:14:39)\n at start (/$bunfs/root/src/entrypoints/cli.js:3164:20896)\n at Y (/$bunfs/root/src/entrypoints/cli.js:3164:24879)\n at z (/$bunfs/root/src/entrypoints/cli.js:3164:30119)\n at j (/$bunfs/root/src/entrypoints/cli.js:3164:30504)\n at f (/$bunfs/root/src/entrypoints/cli.js:3164:31063)\n at call (/$bunfs/root/src/entrypoints/cli.js:4850:1388)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-05T10:56:50.188Z"},{"error":"Error: LSP server plugin:pyright-lsp:pyright failed to start: Executable not found in $PATH: "pyright-langserver"\n at start (/$bunfs/root/src/entrypoints/cli.js:3164:22360)\n at processTicksAndRejections (native:7:39)","timestamp…

Code Example

[{"error":"MaxFileReadTokenExceededError: File content (25457 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-05-05T10:45:39.638Z"},{"error":"Error: LSP server plugin:pyright-lsp:pyright failed to start: Executable not found in $PATH: \"pyright-langserver\"\n    at start (/$bunfs/root/src/entrypoints/cli.js:3164:22360)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-05T10:56:47.803Z"},{"error":"Error: Executable not found in $PATH: \"pyright-langserver\"\n    at spawn (unknown)\n    at spawn (node:child_process:667:35)\n    at spawn (node:child_process:14:39)\n    at start (/$bunfs/root/src/entrypoints/cli.js:3164:20896)\n    at Y (/$bunfs/root/src/entrypoints/cli.js:3164:24879)\n    at z (/$bunfs/root/src/entrypoints/cli.js:3164:30119)\n    at j (/$bunfs/root/src/entrypoints/cli.js:3164:30504)\n    at f (/$bunfs/root/src/entrypoints/cli.js:3164:31063)\n    at call (/$bunfs/root/src/entrypoints/cli.js:4850:1388)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-05T10:56:47.803Z"},{"error":"Error: Failed to start LSP server for file /Users/dqunbp/projects/python/fastomat/src/config.py: Executable not found in $PATH: \"pyright-langserver\"\n    at z (/$bunfs/root/src/entrypoints/cli.js:3164:30145)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-05T10:56:47.803Z"},{"error":"Error: Executable not found in $PATH: \"pyright-langserver\"\n    at spawn (unknown)\n    at spawn (node:child_process:667:35)\n    at spawn (node:child_process:14:39)\n    at start (/$bunfs/root/src/entrypoints/cli.js:3164:20896)\n    at Y (/$bunfs/root/src/entrypoints/cli.js:3164:24879)\n    at z (/$bunfs/root/src/entrypoints/cli.js:3164:30119)\n    at j (/$bunfs/root/src/entrypoints/cli.js:3164:30504)\n    at f (/$bunfs/root/src/entrypoints/cli.js:3164:31063)\n    at call (/$bunfs/root/src/entrypoints/cli.js:4850:1388)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-05T10:56:47.803Z"},{"error":"Error: LSP server plugin:pyright-lsp:pyright failed to start: Executable not found in $PATH: \"pyright-langserver\"\n    at start (/$bunfs/root/src/entrypoints/cli.js:3164:22360)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-05T10:56:50.188Z"},{"error":"Error: Executable not found in $PATH: \"pyright-langserver\"\n    at spawn (unknown)\n    at spawn (node:child_process:667:35)\n    at spawn (node:child_process:14:39)\n    at start (/$bunfs/root/src/entrypoints/cli.js:3164:20896)\n    at Y (/$bunfs/root/src/entrypoints/cli.js:3164:24879)\n    at z (/$bunfs/root/src/entrypoints/cli.js:3164:30119)\n    at j (/$bunfs/root/src/entrypoints/cli.js:3164:30504)\n    at f (/$bunfs/root/src/entrypoints/cli.js:3164:31063)\n    at call (/$bunfs/root/src/entrypoints/cli.js:4850:1388)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-05T10:56:50.188Z"},{"error":"Error: Failed to start LSP server for file /Users/dqunbp/projects/python/fastomat/tests/api/test_generations.py: Executable not found in $PATH: \"pyright-langserver\"\n    at z (/$bunfs/root/src/entrypoints/cli.js:3164:30145)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-05T10:56:50.188Z"},{"error":"Error: Executable not found in $PATH: \"pyright-langserver\"\n    at spawn (unknown)\n    at spawn (node:child_process:667:35)\n    at spawn (node:child_process:14:39)\n    at start (/$bunfs/root/src/entrypoints/cli.js:3164:20896)\n    at Y (/$bunfs/root/src/entrypoints/cli.js:3164:24879)\n    at z (/$bunfs/root/src/entrypoints/cli.js:3164:30119)\n    at j (/$bunfs/root/src/entrypoints/cli.js:3164:30504)\n    at f (/$bunfs/root/src/entrypoints/cli.js:3164:31063)\n    at call (/$bunfs/root/src/entrypoints/cli.js:4850:1388)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-05T10:56:50.188Z"},{"error":"Error: LSP server plugin:pyright-lsp:pyright failed to start: Executable not found in $PATH: \"pyright-langserver\"\n    at start (/$bunfs/root/src/entrypoints/cli.js:3164:22360)\n    at processTicksAndRejections (native:7:39)","timestamp…
RAW_BUFFERClick to expand / collapse

Bug Description I want to enter "Plan mode" many times during the same session, without "oh, sorry, here is previous plan, let me update" messages. It will be great to create a new plan in new file instead of editing existing one.

Environment Info

  • Platform: darwin
  • Terminal: vscode
  • Version: 2.1.119
  • Feedback ID: 0cdb6a7d-2e81-4289-846d-b7574143671a

Errors

[{"error":"MaxFileReadTokenExceededError: File content (25457 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-05-05T10:45:39.638Z"},{"error":"Error: LSP server plugin:pyright-lsp:pyright failed to start: Executable not found in $PATH: \"pyright-langserver\"\n    at start (/$bunfs/root/src/entrypoints/cli.js:3164:22360)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-05T10:56:47.803Z"},{"error":"Error: Executable not found in $PATH: \"pyright-langserver\"\n    at spawn (unknown)\n    at spawn (node:child_process:667:35)\n    at spawn (node:child_process:14:39)\n    at start (/$bunfs/root/src/entrypoints/cli.js:3164:20896)\n    at Y (/$bunfs/root/src/entrypoints/cli.js:3164:24879)\n    at z (/$bunfs/root/src/entrypoints/cli.js:3164:30119)\n    at j (/$bunfs/root/src/entrypoints/cli.js:3164:30504)\n    at f (/$bunfs/root/src/entrypoints/cli.js:3164:31063)\n    at call (/$bunfs/root/src/entrypoints/cli.js:4850:1388)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-05T10:56:47.803Z"},{"error":"Error: Failed to start LSP server for file /Users/dqunbp/projects/python/fastomat/src/config.py: Executable not found in $PATH: \"pyright-langserver\"\n    at z (/$bunfs/root/src/entrypoints/cli.js:3164:30145)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-05T10:56:47.803Z"},{"error":"Error: Executable not found in $PATH: \"pyright-langserver\"\n    at spawn (unknown)\n    at spawn (node:child_process:667:35)\n    at spawn (node:child_process:14:39)\n    at start (/$bunfs/root/src/entrypoints/cli.js:3164:20896)\n    at Y (/$bunfs/root/src/entrypoints/cli.js:3164:24879)\n    at z (/$bunfs/root/src/entrypoints/cli.js:3164:30119)\n    at j (/$bunfs/root/src/entrypoints/cli.js:3164:30504)\n    at f (/$bunfs/root/src/entrypoints/cli.js:3164:31063)\n    at call (/$bunfs/root/src/entrypoints/cli.js:4850:1388)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-05T10:56:47.803Z"},{"error":"Error: LSP server plugin:pyright-lsp:pyright failed to start: Executable not found in $PATH: \"pyright-langserver\"\n    at start (/$bunfs/root/src/entrypoints/cli.js:3164:22360)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-05T10:56:50.188Z"},{"error":"Error: Executable not found in $PATH: \"pyright-langserver\"\n    at spawn (unknown)\n    at spawn (node:child_process:667:35)\n    at spawn (node:child_process:14:39)\n    at start (/$bunfs/root/src/entrypoints/cli.js:3164:20896)\n    at Y (/$bunfs/root/src/entrypoints/cli.js:3164:24879)\n    at z (/$bunfs/root/src/entrypoints/cli.js:3164:30119)\n    at j (/$bunfs/root/src/entrypoints/cli.js:3164:30504)\n    at f (/$bunfs/root/src/entrypoints/cli.js:3164:31063)\n    at call (/$bunfs/root/src/entrypoints/cli.js:4850:1388)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-05T10:56:50.188Z"},{"error":"Error: Failed to start LSP server for file /Users/dqunbp/projects/python/fastomat/tests/api/test_generations.py: Executable not found in $PATH: \"pyright-langserver\"\n    at z (/$bunfs/root/src/entrypoints/cli.js:3164:30145)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-05T10:56:50.188Z"},{"error":"Error: Executable not found in $PATH: \"pyright-langserver\"\n    at spawn (unknown)\n    at spawn (node:child_process:667:35)\n    at spawn (node:child_process:14:39)\n    at start (/$bunfs/root/src/entrypoints/cli.js:3164:20896)\n    at Y (/$bunfs/root/src/entrypoints/cli.js:3164:24879)\n    at z (/$bunfs/root/src/entrypoints/cli.js:3164:30119)\n    at j (/$bunfs/root/src/entrypoints/cli.js:3164:30504)\n    at f (/$bunfs/root/src/entrypoints/cli.js:3164:31063)\n    at call (/$bunfs/root/src/entrypoints/cli.js:4850:1388)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-05T10:56:50.188Z"},{"error":"Error: LSP server plugin:pyright-lsp:pyright failed to start: Executable not found in $PATH: \"pyright-langserver\"\n    at start (/$bunfs/root/src/entrypoints/cli.js:3164:22360)\n    at processTicksAndRejections (native:7:39)","timestamp…

Note: Content was truncated.

extent analysis

TL;DR

The most likely fix is to install the pyright-langserver executable and ensure it is in the system's PATH.

Guidance

  • The errors indicate that the pyright-langserver executable is not found in the system's PATH, suggesting a missing installation or configuration issue.
  • Verify that pyright-langserver is installed and its path is correctly configured in the system's environment variables.
  • Check the documentation for pyright-lsp to ensure that the installation and configuration steps were followed correctly.
  • Consider reinstalling pyright-lsp or checking for any updates to the package.

Example

No code snippet is provided as the issue seems to be related to a missing executable rather than a code error.

Notes

The provided error messages are truncated, which might limit the ability to provide a comprehensive solution. However, the repeated mention of pyright-langserver not being found in the PATH suggests that addressing this issue should resolve the errors.

Recommendation

Apply a workaround by installing pyright-langserver and ensuring it is in the system's PATH, as this is the most direct solution to the errors described.

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 ability to create new plan files instead of updating existing plan in session [1 comments, 2 participants]