claude-code - 💡(How to fix) Fix [Bug] Session token percentage increases unexpectedly after single request with multi-file modifications [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#48054Fetched 2026-04-15 06:34:35
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Timeline (top)
labeled ×3commented ×1

Error Message

[{"error":"Error: Failed to start LSP server for file /Users/<user>/Projects/<project>/app/resources/js/pages/company/columns.ts: Executable not found in $PATH: "typescript-language-server"\n at $ (/$bunfs/root/src/entrypoints/cli.js:1785:29957)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T14:49:26.091Z"},{"error":"Error: Executable not found in $PATH: "typescript-language-server"\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:1785:20876)\n at w (/$bunfs/root/src/entrypoints/cli.js:1785:24859)\n at $ (/$bunfs/root/src/entrypoints/cli.js:1785:29931)\n at w (/$bunfs/root/src/entrypoints/cli.js:1785:30268)\n at Y (/$bunfs/root/src/entrypoints/cli.js:1785:30814)\n at call (/$bunfs/root/src/entrypoints/cli.js:4071:1377)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T14:49:26.091Z"},{"error":"Error: LSP server plugin:typescript-lsp:typescript failed to start: Executable not found in $PATH: "typescript-language-server"\n at start (/$bunfs/root/src/entrypoints/cli.js:1785:22340)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T14:50:07.230Z"},{"error":"Error: Executable not found in $PATH: "typescript-language-server"\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:1785:20876)\n at w (/$bunfs/root/src/entrypoints/cli.js:1785:24859)\n at $ (/$bunfs/root/src/entrypoints/cli.js:1785:29931)\n at w (/$bunfs/root/src/entrypoints/cli.js:1785:30268)\n at Y (/$bunfs/root/src/entrypoints/cli.js:1785:30814)\n at call (/$bunfs/root/src/entrypoints/cli.js:4071:1377)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T14:50:07.231Z"},{"error":"Error: Failed to start LSP server for file /Users/<user>/Projects/<project>/app/resources/js/pages/company/ksef/List/components/columns.ts: Executable not found in $PATH: "typescript-language-server"\n at $ (/$bunfs/root/src/entrypoints/cli.js:1785:29957)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T14:50:07.231Z"},{"error":"Error: Executable not found in $PATH: "typescript-language-server"\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:1785:20876)\n at w (/$bunfs/root/src/entrypoints/cli.js:1785:24859)\n at $ (/$bunfs/root/src/entrypoints/cli.js:1785:29931)\n at w (/$bunfs/root/src/entrypoints/cli.js:1785:30268)\n at Y (/$bunfs/root/src/entrypoints/cli.js:1785:30814)\n at call (/$bunfs/root/src/entrypoints/cli.js:4071:1377)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T14:50:07.231Z"},{"error":"Error: LSP server plugin:typescript-lsp:typescript failed to start: Executable not found in $PATH: "typescript-language-server"\n at start (/$bunfs/root/src/entrypoints/cli.js:1785:22340)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T14:50:29.488Z"},{"error":"Error: Executable not found in $PATH: "typescript-language-server"\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:1785:20876)\n at w (/$bunfs/root/src/entrypoints/cli.js:1785:24859)\n at $ (/$bunfs/root/src/entrypoints/cli.js:1785:29931)\n at w (/$bunfs/root/src/entrypoints/cli.js:1785:30268)\n at Y (/$bunfs/root/src/entrypoints/cli.js:1785:30814)\n at call (/$bunfs/root/src/entrypoints/cli.js:4071:1377)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T14:50:29.488Z"},{"error":"Error: Failed to start LSP server for file /Users/<user>/Projects/<project>/app/resources/js/pages/company/invoice/List/components/columns.ts: …"}]

Code Example

[{"error":"Error: Failed to start LSP server for file /Users/<user>/Projects/<project>/app/resources/js/pages/company/columns.ts: Executable not found in $PATH: \"typescript-language-server\"\n    at $ (/$bunfs/root/src/entrypoints/cli.js:1785:29957)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T14:49:26.091Z"},{"error":"Error: Executable not found in $PATH: \"typescript-language-server\"\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:1785:20876)\n    at w (/$bunfs/root/src/entrypoints/cli.js:1785:24859)\n    at $ (/$bunfs/root/src/entrypoints/cli.js:1785:29931)\n    at w (/$bunfs/root/src/entrypoints/cli.js:1785:30268)\n    at Y (/$bunfs/root/src/entrypoints/cli.js:1785:30814)\n    at call (/$bunfs/root/src/entrypoints/cli.js:4071:1377)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T14:49:26.091Z"},{"error":"Error: LSP server plugin:typescript-lsp:typescript failed to start: Executable not found in $PATH: \"typescript-language-server\"\n    at start (/$bunfs/root/src/entrypoints/cli.js:1785:22340)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T14:50:07.230Z"},{"error":"Error: Executable not found in $PATH: \"typescript-language-server\"\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:1785:20876)\n    at w (/$bunfs/root/src/entrypoints/cli.js:1785:24859)\n    at $ (/$bunfs/root/src/entrypoints/cli.js:1785:29931)\n    at w (/$bunfs/root/src/entrypoints/cli.js:1785:30268)\n    at Y (/$bunfs/root/src/entrypoints/cli.js:1785:30814)\n    at call (/$bunfs/root/src/entrypoints/cli.js:4071:1377)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T14:50:07.231Z"},{"error":"Error: Failed to start LSP server for file /Users/<user>/Projects/<project>/app/resources/js/pages/company/ksef/List/components/columns.ts: Executable not found in $PATH: \"typescript-language-server\"\n    at $ (/$bunfs/root/src/entrypoints/cli.js:1785:29957)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T14:50:07.231Z"},{"error":"Error: Executable not found in $PATH: \"typescript-language-server\"\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:1785:20876)\n    at w (/$bunfs/root/src/entrypoints/cli.js:1785:24859)\n    at $ (/$bunfs/root/src/entrypoints/cli.js:1785:29931)\n    at w (/$bunfs/root/src/entrypoints/cli.js:1785:30268)\n    at Y (/$bunfs/root/src/entrypoints/cli.js:1785:30814)\n    at call (/$bunfs/root/src/entrypoints/cli.js:4071:1377)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T14:50:07.231Z"},{"error":"Error: LSP server plugin:typescript-lsp:typescript failed to start: Executable not found in $PATH: \"typescript-language-server\"\n    at start (/$bunfs/root/src/entrypoints/cli.js:1785:22340)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T14:50:29.488Z"},{"error":"Error: Executable not found in $PATH: \"typescript-language-server\"\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:1785:20876)\n    at w (/$bunfs/root/src/entrypoints/cli.js:1785:24859)\n    at $ (/$bunfs/root/src/entrypoints/cli.js:1785:29931)\n    at w (/$bunfs/root/src/entrypoints/cli.js:1785:30268)\n    at Y (/$bunfs/root/src/entrypoints/cli.js:1785:30814)\n    at call (/$bunfs/root/src/entrypoints/cli.js:4071:1377)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T14:50:29.488Z"},{"error":"Error: Failed to start LSP server for file /Users/<user>/Projects/<project>/app/resources/js/pages/company/invoice/List/components/columns.ts: …"}]
RAW_BUFFERClick to expand / collapse

Bug Description I just sent one request, after which Opus modified three files and the session usage increased by 7%. Now my question is: will I be able to get much done at this rate?

Model Opus 4.6 (1M context) claude-opus-4-6[1m] 271.1k/1m tokens (27%)

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.107
  • Feedback ID: 40dfafe1-3fd7-4669-93db-a6ef3752c99c

Errors

[{"error":"Error: Failed to start LSP server for file /Users/<user>/Projects/<project>/app/resources/js/pages/company/columns.ts: Executable not found in $PATH: \"typescript-language-server\"\n    at $ (/$bunfs/root/src/entrypoints/cli.js:1785:29957)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T14:49:26.091Z"},{"error":"Error: Executable not found in $PATH: \"typescript-language-server\"\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:1785:20876)\n    at w (/$bunfs/root/src/entrypoints/cli.js:1785:24859)\n    at $ (/$bunfs/root/src/entrypoints/cli.js:1785:29931)\n    at w (/$bunfs/root/src/entrypoints/cli.js:1785:30268)\n    at Y (/$bunfs/root/src/entrypoints/cli.js:1785:30814)\n    at call (/$bunfs/root/src/entrypoints/cli.js:4071:1377)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T14:49:26.091Z"},{"error":"Error: LSP server plugin:typescript-lsp:typescript failed to start: Executable not found in $PATH: \"typescript-language-server\"\n    at start (/$bunfs/root/src/entrypoints/cli.js:1785:22340)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T14:50:07.230Z"},{"error":"Error: Executable not found in $PATH: \"typescript-language-server\"\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:1785:20876)\n    at w (/$bunfs/root/src/entrypoints/cli.js:1785:24859)\n    at $ (/$bunfs/root/src/entrypoints/cli.js:1785:29931)\n    at w (/$bunfs/root/src/entrypoints/cli.js:1785:30268)\n    at Y (/$bunfs/root/src/entrypoints/cli.js:1785:30814)\n    at call (/$bunfs/root/src/entrypoints/cli.js:4071:1377)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T14:50:07.231Z"},{"error":"Error: Failed to start LSP server for file /Users/<user>/Projects/<project>/app/resources/js/pages/company/ksef/List/components/columns.ts: Executable not found in $PATH: \"typescript-language-server\"\n    at $ (/$bunfs/root/src/entrypoints/cli.js:1785:29957)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T14:50:07.231Z"},{"error":"Error: Executable not found in $PATH: \"typescript-language-server\"\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:1785:20876)\n    at w (/$bunfs/root/src/entrypoints/cli.js:1785:24859)\n    at $ (/$bunfs/root/src/entrypoints/cli.js:1785:29931)\n    at w (/$bunfs/root/src/entrypoints/cli.js:1785:30268)\n    at Y (/$bunfs/root/src/entrypoints/cli.js:1785:30814)\n    at call (/$bunfs/root/src/entrypoints/cli.js:4071:1377)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T14:50:07.231Z"},{"error":"Error: LSP server plugin:typescript-lsp:typescript failed to start: Executable not found in $PATH: \"typescript-language-server\"\n    at start (/$bunfs/root/src/entrypoints/cli.js:1785:22340)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T14:50:29.488Z"},{"error":"Error: Executable not found in $PATH: \"typescript-language-server\"\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:1785:20876)\n    at w (/$bunfs/root/src/entrypoints/cli.js:1785:24859)\n    at $ (/$bunfs/root/src/entrypoints/cli.js:1785:29931)\n    at w (/$bunfs/root/src/entrypoints/cli.js:1785:30268)\n    at Y (/$bunfs/root/src/entrypoints/cli.js:1785:30814)\n    at call (/$bunfs/root/src/entrypoints/cli.js:4071:1377)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T14:50:29.488Z"},{"error":"Error: Failed to start LSP server for file /Users/<user>/Projects/<project>/app/resources/js/pages/company/invoice/List/components/columns.ts: …"}]

Note: Content was truncated.

extent analysis

TL;DR

The most likely fix is to install the typescript-language-server executable and ensure it is available in the system's PATH.

Guidance

  1. Verify the absence of typescript-language-server: Check if typescript-language-server is installed and available in the system's PATH by running the command which typescript-language-server in the terminal. If it's not found, proceed to the next step.
  2. Install typescript-language-server: Install the typescript-language-server using a package manager like npm by running the command npm install -g typescript-language-server or yarn global add typescript-language-server.
  3. Update the system's PATH: Ensure the directory where typescript-language-server is installed is included in the system's PATH environment variable. This may require restarting the terminal or running source $HOME/.bashrc (or equivalent) to apply the changes.
  4. Retry the operation: After installing typescript-language-server and updating the PATH, retry the operation that previously failed to see if the issue is resolved.

Example

No code snippet is necessary for this issue, as it involves installing and configuring an executable.

Notes

The provided error messages consistently indicate that the typescript-language-server executable is not found in the system's PATH. Installing the executable and ensuring it is accessible should resolve the issue. However, if the problem persists, further investigation into the specific Opus configuration or environment may be necessary.

Recommendation

Apply the workaround by installing typescript-language-server and updating the system's PATH, as this directly addresses the error messages provided.

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] Session token percentage increases unexpectedly after single request with multi-file modifications [1 comments, 2 participants]