claude-code - 💡(How to fix) Fix [BUG] Resume menu breaks when holding Down arrow - index binding loop? [1 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#47870Fetched 2026-04-15 06:39:58
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Author
Participants
Timeline (top)
labeled ×3

Error Message

Error Messages/Logs

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Resume menu breaks when holding Down arrow. Looks like changing the current index too quickly leads to a infinite binding loop.

What Should Happen?

It should just quickly scroll down the options.

Error Messages/Logs

Steps to Reproduce

  1. Enter /resume
  2. Hold down arrow to quickly scroll down

Claude Model

None

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.207

Platform

Anthropic API

Operating System

Other Linux

Terminal/Shell

Other

Additional Information

Here is a recording of the issue:

https://github.com/user-attachments/assets/4c4bca1b-a86f-42a2-8ae5-d37fbb8194a7

extent analysis

TL;DR

The issue can likely be fixed by debouncing or throttling the Down arrow key event handling to prevent the infinite binding loop.

Guidance

  • Review the event handling code for the Down arrow key to identify where the binding loop is occurring and consider implementing debouncing or throttling to limit the frequency of events.
  • Verify that the issue is indeed caused by the rapid change of the current index by adding logging or debugging statements to track the index changes.
  • Check if there are any existing mechanisms in the Claude Code library or Anthropics API to handle rapid input events, such as built-in debouncing or throttling functions.
  • Consider adding a temporary workaround, such as introducing a small delay between index changes, to mitigate the issue until a permanent fix is implemented.

Example

No code example is provided as the issue does not include specific code snippets, but a possible solution might involve using a debouncing function, such as lodash.debounce, to limit the frequency of index changes.

Notes

The provided information does not include specific code or library versions, so the suggested fix may need to be adapted to the actual implementation. Additionally, the issue may be related to the Anthropics API or the Linux operating system, which could require further investigation.

Recommendation

Apply a workaround, such as debouncing or throttling the Down arrow key event handling, as it is likely to mitigate the issue and provide a temporary solution until the root cause is fully understood and addressed.

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