claude-code - 💡(How to fix) Fix [Bug] Ctrl+O and Ctrl+E message history toggle not functioning [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#45313Fetched 2026-04-09 08:08:15
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: 204858 tokens > 200000 maximum"},"request_id":"req_011CZqFQ4PQ9XvBukUL35UEx"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:51717)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4942)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-07T23:06:02.866Z"},{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"prompt is too long: 207565 tokens > 200000 maximum"},"request_id":"req_011CZqFQNoBU3EondqH3WUPY"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:51717)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4942)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-07T23:06:05.485Z"},{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"prompt is too long: 204858 tokens > 200000 maximum"},"request_id":"req_011CZqFQnet32na8Qq77huXu"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:51717)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4942)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-07T23:06:11.929Z"},{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"prompt is too long: 208914 tokens > 200000 maximum"},"request_id":"req_011CZqFR2zLouEqTnqggTBjt"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:51717)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4942)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-07T23:06:13.797Z"},{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"prompt is too long: 204858 tokens > 200000 maximum"},"request_id":"req_011CZqFRQ75wCWwce5kse9AD"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:51717)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4942)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-07T23:06:20.693Z"},{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"prompt is too long: 212958 tokens > 200000 maximum"},"request_id":"req_011CZqFRgdGCdbffFcefopUP"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:51717)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4942)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-07T23:06:22.800Z"},{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"prompt is too long: 204858 tokens > 200000 maximum"},"request_id":"req_011CZqFS2sRVWcZhU2E7wWLA"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:51717)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4942)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-07T23:06:29.442Z"},{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"prompt is too long: 213379 tokens > 200000 maximum"},"request_id":"req_011CZqFSKYXU84q3L9o95BNi"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:51717)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4942)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-07T23:06:31.108Z"},{"error":"Error: Conversation too long. Press esc twice to go up a few messages and try again.\n at EVH (/$bunfs/root/src/entrypoints/cli.js:4221:938)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-07T23:06:31.110Z"},{"error":"Error: Error during compaction: Conversation too long. Press esc twice to go up a few messages and try again.\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:5184:1191)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-07T23:06:31.110Z"},{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"prompt is too long: 201603 tokens > 200000 maximum"},"request_id":"req_011CZqMrdHzJ7WViy88DGCMR"}\n at generate (/$bunfs/ro…

Code Example

[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 204858 tokens > 200000 maximum\"},\"request_id\":\"req_011CZqFQ4PQ9XvBukUL35UEx\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:51717)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4942)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-07T23:06:02.866Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 207565 tokens > 200000 maximum\"},\"request_id\":\"req_011CZqFQNoBU3EondqH3WUPY\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:51717)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4942)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-07T23:06:05.485Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 204858 tokens > 200000 maximum\"},\"request_id\":\"req_011CZqFQnet32na8Qq77huXu\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:51717)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4942)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-07T23:06:11.929Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 208914 tokens > 200000 maximum\"},\"request_id\":\"req_011CZqFR2zLouEqTnqggTBjt\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:51717)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4942)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-07T23:06:13.797Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 204858 tokens > 200000 maximum\"},\"request_id\":\"req_011CZqFRQ75wCWwce5kse9AD\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:51717)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4942)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-07T23:06:20.693Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 212958 tokens > 200000 maximum\"},\"request_id\":\"req_011CZqFRgdGCdbffFcefopUP\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:51717)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4942)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-07T23:06:22.800Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 204858 tokens > 200000 maximum\"},\"request_id\":\"req_011CZqFS2sRVWcZhU2E7wWLA\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:51717)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4942)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-07T23:06:29.442Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 213379 tokens > 200000 maximum\"},\"request_id\":\"req_011CZqFSKYXU84q3L9o95BNi\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:51717)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4942)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-07T23:06:31.108Z"},{"error":"Error: Conversation too long. Press esc twice to go up a few messages and try again.\n    at EVH (/$bunfs/root/src/entrypoints/cli.js:4221:938)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-07T23:06:31.110Z"},{"error":"Error: Error during compaction: Conversation too long. Press esc twice to go up a few messages and try again.\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:5184:1191)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-07T23:06:31.110Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 201603 tokens > 200000 maximum\"},\"request_id\":\"req_011CZqMrdHzJ7WViy88DGCMR\"}\n    at generate (/$bunfs/ro…
RAW_BUFFERClick to expand / collapse

Bug Description ctrol+o and ctrl+e does NOT show any previous messages - the command text at the bottom toggles (press ctrl+e to show and ctrl+e to hide) but actual messages on scrolling up are still the same in both states. cannot look at history of my convo

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.1.94
  • Feedback ID: 9cdd5a7c-beec-42b5-be31-ac300129e397

Errors

[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 204858 tokens > 200000 maximum\"},\"request_id\":\"req_011CZqFQ4PQ9XvBukUL35UEx\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:51717)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4942)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-07T23:06:02.866Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 207565 tokens > 200000 maximum\"},\"request_id\":\"req_011CZqFQNoBU3EondqH3WUPY\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:51717)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4942)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-07T23:06:05.485Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 204858 tokens > 200000 maximum\"},\"request_id\":\"req_011CZqFQnet32na8Qq77huXu\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:51717)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4942)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-07T23:06:11.929Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 208914 tokens > 200000 maximum\"},\"request_id\":\"req_011CZqFR2zLouEqTnqggTBjt\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:51717)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4942)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-07T23:06:13.797Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 204858 tokens > 200000 maximum\"},\"request_id\":\"req_011CZqFRQ75wCWwce5kse9AD\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:51717)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4942)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-07T23:06:20.693Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 212958 tokens > 200000 maximum\"},\"request_id\":\"req_011CZqFRgdGCdbffFcefopUP\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:51717)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4942)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-07T23:06:22.800Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 204858 tokens > 200000 maximum\"},\"request_id\":\"req_011CZqFS2sRVWcZhU2E7wWLA\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:51717)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4942)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-07T23:06:29.442Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 213379 tokens > 200000 maximum\"},\"request_id\":\"req_011CZqFSKYXU84q3L9o95BNi\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:51717)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4942)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-07T23:06:31.108Z"},{"error":"Error: Conversation too long. Press esc twice to go up a few messages and try again.\n    at EVH (/$bunfs/root/src/entrypoints/cli.js:4221:938)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-07T23:06:31.110Z"},{"error":"Error: Error during compaction: Conversation too long. Press esc twice to go up a few messages and try again.\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:5184:1191)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-07T23:06:31.110Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 201603 tokens > 200000 maximum\"},\"request_id\":\"req_011CZqMrdHzJ7WViy88DGCMR\"}\n    at generate (/$bunfs/ro…

Note: Content was truncated.

extent analysis

TL;DR

The issue can be mitigated by reducing the conversation length, as indicated by the "Conversation too long" error messages.

Guidance

  • The error messages suggest that the conversation length exceeds the maximum allowed limit, causing the issue with scrolling up to view previous messages.
  • Pressing esc twice to go up a few messages and trying again may help, as suggested by one of the error messages.
  • Reducing the conversation length or implementing a mechanism to handle long conversations may be necessary to resolve the issue.
  • Investigating the cli.js file, specifically the generate and makeRequest functions, may provide more insight into the cause of the error.

Example

No specific code example can be provided without more context, but reducing the conversation length can be achieved by implementing a mechanism to truncate or limit the conversation history.

Notes

The provided issue content is truncated, which may limit the ability to provide a comprehensive solution. Additionally, the issue appears to be related to a specific application or platform, and more information about the environment and codebase may be necessary to provide a complete fix.

Recommendation

Apply a workaround to reduce the conversation length, such as pressing esc twice to go up a few messages and trying again, until a more permanent solution can be implemented. This is because the error messages clearly indicate that the conversation length is the primary cause of the issue.

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] Ctrl+O and Ctrl+E message history toggle not functioning [1 comments, 2 participants]