Skip to content

askQuestions long question descriptions cause awkward nested scrolling and layout #345574

Closed

Description

@hempflower

Description

When an agent invokes vscode/askQuestions with long question descriptions in the Agents Window, the question carousel renders an awkward nested scrollable region.

The description occupies a large fixed-height area with its own scrollbar, while the question title appears immediately below it and is also displayed again in the answer section.

This makes the question UI visually cluttered and difficult to read, especially when the agent asks multiple questions.

Steps to Reproduce

  1. Open the VS Code Agents Window.
  2. Start an agent session using GitHub Copilot.
  3. Have the agent invoke vscode/askQuestions with multiple questions (e.g. six), including a question with a lengthy description.
  4. Observe the rendered question carousel.

Actual Behavior

  • Long question descriptions are displayed inside a constrained, independently scrollable area.
  • The question title appears directly against the bottom edge of the scrollable description, creating an apparent clipping or overlap.
  • The same question title is repeated in the answer section.
  • The resulting layout makes it difficult to distinguish the description, question, and answer controls.

Expected Behavior

  • Long descriptions should be clearly separated from question titles and answer controls.
  • Text should not appear clipped or visually crowded at scroll-container boundaries.
  • Question titles should not be unnecessarily duplicated.
  • The question carousel should handle lengthy descriptions gracefully.

Issue Details

Item Value
Issue Category Bug
Target 智能体窗口
Repository Microsoft/vscode
VS Code Version Code 1.144.0 (2c33b50, 2026-10-27T20:18:03Z)
OS Version Windows_NT x64 10.0.26300

其他问题数据

issue-data.md

附件

screenshot-1.png

Activity

  1. added
    unreleased
    on Nov 6, 2026
  2. added this to the 1.146.0 milestone on Nov 6, 2026
  3. 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

  4. added
    insiders-released
    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

insiders-released

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions