claude-code - 💡(How to fix) Fix AskUserQuestion dialog doesn't support vim keybindings [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#48036Fetched 2026-04-15 06:35:08
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
labeled ×2closed ×1commented ×1

When Claude asks a question via AskUserQuestion and the user selects "Other" to type a custom response, the text input area does not support vim keybindings — even when vim mode is enabled in the main input.

Root Cause

When Claude asks a question via AskUserQuestion and the user selects "Other" to type a custom response, the text input area does not support vim keybindings — even when vim mode is enabled in the main input.

RAW_BUFFERClick to expand / collapse

Summary

When Claude asks a question via AskUserQuestion and the user selects "Other" to type a custom response, the text input area does not support vim keybindings — even when vim mode is enabled in the main input.

Steps to reproduce

  1. Enable vim mode in Claude Code (the main input supports it)
  2. Trigger a flow where Claude asks a question (via AskUserQuestion tool)
  3. Select "Other" to type a custom response
  4. Try to use vim keybindings (e.g., press Esc to enter command mode)

Expected behavior

Vim enters command mode, so the user input remains available to continue editing, consistent with the main input.

Actual behavior

Pressing Esc dismisses/cancels the question dialog entirely, losing any text the user had typed.

Impact

  • Users lose their in-progress text with no way to recover it
  • Muscle memory from the main input causes accidental dismissals
  • Inconsistent behavior between text input areas

🤖 Generated with Claude Code

extent analysis

TL;DR

The issue can likely be resolved by modifying the AskUserQuestion tool to properly handle vim keybindings when the user selects "Other" to type a custom response.

Guidance

  • Investigate the event listeners attached to the text input area in the AskUserQuestion tool to ensure they are not interfering with vim mode.
  • Verify that the vim mode implementation in the main input is compatible with the text input area in the AskUserQuestion tool.
  • Check if there are any existing configuration options or settings that can be adjusted to enable vim keybindings in the AskUserQuestion tool.
  • Consider adding a feature request to the AskUserQuestion tool to officially support vim keybindings.

Example

No code snippet is provided as the issue does not contain sufficient technical details to create a accurate example.

Notes

The solution may require modifications to the AskUserQuestion tool or the vim mode implementation in the main input. Without more information about the underlying code and technologies used, it is difficult to provide a more specific fix.

Recommendation

Apply a workaround by modifying the AskUserQuestion tool to handle vim keybindings, as upgrading to a fixed version is not implied in the issue. This approach allows for a targeted solution to the specific problem, rather than relying on a potentially unavailable update.

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…

FAQ

Expected behavior

Vim enters command mode, so the user input remains available to continue editing, consistent with the main input.

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 AskUserQuestion dialog doesn't support vim keybindings [1 comments, 2 participants]