Skip to content

Agents web: fix layout resize#318478

Merged
osortega merged 1 commit into
mainfrom
osortega/precise-kiwi
May 27, 2026
Merged

Agents web: fix layout resize#318478
osortega merged 1 commit into
mainfrom
osortega/precise-kiwi

Conversation

@osortega

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings May 27, 2026 00:59
@osortega osortega self-assigned this May 27, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 layout/resize behavior for the Agents window on web/mobile by ensuring the Sessions grid widget is properly re-laid out in the phone layout path, matching the desktop behavior.

Changes:

  • Expose SessionsPart’s internal SerializableGrid as protected so subclasses can lay it out.
  • Update MobileSessionsPart.layout() to layout the internal grid using the contentSize returned from layoutContents().
Show a summary per file
File Description
src/vs/sessions/browser/parts/sessionsPart.ts Makes _gridWidget protected so the mobile subclass can access it for layout.
src/vs/sessions/browser/parts/mobile/mobileSessionsPart.ts Lays out _gridWidget during phone-layout sizing to ensure correct resize behavior.

Copilot's findings

  • Files reviewed: 2/2 changed files
  • Comments generated: 0

@osortega osortega enabled auto-merge (squash) May 27, 2026 01:16
@osortega osortega merged commit bdaf044 into main May 27, 2026
26 checks passed
@osortega osortega deleted the osortega/precise-kiwi branch May 27, 2026 02:11
@vs-code-engineering vs-code-engineering Bot added this to the 1.123.0 milestone May 27, 2026
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