Skip to content

Ask-question widget resizes on typing quite disruptively #329379

Closed

Description

repro:

  1. select text in chat and start typing in it

demo:

CleanShot.2026-08-06.at.12.20.26.mp4

Version: 1.133.0-insider (Universal)
Commit: d90b903
Date: 2026-08-05T04:42:09Z
Electron: 42.8.0
ElectronBuildId: 14845705
Chromium: 148.0.7778.280
Node.js: 24.18.0
V8: 14.8.178.38-electron.0
@github/copilot: 1.0.78
@github/copilot-sdk: 1.0.9-preview.3
OS: d90b903

Activity

  1. added
    bug
    on Aug 6, 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
    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

buginsiders-releasedverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions