claude-code - 💡(How to fix) Fix [BUG] Long prompts block model output when AskUserQuestion modal appears (VS Code extension)

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…

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?

When I submit a long user prompt (one that fills most of the chat pane on first render) and the model responds by invoking an AskUserQuestion modal, the expanded prompt continues to occupy the visible area and covers the model's response context. I can't see what the model was reasoning about or why it's asking me the question. After I answer the modal, the response text often still isn't visible — the view doesn't reliably scroll to the latest output, so I'm left staring at my own prompt with no clear indication that the assistant has moved on or what it was asking me a question about.

What Should Happen?

  • Long user prompts should auto-collapse (especially on first render) with an expand affordance, so the model's response and any modal context are visible by default.
  • When an AskUserQuestion modal is dismissed/answered, the chat view should auto-scroll to the latest model output so I can see what I just responded to and what's happening next.
  • Ideally, the first-time render of any prompt above a length threshold should be capped to N lines regardless of screen size.

Error Messages/Logs

Steps to Reproduce

  1. Open VS Code on macOS with the Claude Code extension installed and signed in (Anthropic first-party auth).
  2. Open the Claude Code extension panel (native panel, not a terminal).
  3. In the chat input, paste a long prompt — long enough that once submitted it fills most of the visible chat pane (e.g., a multi-paragraph task description or spec; 40+ lines on a standard MacBook display reliably reproduces it).
  4. Phrase the prompt so the assistant will likely respond with an AskUserQuestion modal — e.g., ask for a decision that has multiple valid approaches, or give it a task with ambiguous scope that requires a choice.
  5. Submit and wait for the assistant to invoke the AskUserQuestion modal.
  6. Observe: the submitted user prompt remains fully expanded in the chat view, covering the assistant's pre-modal reasoning/context and model response. The modal's question lacks the surrounding "why is it asking this" context.
  7. Answer the modal.
  8. Observe: the chat view does not reliably scroll to the latest assistant output. I often have to scroll manually, and sometimes the new output appears to never render into view at all.

Claude Model

Opus

Is this a regression?

No, this never worked

Last Working Version

No response

Claude Code Version

2.1.113

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Cursor

Additional Information

No response

extent analysis

TL;DR

The issue can be addressed by implementing auto-collapse for long user prompts and auto-scrolling to the latest model output after an AskUserQuestion modal is dismissed.

Guidance

  • Implement a character or line limit for user prompts on first render, collapsing the prompt with an expand affordance to ensure the model's response and modal context are visible.
  • Modify the chat view to auto-scroll to the latest model output after an AskUserQuestion modal is answered, providing context for the user's response.
  • Consider adding a threshold for prompt length to determine when to auto-collapse, ensuring a consistent user experience across different screen sizes.
  • Review the rendering logic for new output after a modal is dismissed to ensure it is properly displayed in the chat view.

Example

No specific code example can be provided without more context on the implementation, but the fix would involve modifying the front-end logic for rendering user prompts and handling modal responses.

Notes

The provided information does not include specific details on the implementation or the technologies used, so the guidance is based on the described functionality and expected behavior.

Recommendation

Apply a workaround by implementing the suggested auto-collapse and auto-scroll features to improve the user experience until a more permanent fix can be integrated.

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] Long prompts block model output when AskUserQuestion modal appears (VS Code extension)