Skip to content

Let me expand long agent questions to a larger view #346327

Closed

Description

@rwoll

Question card capped at about 300px. The question text is cut off mid-sentence and the answers scroll separately

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

  1. In the Agents window, have an agent call askQuestions with a multi-paragraph question and 5 or more options.
  2. 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. Escape collapses the card. Announce expanded or collapsed state with aria-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

Related

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

  1. added
    feature-request
    ux
    on Nov 5, 2026
  2. added
    unreleased
    on Nov 6, 2026
  3. added this to the 1.146.0 milestone on Nov 6, 2026
  4. vs-code-engineering commented on Nov 6, 2026

    @vs-code-engineering
    Contributor

    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.

    • Keeps only the title row pinned. The message, description, details, and
      answers now scroll together in one native scroll area, which replaces the
      split-height layout.
    • Adds a Maximize toggle that shows only when the content overflows. It raises
      the card height to min(650px, 70vh), and Escape restores it.
    • Shows an arrow button in place of Next or Submit while the answers are below
      the fold. The button scrolls to the answers and changes back to Next or Submit
      with a short animation. Reduced motion skips the animation.
    • Shows boolean questions (true/false options) as No and Yes footer buttons
      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.
    • Uses a Monaco editor for free-text and custom answers. The editor wraps,
      grows with its content, and gets agent host completions (for example @ and /)
      for the session of the question.
    • Keeps the body scrolled to the bottom when an answer editor grows.
    • Escapes a leading list or heading marker in titles, so "6. Timeframe" does
      not render as an indented list.
    • Always hides a detailed message that is the same as the title, and removes
      the hideDuplicateDetailedMessage option.
    • Adds component fixtures for boolean, multi-step, and long-context questions,
      and updates the unit tests.

    (Commit message generated by Copilot)

    Validation

    Run before merging origin/main:

    • tsc --project ./src/tsconfig.json --noEmit --skipLibCheck: passed
    • node build/eslint.ts <changed files>: passed
    • node 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 passing

    After merging origin/main, type-check passed again. The merge only conflicted on imports in inboxNotificationsView.test.ts. I could not rebuild against the dependency changes from main locally, 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 askQuestions with 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: 169a1c16 Current: 66e2815f

    Changed (18)

    sessions/inbox/inboxNotificationsView/Questions/Light
    Before After
    before after
    sessions/inbox/inboxNotificationsView/Narrow/Light
    Before After
    before after
    sessions/inbox/inboxNotificationsView/LongTitle/Light
    Before After
    before after
    sessions/inbox/inboxNotificationsView/TextQuestion/Light
    Before After
    before after
    sessions/inbox/inboxNotificationsView/Evidence/Light
    Before After
    before after
    sessions/inbox/inboxNotificationsView/EvidenceNarrow/Light
    Before After
    before after
    sessions/sessionChatInputToolbar/SessionChatView_StackedInputSurfaces/Light
    Before After
    before after
    chat/chatQuestionCarousel/SingleTextQuestion/Light
    Before After
    before after
    chat/chatQuestionCarousel/SingleSelectQuestion/Light
    Before After
    before after
    chat/chatQuestionCarousel/MultiSelectQuestion/Light
    Before After
    before after
    chat/chatQuestionCarousel/MultipleQuestions/Light
    Before After
    before after
    chat/chatQuestionCarousel/CarouselMessageOverflow/Light
    Before After
    before after
    chat/chatQuestionCarousel/AnswersBorrowUnusedHeight/Light
    Before After
    before after
    chat/chatQuestionCarousel/CompactQuestion/Light
    Before After
    before after
    chat/chatQuestionCarousel/ValidationError/Light
    Before After
    before after
    chat/chatQuestionCarousel/HarnessSwitchSurveyReason/Light
    Before After
    before after
    chat/chatQuestionCarousel/NoSkip/Light
    Before After
    before after
    chat/chatQuestionCarousel/MarkdownLinks/Light
    Before After
    before after

    Added (4)

    chat/chatQuestionCarousel/BooleanQuestion/Light

    current

    chat/chatQuestionCarousel/MultiStepWithBoolean/Light

    current

    chat/chatQuestionCarousel/LongContext/Light

    current

    chat/chatQuestionCarousel/LongBodyOverflow/Light

    current

    Screenshot report: #346600 (comment)

    Source PR: #346600

  5. added
    insiders-released
    verification-needed
    and removed
    unreleased
    on Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

agents-windowchatfeature-requestinsiders-releaseduxverification-neededverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions