Skip to content

Conversation

@roblourens
Copy link
Member

Only show the request/response, don't show any of the previous response. This looks cleaner, part of #274099. Also, measuring from the top means that we don't shift the response up and down when expanding the list of edited files (if the response is shorter than the minimum)

Only show the request/response, don't show any of the previous response. This looks cleaner, part of #274099.
Also, measuring from the top means that we don't shift the response up and down when expanding the list of edited files (if the response is shorter than the minimum)
Copilot AI review requested due to automatic review settings January 18, 2026 02:28
@roblourens roblourens enabled auto-merge (squash) January 18, 2026 02:28
@roblourens roblourens self-assigned this Jan 18, 2026
@vs-code-engineering vs-code-engineering bot added this to the January 2026 milestone Jan 18, 2026
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 adjusts the behavior of the chat widget's current response minimum height calculation. Instead of using a fixed percentage of the content height (75%), it now calculates the min height dynamically based on the second-to-last item's rendered height. This ensures only the current request/response pair is visible without showing previous responses.

Changes:

  • Extracted the min height calculation logic into a new updateLastItemMinHeight() method
  • Added an event handler to update min height when the second-to-last item's height changes
  • Refactored the layout() method to call the new updateLastItemMinHeight() method

@roblourens roblourens merged commit 7710bbe into main Jan 18, 2026
27 of 28 checks passed
@roblourens roblourens deleted the roblou/many-parrotfish branch January 18, 2026 05:07
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.

3 participants