Repository navigation
Description
When an agent asks a long question with askQuestions, the question card is capped at min(420px, 45vh). The question text and the answers share that height and each scroll on their own. To read a long question I scroll inside a small box while the transcript above keeps the rest of the chat pane.
I'd like to expand the question card, or open it in a larger modal, while I read and answer it.
Repro
- In the Agents window, have an agent call
askQuestionswith a multi-paragraph question and 5 or more options. - Look at the question card above the chat input.
Actual: the card is about 300px tall in a 768px-tall window. The question text is cut off mid-sentence, and the question text and the answer list each have their own scrollbar.
Expected: a way to see the whole question and its answers without scrolling inside the card.
Suggestion
Add an Expand toggle ($(screen-full) / $(screen-normal)) to the question card header. Show it only when the content overflows.
- Expanded: raise the cap to most of the pane, for example
min(650px, 70vh)or the full height above the input. The question text and answers flow in one scroll area instead of two. - Maximize (optional): a second step opens the question in a centered modal or an editor tab, with room for long Markdown. Submitting there answers the same carousel.
- Keep the choice for the session.
Escapecollapses the card. Announce expanded or collapsed state witharia-expanded, like the existing collapse button.
The tool confirmation carousel already does this. It has a screenFull button labeled "Expand Confirmation Up" that raises its cap from min(300px, 45vh) to min(650px, 70vh) when the content overflows. The question carousel could reuse that pattern.
Code pointers
- Cap:
MAX_CAROUSEL_HEIGHT/MAX_CAROUSEL_VIEWPORT_RATIO, applied as--chat-question-carousel-max-height - Split between the question text and the answers:
layoutQuestionSections - Precedent:
updateExpandContentButtonand.chat-tool-carousel-content-expanded
Related
- askQuestions long question descriptions cause awkward nested scrolling and layout #345574: nested scrolling and layout for long
askQuestionsdescriptions. This request is the escape hatch for questions that are still too long after that fix. - chat: askQuestions option descriptions take too much vertical space in the question carousel #336708: option descriptions take too much vertical space.
Environment
- VS Code Insiders 1.146.0-insider, Agents window
- macOS 27.2
🤖 Authored with GitHub Copilot on behalf of Ross Wollman (@rwoll).
Note
Was this description helpful?
Pick a rating, then press Submit.
Rate the description, not the code. Humans only, please. Thanks for helping me write clearer descriptions!

Activity
vs-code-engineering commentedon Nov 6, 2026
Sharing media and context from merged PR #346600 for verification:
Changes the question carousel so that users can read a long question and its
answers in one place, and answer free-text and yes/no questions more easily.
answers now scroll together in one native scroll area, which replaces the
split-height layout.
the card height to min(650px, 70vh), and Escape restores it.
the fold. The button scrolls to the answers and changes back to Next or Submit
with a short animation. Reduced motion skips the animation.
that answer and advance. When a custom answer is allowed, a "Something else"
field is always present, and typing in it replaces No and Yes with Submit.
grows with its content, and gets agent host completions (for example @ and /)
for the session of the question.
not render as an indented list.
the hideDuplicateDetailedMessage option.
and updates the unit tests.
(Commit message generated by Copilot)
Validation
Run before merging
origin/main:tsc --project ./src/tsconfig.json --noEmit --skipLibCheck: passednode build/eslint.ts <changed files>: passednode build/stylelint.ts: passed./scripts/test.sh --run chatQuestionCarouselPart.test.ts --run chatListRenderer.test.ts --run inboxNotificationsView.test.ts --run chatHarnessSwitchFeedbackSurveyService.test.ts --run chatInputCompletions.test.ts: 1359 passingAfter merging
origin/main, type-check passed again. The merge only conflicted on imports ininboxNotificationsView.test.ts. I could not rebuild against the dependency changes frommainlocally, because the npm registry was unreachable, so CI is the source of truth for the merged tree.To test manually: in the Agents window, ask an agent to call
askQuestionswith a long multi-paragraph question, several steps, a yes/no question that allows a custom answer, and a free-text question. Check the scroll-to-answers arrow, Maximize, the No/Yes buttons, "Something else", and@or/completions in the answer editors.Screenshot Changes
Base:
169a1c16Current:66e2815fChanged (18)
sessions/inbox/inboxNotificationsView/Questions/Lightsessions/inbox/inboxNotificationsView/Narrow/Lightsessions/inbox/inboxNotificationsView/LongTitle/Lightsessions/inbox/inboxNotificationsView/TextQuestion/Lightsessions/inbox/inboxNotificationsView/Evidence/Lightsessions/inbox/inboxNotificationsView/EvidenceNarrow/Lightsessions/sessionChatInputToolbar/SessionChatView_StackedInputSurfaces/Lightchat/chatQuestionCarousel/SingleTextQuestion/Lightchat/chatQuestionCarousel/SingleSelectQuestion/Lightchat/chatQuestionCarousel/MultiSelectQuestion/Lightchat/chatQuestionCarousel/MultipleQuestions/Lightchat/chatQuestionCarousel/CarouselMessageOverflow/Lightchat/chatQuestionCarousel/AnswersBorrowUnusedHeight/Lightchat/chatQuestionCarousel/CompactQuestion/Lightchat/chatQuestionCarousel/ValidationError/Lightchat/chatQuestionCarousel/HarnessSwitchSurveyReason/Lightchat/chatQuestionCarousel/NoSkip/Lightchat/chatQuestionCarousel/MarkdownLinks/LightAdded (4)
chat/chatQuestionCarousel/BooleanQuestion/Lightchat/chatQuestionCarousel/MultiStepWithBoolean/Lightchat/chatQuestionCarousel/LongContext/Lightchat/chatQuestionCarousel/LongBodyOverflow/LightScreenshot report: #346600 (comment)
Source PR: #346600
chat: show long agent questions in one scroll area and improve answers (
chat: show long agent questions in one scroll area and improve answer…
chat: show long agent questions in one scroll area and improve answer…
chat: show long agent questions in one scroll area and improve answer…