[Bug] Default output token limit (32k) causes mid-session failures and poor token utilization for extended tasks

Resolved 💬 2 comments Opened May 6, 2026 by ToxicShawn Closed May 6, 2026

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"}]

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗