claude-code - 💡(How to fix) Fix [Bug] Default output token limit (32k) causes mid-session failures and poor token utilization for extended tasks [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#56502Fetched 2026-05-07 03:52:45
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Timeline (top)
labeled ×4closed ×1commented ×1

Error Message

[{"error":"Error: LSP server plugin:csharp-lsp:csharp-ls failed to start: ENOENT: no such file or directory, uv_spawn 'csharp-ls'\n at start (B:/~BUN/root/src/entrypoints/cli.js:3143:22157)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-06T02:26:23.004Z"},{"error":"Error: ENOENT: no such file or directory, uv_spawn 'csharp-ls'\n at spawn (unknown)\n at spawn (node:child_process:679:35)\n at spawn (node:child_process:14:39)\n at start (B:/~BUN/root/src/entrypoints/cli.js:3143:20693)\n at O (B:/~BUN/root/src/entrypoints/cli.js:3143:24783)\n at Y (B:/~BUN/root/src/entrypoints/cli.js:3143:30317)\n at D (B:/~BUN/root/src/entrypoints/cli.js:3143:30702)\n at j (B:/~BUN/root/src/entrypoints/cli.js:3143:31261)\n at call (B:/~BUN/root/src/entrypoints/cli.js:3166:889)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-06T02:26:23.005Z"},{"error":"Error: Failed to start LSP server for file C:\Projects\DotsExamples\GrappleTech\Assets\_Project\Scripts\Player\FirstPersonLocomotion.cs: ENOENT: no such file or directory, uv_spawn 'csharp-ls'\n at Y (B:/~BUN/root/src/entrypoints/cli.js:3143:30343)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-06T02:26:23.005Z"},{"error":"Error: ENOENT: no such file or directory, uv_spawn 'csharp-ls'\n at spawn (unknown)\n at spawn (node:child_process:679:35)\n at spawn (node:child_process:14:39)\n at start (B:/~BUN/root/src/entrypoints/cli.js:3143:20693)\n at O (B:/~BUN/root/src/entrypoints/cli.js:3143:24783)\n at Y (B:/~BUN/root/src/entrypoints/cli.js:3143:30317)\n at D (B:/~BUN/root/src/entrypoints/cli.js:3143:30702)\n at j (B:/~BUN/root/src/entrypoints/cli.js:3143:31261)\n at call (B:/~BUN/root/src/entrypoints/cli.js:3166:889)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-06T02:26:23.005Z"}]

Code Example

[{"error":"Error: LSP server plugin:csharp-lsp:csharp-ls failed to start: ENOENT: no such file or directory, uv_spawn 'csharp-ls'\n    at start (B:/~BUN/root/src/entrypoints/cli.js:3143:22157)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-06T02:26:23.004Z"},{"error":"Error: ENOENT: no such file or directory, uv_spawn 'csharp-ls'\n    at spawn (unknown)\n    at spawn (node:child_process:679:35)\n    at spawn (node:child_process:14:39)\n    at start (B:/~BUN/root/src/entrypoints/cli.js:3143:20693)\n    at O (B:/~BUN/root/src/entrypoints/cli.js:3143:24783)\n    at Y (B:/~BUN/root/src/entrypoints/cli.js:3143:30317)\n    at D (B:/~BUN/root/src/entrypoints/cli.js:3143:30702)\n    at j (B:/~BUN/root/src/entrypoints/cli.js:3143:31261)\n    at call (B:/~BUN/root/src/entrypoints/cli.js:3166:889)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-06T02:26:23.005Z"},{"error":"Error: Failed to start LSP server for file C:\\Projects\\DotsExamples\\GrappleTech\\Assets\\_Project\\Scripts\\Player\\FirstPersonLocomotion.cs: ENOENT: no such file or directory, uv_spawn 'csharp-ls'\n    at Y (B:/~BUN/root/src/entrypoints/cli.js:3143:30343)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-06T02:26:23.005Z"},{"error":"Error: ENOENT: no such file or directory, uv_spawn 'csharp-ls'\n    at spawn (unknown)\n    at spawn (node:child_process:679:35)\n    at spawn (node:child_process:14:39)\n    at start (B:/~BUN/root/src/entrypoints/cli.js:3143:20693)\n    at O (B:/~BUN/root/src/entrypoints/cli.js:3143:24783)\n    at Y (B:/~BUN/root/src/entrypoints/cli.js:3143:30317)\n    at D (B:/~BUN/root/src/entrypoints/cli.js:3143:30702)\n    at j (B:/~BUN/root/src/entrypoints/cli.js:3143:31261)\n    at call (B:/~BUN/root/src/entrypoints/cli.js:3166:889)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-06T02:26:23.005Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description Spent 35 minutes and over 100k tokens which errored out due to default limits (CLAUDE_CODE_MAX_OUTPUT_TOKENS at 32000) and wasted 56% of my session. I still had about 20 minutes and ~50% left on my prior session limits so this was a double whammy of inconvenient default behavior that feels extraordinarily unfair to a Pro user. Does Claude have no insight as to what the max output tokens is before it commits to outputting this much?

Environment Info

  • Platform: win32
  • Terminal: windows-terminal
  • Version: 2.1.129
  • Feedback ID: 8bd623f4-94f3-4436-b8ca-85535846aba8

Errors

[{"error":"Error: LSP server plugin:csharp-lsp:csharp-ls failed to start: ENOENT: no such file or directory, uv_spawn 'csharp-ls'\n    at start (B:/~BUN/root/src/entrypoints/cli.js:3143:22157)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-06T02:26:23.004Z"},{"error":"Error: ENOENT: no such file or directory, uv_spawn 'csharp-ls'\n    at spawn (unknown)\n    at spawn (node:child_process:679:35)\n    at spawn (node:child_process:14:39)\n    at start (B:/~BUN/root/src/entrypoints/cli.js:3143:20693)\n    at O (B:/~BUN/root/src/entrypoints/cli.js:3143:24783)\n    at Y (B:/~BUN/root/src/entrypoints/cli.js:3143:30317)\n    at D (B:/~BUN/root/src/entrypoints/cli.js:3143:30702)\n    at j (B:/~BUN/root/src/entrypoints/cli.js:3143:31261)\n    at call (B:/~BUN/root/src/entrypoints/cli.js:3166:889)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-06T02:26:23.005Z"},{"error":"Error: Failed to start LSP server for file C:\\Projects\\DotsExamples\\GrappleTech\\Assets\\_Project\\Scripts\\Player\\FirstPersonLocomotion.cs: ENOENT: no such file or directory, uv_spawn 'csharp-ls'\n    at Y (B:/~BUN/root/src/entrypoints/cli.js:3143:30343)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-06T02:26:23.005Z"},{"error":"Error: ENOENT: no such file or directory, uv_spawn 'csharp-ls'\n    at spawn (unknown)\n    at spawn (node:child_process:679:35)\n    at spawn (node:child_process:14:39)\n    at start (B:/~BUN/root/src/entrypoints/cli.js:3143:20693)\n    at O (B:/~BUN/root/src/entrypoints/cli.js:3143:24783)\n    at Y (B:/~BUN/root/src/entrypoints/cli.js:3143:30317)\n    at D (B:/~BUN/root/src/entrypoints/cli.js:3143:30702)\n    at j (B:/~BUN/root/src/entrypoints/cli.js:3143:31261)\n    at call (B:/~BUN/root/src/entrypoints/cli.js:3166:889)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-06T02:26:23.005Z"}]

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