claude-code - 💡(How to fix) Fix [Bug] Claude ignores plan mode and executes changes without approval

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…

Error Message

[{"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:2266:22351)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T16:23:13.868Z"},{"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:2266:20887)\n at w (/$bunfs/root/src/entrypoints/cli.js:2266:24871)\n at T (/$bunfs/root/src/entrypoints/cli.js:2266:29591)\n at w (/$bunfs/root/src/entrypoints/cli.js:2266:29928)\n at f (/$bunfs/root/src/entrypoints/cli.js:2266:30474)\n at call (/$bunfs/root/src/entrypoints/cli.js:2774:1268)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T16:23:13.868Z"},{"error":"Error: Failed to start LSP server for file /Users/chrisstout/code/cargadoinc/enchilada/src/services/booking/service/actions/prisma/booking.ts: Executable not found in $PATH: "typescript-language-server"\n at T (/$bunfs/root/src/entrypoints/cli.js:2266:29617)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T16:23:13.868Z"},{"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:2266:20887)\n at w (/$bunfs/root/src/entrypoints/cli.js:2266:24871)\n at T (/$bunfs/root/src/entrypoints/cli.js:2266:29591)\n at w (/$bunfs/root/src/entrypoints/cli.js:2266:29928)\n at f (/$bunfs/root/src/entrypoints/cli.js:2266:30474)\n at call (/$bunfs/root/src/entrypoints/cli.js:2774:1268)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T16:23:13.868Z"},{"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:2266:22351)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T16:23:22.271Z"},{"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:2266:20887)\n at w (/$bunfs/root/src/entrypoints/cli.js:2266:24871)\n at T (/$bunfs/root/src/entrypoints/cli.js:2266:29591)\n at w (/$bunfs/root/src/entrypoints/cli.js:2266:29928)\n at f (/$bunfs/root/src/entrypoints/cli.js:2266:30474)\n at call (/$bunfs/root/src/entrypoints/cli.js:2774:1268)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T16:23:22.271Z"},{"error":"Error: Failed to start LSP server for file /Users/chrisstout/code/cargadoinc/enchilada/src/services/booking/service/actions/prisma/booking.ts: Executable not found in $PATH: "typescript-language-server"\n at T (/$bunfs/root/src/entrypoints/cli.js:2266:29617)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T16:23:22.271Z"},{"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:2266:20887)\n at w (/$bunfs/root/src/entrypoints/cli.js:2266:24871)\n at T (/$bunfs/root/src/entrypoints/cli.js:2266:29591)\n at w (/$bunfs/root/src/entrypoints/cli.js:2266:29928)\n at f (/$bunfs/root/src/entrypoints/cli.js:2266:30474)\n at call (/$bunfs/root/src/entrypoints/cli.js:2774:1268)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T16:23:22.271Z"},{"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:2266:22351)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T16:23:32.175Z"},{"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:2266:20887)\n at w (/$bunfs/root/src/entrypoints/cli.js:2266:24871)\n at T (/$bunfs/root/src/entrypoints/cli.js:2266:29591)\n at w (/$bunfs/root/…

Code Example

[{"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:2266:22351)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T16:23:13.868Z"},{"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:2266:20887)\n    at w (/$bunfs/root/src/entrypoints/cli.js:2266:24871)\n    at T (/$bunfs/root/src/entrypoints/cli.js:2266:29591)\n    at w (/$bunfs/root/src/entrypoints/cli.js:2266:29928)\n    at f (/$bunfs/root/src/entrypoints/cli.js:2266:30474)\n    at call (/$bunfs/root/src/entrypoints/cli.js:2774:1268)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T16:23:13.868Z"},{"error":"Error: Failed to start LSP server for file /Users/chrisstout/code/cargadoinc/enchilada/src/services/booking/service/actions/prisma/booking.ts: Executable not found in $PATH: \"typescript-language-server\"\n    at T (/$bunfs/root/src/entrypoints/cli.js:2266:29617)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T16:23:13.868Z"},{"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:2266:20887)\n    at w (/$bunfs/root/src/entrypoints/cli.js:2266:24871)\n    at T (/$bunfs/root/src/entrypoints/cli.js:2266:29591)\n    at w (/$bunfs/root/src/entrypoints/cli.js:2266:29928)\n    at f (/$bunfs/root/src/entrypoints/cli.js:2266:30474)\n    at call (/$bunfs/root/src/entrypoints/cli.js:2774:1268)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T16:23:13.868Z"},{"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:2266:22351)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T16:23:22.271Z"},{"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:2266:20887)\n    at w (/$bunfs/root/src/entrypoints/cli.js:2266:24871)\n    at T (/$bunfs/root/src/entrypoints/cli.js:2266:29591)\n    at w (/$bunfs/root/src/entrypoints/cli.js:2266:29928)\n    at f (/$bunfs/root/src/entrypoints/cli.js:2266:30474)\n    at call (/$bunfs/root/src/entrypoints/cli.js:2774:1268)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T16:23:22.271Z"},{"error":"Error: Failed to start LSP server for file /Users/chrisstout/code/cargadoinc/enchilada/src/services/booking/service/actions/prisma/booking.ts: Executable not found in $PATH: \"typescript-language-server\"\n    at T (/$bunfs/root/src/entrypoints/cli.js:2266:29617)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T16:23:22.271Z"},{"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:2266:20887)\n    at w (/$bunfs/root/src/entrypoints/cli.js:2266:24871)\n    at T (/$bunfs/root/src/entrypoints/cli.js:2266:29591)\n    at w (/$bunfs/root/src/entrypoints/cli.js:2266:29928)\n    at f (/$bunfs/root/src/entrypoints/cli.js:2266:30474)\n    at call (/$bunfs/root/src/entrypoints/cli.js:2774:1268)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T16:23:22.271Z"},{"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:2266:22351)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T16:23:32.175Z"},{"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:2266:20887)\n    at w (/$bunfs/root/src/entrypoints/cli.js:2266:24871)\n    at T (/$bunfs/root/src/entrypoints/cli.js:2266:29591)\n    at w (/$bunfs/root/
RAW_BUFFERClick to expand / collapse

Bug Description Claude violates plan mode and makes changes on its own. I had been working on accept edits on, but switch to plan mode for PR feedback. Agent directly edited code and did not make a plan doc until I pointed out the mistake.

<img width="1081" height="109" alt="Image" src="https://github.com/user-attachments/assets/4af8fed1-d6cf-455e-9a28-e8be774b8ea1" />

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.1.88
  • Feedback ID: e2df4179-3db4-402a-9fd5-70f53cc852ec

Errors

[{"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:2266:22351)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T16:23:13.868Z"},{"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:2266:20887)\n    at w (/$bunfs/root/src/entrypoints/cli.js:2266:24871)\n    at T (/$bunfs/root/src/entrypoints/cli.js:2266:29591)\n    at w (/$bunfs/root/src/entrypoints/cli.js:2266:29928)\n    at f (/$bunfs/root/src/entrypoints/cli.js:2266:30474)\n    at call (/$bunfs/root/src/entrypoints/cli.js:2774:1268)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T16:23:13.868Z"},{"error":"Error: Failed to start LSP server for file /Users/chrisstout/code/cargadoinc/enchilada/src/services/booking/service/actions/prisma/booking.ts: Executable not found in $PATH: \"typescript-language-server\"\n    at T (/$bunfs/root/src/entrypoints/cli.js:2266:29617)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T16:23:13.868Z"},{"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:2266:20887)\n    at w (/$bunfs/root/src/entrypoints/cli.js:2266:24871)\n    at T (/$bunfs/root/src/entrypoints/cli.js:2266:29591)\n    at w (/$bunfs/root/src/entrypoints/cli.js:2266:29928)\n    at f (/$bunfs/root/src/entrypoints/cli.js:2266:30474)\n    at call (/$bunfs/root/src/entrypoints/cli.js:2774:1268)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T16:23:13.868Z"},{"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:2266:22351)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T16:23:22.271Z"},{"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:2266:20887)\n    at w (/$bunfs/root/src/entrypoints/cli.js:2266:24871)\n    at T (/$bunfs/root/src/entrypoints/cli.js:2266:29591)\n    at w (/$bunfs/root/src/entrypoints/cli.js:2266:29928)\n    at f (/$bunfs/root/src/entrypoints/cli.js:2266:30474)\n    at call (/$bunfs/root/src/entrypoints/cli.js:2774:1268)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T16:23:22.271Z"},{"error":"Error: Failed to start LSP server for file /Users/chrisstout/code/cargadoinc/enchilada/src/services/booking/service/actions/prisma/booking.ts: Executable not found in $PATH: \"typescript-language-server\"\n    at T (/$bunfs/root/src/entrypoints/cli.js:2266:29617)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T16:23:22.271Z"},{"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:2266:20887)\n    at w (/$bunfs/root/src/entrypoints/cli.js:2266:24871)\n    at T (/$bunfs/root/src/entrypoints/cli.js:2266:29591)\n    at w (/$bunfs/root/src/entrypoints/cli.js:2266:29928)\n    at f (/$bunfs/root/src/entrypoints/cli.js:2266:30474)\n    at call (/$bunfs/root/src/entrypoints/cli.js:2774:1268)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T16:23:22.271Z"},{"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:2266:22351)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T16:23:32.175Z"},{"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:2266:20887)\n    at w (/$bunfs/root/src/entrypoints/cli.js:2266:24871)\n    at T (/$bunfs/root/src/entrypoints/cli.js:2266:29591)\n    at w (/$bunfs/root/…

Note: Content was truncated.

extent analysis

TL;DR

The issue is likely caused by the typescript-language-server executable not being found in the system's PATH, and a potential workaround is to install or configure the TypeScript language server correctly.

Guidance

  • Verify that the typescript-language-server is installed and its executable is in the system's PATH.
  • Check the project's dependencies and configuration to ensure that the TypeScript language server is properly set up.
  • Consider reinstalling or updating the typescript-language-server package to ensure it is correctly installed and configured.
  • Review the project's node_modules directory to ensure that the typescript-language-server package is present and its executable is in the correct location.

Example

No code snippet is provided as the issue seems to be related to configuration and installation rather than code.

Notes

The issue description is truncated, which may limit the ability to provide a complete solution. Additionally, the exact steps to resolve the issue may vary depending on the project's specific configuration and setup.

Recommendation

Apply a workaround by installing or configuring the TypeScript language server correctly, as the issue seems to be related to its absence or incorrect configuration in the system's PATH.

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 ignores plan mode and executes changes without approval