Browser: Upgrade Playwright to 1.59.0-alpha-2026-03-19#303285
Draft
Browser: Upgrade Playwright to 1.59.0-alpha-2026-03-19#303285
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the integrated-browser Playwright dependency and aligns VS Code’s Playwright tab summarization logic with the newer Playwright snapshot API, improving compatibility with upstream Playwright changes.
Changes:
- Bump
playwright-corefrom1.59.0-alpha-2026-02-20to1.59.0-alpha-2026-03-19. - Switch from the hidden
Page._snapshotForAI(...)API toPage.snapshotForAI(...)withmodesupport. - Remove the local TypeScript module augmentation that declared
_snapshotForAIonplaywright-core’sPage.
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/vs/platform/browserView/node/playwrightTab.ts | Updates snapshot acquisition to use the new snapshotForAI API and adjusts summary assembly accordingly. |
| package.json | Pins playwright-core to the 2026-03-19 alpha build. |
| package-lock.json | Updates the lockfile to match the bumped playwright-core version, tarball URL, and integrity hash. |
Comment on lines
+161
to
164
| const snapshotFromPage = await this.safeRunAgainstPage((page) => page.snapshotForAI({ track: 'response', mode: full ? 'full' : 'incremental' })).catch(() => { | ||
| this._needsFullSnapshot = true; | ||
| return undefined; | ||
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No rush to check this in. Just here as reference of what the upgrade would involve