Skip to content

Comments

Preserve question carousel across change of view#295826

Merged
meganrogge merged 3 commits intomainfrom
merogge/question-close
Feb 17, 2026
Merged

Preserve question carousel across change of view#295826
meganrogge merged 3 commits intomainfrom
merogge/question-close

Conversation

@meganrogge
Copy link
Collaborator

@meganrogge meganrogge commented Feb 17, 2026

fixes #295472

  • Carousel questions are now kept across the same sesssion view/editor switches, and only cleared when session actually changes
  • Removed forced used mutation on model reattach that caused false "Skipped" rendering after navigation
  • Added safe auto-resolution when a response completes with unanswered carousel
  • "Skipped" text now renders only for explicit used with no answers cases, not for auto-finalized unanswered carousels
  • Carousels still not rendered and are marked "skipped" on window reload

Before:

before.mov

After:

chat-fix.mov

cc @justschen

@meganrogge meganrogge self-assigned this Feb 17, 2026
@meganrogge meganrogge added this to the February 2026 milestone Feb 17, 2026
@meganrogge meganrogge enabled auto-merge (squash) February 17, 2026 19:02
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request fixes issue #295472 where the question carousel would incorrectly show "Skipped" and cause the chat to hang when the user closed/moved the chat or changed editor tabs. The PR preserves the question carousel across view/editor switches within the same session while clearing it only when the session actually changes.

Changes:

  • Modified carousel tracking to use session resources instead of clearing on all view model changes
  • Removed forced isUsed mutation on model reattach that caused false "Skipped" rendering
  • Added auto-resolution for unanswered carousels when a response completes
  • Updated "Skipped" rendering to only show for explicitly ignored carousels, not auto-finalized ones

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.ts Added session resource tracking and conditional carousel clearing based on session changes
src/vs/workbench/contrib/chat/browser/widget/chatWidget.ts Removed forced isUsed mutation on model reattach and fixed input part reference in dismissPendingQuestionCarousel
src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.ts Added auto-resolution logic for unanswered carousels when response completes
src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.ts Changed "Skipped" message to only render when carousel.isUsed is true

meganrogge and others added 2 commits February 17, 2026 13:18
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@meganrogge meganrogge merged commit a13657d into main Feb 17, 2026
18 checks passed
@meganrogge meganrogge deleted the merogge/question-close branch February 17, 2026 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Question carousel breaks when closing chat

2 participants