Skip to content

ensure rendering of questions can happen while askQuestions tool call is in flight and chat is moved#297768

Merged
meganrogge merged 2 commits intomainfrom
merogge/ask-in-flight
Feb 25, 2026
Merged

ensure rendering of questions can happen while askQuestions tool call is in flight and chat is moved#297768
meganrogge merged 2 commits intomainfrom
merogge/ask-in-flight

Conversation

@meganrogge
Copy link
Collaborator

@meganrogge meganrogge commented Feb 25, 2026

fix #297752

When chat moves from editor to panel while a tool call is in-flight, two things go wrong: the old widget measures heights as 0 because it's no longer on screen, and the new widget doesn't notice that new content (like questions) arrived because nothing told the tree it changed. The fix skips the bad measurement and makes the tree aware of new content.

Repro'd every time:

  • start #askQuestions from welcome view
  • move it to the panel before questions get rendered
  • 🐛 no questions rendered
move.mov

Copilot AI review requested due to automatic review settings February 25, 2026 19:25
@meganrogge meganrogge self-assigned this Feb 25, 2026
@meganrogge meganrogge added this to the February 2026 milestone Feb 25, 2026
@meganrogge meganrogge enabled auto-merge (squash) February 25, 2026 19:25
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 PR fixes issue #297752 where questions from the askQuestions tool call are not rendered when chat is moved from editor to panel while the tool call is in-flight. The fix addresses two root causes: the old widget caching incorrect height measurements (0px) when disconnected from the DOM, and the new widget not detecting that new content parts (like question carousels) have arrived.

Changes:

  • Skip refresh when container is disconnected from DOM to avoid caching incorrect measurements
  • Add response content parts length to diff identity to trigger re-renders when new parts arrive

@meganrogge meganrogge merged commit 1c3c7c4 into main Feb 25, 2026
20 checks passed
@meganrogge meganrogge deleted the merogge/ask-in-flight branch February 25, 2026 20:01
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.

Copilot Chat Plan Mode: Questions Not Rendered and Stuck State (Renderer Error)

3 participants