claude-code - 💡(How to fix) Fix [Bug] Increased task avoidance and rule non-compliance at medium effort level [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#45406Fetched 2026-04-09 08:06:10
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
labeled ×3commented ×1

Error Message

[{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"prompt is too long: 206231 tokens > 200000 maximum"},"request_id":"req_011CZrnaT3JsPuQ62bPwTSbY"}\n at generate (B:/~BUN/root/src/entrypoints/cli.js:11:51472)\n at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4942)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T18:35:32.104Z"},{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"prompt is too long: 202486 tokens > 200000 maximum"},"request_id":"req_011CZrnartWtgJCVuBQmTtrc"}\n at generate (B:/~BUN/root/src/entrypoints/cli.js:11:51472)\n at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4942)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T18:35:38.927Z"},{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"prompt is too long: 207522 tokens > 200000 maximum"},"request_id":"req_011CZrnbP7TKLjJtUM5tvKjk"}\n at generate (B:/~BUN/root/src/entrypoints/cli.js:11:51472)\n at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4942)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T18:35:42.609Z"},{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"prompt is too long: 203553 tokens > 200000 maximum"},"request_id":"req_011CZrnbdi3EWocUPkeHNAJs"}\n at generate (B:/~BUN/root/src/entrypoints/cli.js:11:51472)\n at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4942)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T18:35:48.349Z"},{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"prompt is too long: 207205 tokens > 200000 maximum"},"request_id":"req_011CZrnc4W3Wp5wq4L9Sg7fb"}\n at generate (B:/~BUN/root/src/entrypoints/cli.js:11:51472)\n at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4942)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T18:35:54.303Z"},{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"prompt is too long: 202701 tokens > 200000 maximum"},"request_id":"req_011CZrncVg7vCLCR4LrbspEn"}\n at generate (B:/~BUN/root/src/entrypoints/cli.js:11:51472)\n at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4942)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T18:36:00.359Z"},{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"prompt is too long: 206312 tokens > 200000 maximum"},"request_id":"req_011CZrncwo11v3xz4Z4suzDa"}\n at generate (B:/~BUN/root/src/entrypoints/cli.js:11:51472)\n at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4942)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T18:36:06.114Z"},{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"prompt is too long: 202177 tokens > 200000 maximum"},"request_id":"req_011CZrndNEg73tnfugveoKZR"}\n at generate (B:/~BUN/root/src/entrypoints/cli.js:11:51472)\n at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4942)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T18:36:09.604Z"},{"error":"Error: Conversation too long. Press esc twice to go up a few messages and try again.\n at hyH (B:/~BUN/root/src/entrypoints/cli.js:4272:938)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T18:36:09.605Z"},{"error":"Error: Error during compaction: Conversation too long. Press esc twice to go up a few messages and try again.\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:5235:1191)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T18:36:09.605Z"},{"error":"Error: Request was aborted.\n at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:3447)\n at processTicksAndRejections …

Code Example

[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 206231 tokens > 200000 maximum\"},\"request_id\":\"req_011CZrnaT3JsPuQ62bPwTSbY\"}\n    at generate (B:/~BUN/root/src/entrypoints/cli.js:11:51472)\n    at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4942)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T18:35:32.104Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 202486 tokens > 200000 maximum\"},\"request_id\":\"req_011CZrnartWtgJCVuBQmTtrc\"}\n    at generate (B:/~BUN/root/src/entrypoints/cli.js:11:51472)\n    at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4942)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T18:35:38.927Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 207522 tokens > 200000 maximum\"},\"request_id\":\"req_011CZrnbP7TKLjJtUM5tvKjk\"}\n    at generate (B:/~BUN/root/src/entrypoints/cli.js:11:51472)\n    at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4942)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T18:35:42.609Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 203553 tokens > 200000 maximum\"},\"request_id\":\"req_011CZrnbdi3EWocUPkeHNAJs\"}\n    at generate (B:/~BUN/root/src/entrypoints/cli.js:11:51472)\n    at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4942)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T18:35:48.349Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 207205 tokens > 200000 maximum\"},\"request_id\":\"req_011CZrnc4W3Wp5wq4L9Sg7fb\"}\n    at generate (B:/~BUN/root/src/entrypoints/cli.js:11:51472)\n    at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4942)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T18:35:54.303Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 202701 tokens > 200000 maximum\"},\"request_id\":\"req_011CZrncVg7vCLCR4LrbspEn\"}\n    at generate (B:/~BUN/root/src/entrypoints/cli.js:11:51472)\n    at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4942)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T18:36:00.359Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 206312 tokens > 200000 maximum\"},\"request_id\":\"req_011CZrncwo11v3xz4Z4suzDa\"}\n    at generate (B:/~BUN/root/src/entrypoints/cli.js:11:51472)\n    at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4942)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T18:36:06.114Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 202177 tokens > 200000 maximum\"},\"request_id\":\"req_011CZrndNEg73tnfugveoKZR\"}\n    at generate (B:/~BUN/root/src/entrypoints/cli.js:11:51472)\n    at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4942)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T18:36:09.604Z"},{"error":"Error: Conversation too long. Press esc twice to go up a few messages and try again.\n    at hyH (B:/~BUN/root/src/entrypoints/cli.js:4272:938)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T18:36:09.605Z"},{"error":"Error: Error during compaction: Conversation too long. Press esc twice to go up a few messages and try again.\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:5235:1191)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T18:36:09.605Z"},{"error":"Error: Request was aborted.\n    at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:3447)\n    at processTicksAndRejections …
RAW_BUFFERClick to expand / collapse

Bug Description I'm seeing way more "that's not my bug" or "simplifying..." and hiding issues as I iterate through code refinement. I'm running at medium effort, and increasing it makes it even worse. basically in my last sessions, the level of scape goating and passing the buck, not doing what needed, ignoring rule files to the "progress" has gone up significantlt recently.

Environment Info

  • Platform: win32
  • Terminal: windows-terminal
  • Version: 2.1.96
  • Feedback ID: f0d6534a-aab7-4462-b880-7180e095c742

Errors

[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 206231 tokens > 200000 maximum\"},\"request_id\":\"req_011CZrnaT3JsPuQ62bPwTSbY\"}\n    at generate (B:/~BUN/root/src/entrypoints/cli.js:11:51472)\n    at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4942)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T18:35:32.104Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 202486 tokens > 200000 maximum\"},\"request_id\":\"req_011CZrnartWtgJCVuBQmTtrc\"}\n    at generate (B:/~BUN/root/src/entrypoints/cli.js:11:51472)\n    at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4942)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T18:35:38.927Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 207522 tokens > 200000 maximum\"},\"request_id\":\"req_011CZrnbP7TKLjJtUM5tvKjk\"}\n    at generate (B:/~BUN/root/src/entrypoints/cli.js:11:51472)\n    at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4942)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T18:35:42.609Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 203553 tokens > 200000 maximum\"},\"request_id\":\"req_011CZrnbdi3EWocUPkeHNAJs\"}\n    at generate (B:/~BUN/root/src/entrypoints/cli.js:11:51472)\n    at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4942)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T18:35:48.349Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 207205 tokens > 200000 maximum\"},\"request_id\":\"req_011CZrnc4W3Wp5wq4L9Sg7fb\"}\n    at generate (B:/~BUN/root/src/entrypoints/cli.js:11:51472)\n    at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4942)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T18:35:54.303Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 202701 tokens > 200000 maximum\"},\"request_id\":\"req_011CZrncVg7vCLCR4LrbspEn\"}\n    at generate (B:/~BUN/root/src/entrypoints/cli.js:11:51472)\n    at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4942)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T18:36:00.359Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 206312 tokens > 200000 maximum\"},\"request_id\":\"req_011CZrncwo11v3xz4Z4suzDa\"}\n    at generate (B:/~BUN/root/src/entrypoints/cli.js:11:51472)\n    at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4942)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T18:36:06.114Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 202177 tokens > 200000 maximum\"},\"request_id\":\"req_011CZrndNEg73tnfugveoKZR\"}\n    at generate (B:/~BUN/root/src/entrypoints/cli.js:11:51472)\n    at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4942)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T18:36:09.604Z"},{"error":"Error: Conversation too long. Press esc twice to go up a few messages and try again.\n    at hyH (B:/~BUN/root/src/entrypoints/cli.js:4272:938)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T18:36:09.605Z"},{"error":"Error: Error during compaction: Conversation too long. Press esc twice to go up a few messages and try again.\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:5235:1191)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T18:36:09.605Z"},{"error":"Error: Request was aborted.\n    at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:3447)\n    at processTicksAndRejections …

Note: Content was truncated.

extent analysis

TL;DR

Reduce the length of the prompt to below 200,000 tokens to resolve the "prompt is too long" error.

Guidance

  • Review the prompt length and simplify it to ensure it's within the 200,000 token limit.
  • Consider breaking down complex requests into smaller, more manageable parts to avoid exceeding the token limit.
  • Check for any unnecessary or redundant information in the prompt that can be removed without affecting the request.
  • If possible, adjust the effort level to a lower setting to see if it reduces the prompt length and resolves the issue.

Example

No specific code snippet can be provided without more context, but ensuring prompts are concise and focused on the specific task or question can help avoid the "prompt is too long" error.

Notes

The provided errors and environment information suggest that the issue is related to the length of the prompt exceeding the maximum allowed limit. Reducing the prompt length should resolve the error, but if issues persist, further investigation into the specific use case and requirements may be necessary.

Recommendation

Apply a workaround by simplifying and shortening the prompts to ensure they are within the 200,000 token limit, as this directly addresses the "prompt is too long" error messages provided in the issue description.

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