Skip to content

New Feature: Support canceling WebMCP tool execution (#15365) - #3563

Merged
kblok merged 8 commits into
masterfrom
cursor/implement-upstream-change-15365-ed57
Aug 27, 2026
Merged

kblok merged 8 commits into
masterfrom
cursor/implement-upstream-change-15365-ed57

Conversation

@kblok

@kblok kblok commented Aug 25, 2026

Copy link
Copy Markdown
Member

Implements changes from puppeteer/puppeteer#15365

Changes

  • Added WebMcpToolExecuteOptions with CancellationToken (AbortSignal equivalent)
  • WebMcpTool.ExecuteAsync accepts options and cancels via CDP WebMCP.cancelInvocation
  • Added cancel tests and updated WebMCP test setup for current Chrome features

Part of puppeteer-core-v25.9.0 release port.

Open in Web Open in Cursor 

cursoragent and others added 7 commits August 25, 2026 10:17
Port upstream puppeteer#15365: allow canceling in-progress WebMCP tool
execution via CancellationToken (AbortSignal equivalent), calling
WebMCP.cancelInvocation over CDP.

Co-authored-by: Darío Kondratiuk <dariokondratiuk@gmail.com>
Remove outdated chrome+cdp FAIL for WebMCP now that DefaultBuildId is
Chrome 152, matching upstream TestExpectations which no longer skip
WebMCP on Chrome CDP.

Co-authored-by: Darío Kondratiuk <dariokondratiuk@gmail.com>
Align Page.webmcp tests with upstream Chrome API: use
--enable-features=WebMCP and document.modelContext.registerTool.

Co-authored-by: Darío Kondratiuk <dariokondratiuk@gmail.com>
Look up the imperative tool by name when asserting annotations, and
document the current --enable-features=WebMCP launch flag.

Co-authored-by: Darío Kondratiuk <dariokondratiuk@gmail.com>
Co-authored-by: Darío Kondratiuk <dariokondratiuk@gmail.com>
Co-authored-by: Darío Kondratiuk <dariokondratiuk@gmail.com>
Co-authored-by: Darío Kondratiuk <dariokondratiuk@gmail.com>
@kblok
kblok marked this pull request as ready for review August 25, 2026 19:38
Co-authored-by: Darío Kondratiuk <dariokondratiuk@gmail.com>
@kblok
kblok merged commit 51d3905 into master Aug 27, 2026
37 of 39 checks passed
@kblok
kblok deleted the cursor/implement-upstream-change-15365-ed57 branch August 27, 2026 20:52
sondresjolyst pushed a commit to sondresjolyst/garge-api that referenced this pull request Sep 13, 2026
Updated [PuppeteerSharp](https://github.com/hardkoded/puppeteer-sharp)
from 25.8.0 to 25.10.0.

<details>
<summary>Release notes</summary>

_Sourced from [PuppeteerSharp's
releases](https://github.com/hardkoded/puppeteer-sharp/releases)._

## 25.10.0

## What's Changed
* fix: set frame content without document.write (#​15358) by @​kblok in
hardkoded/puppeteer-sharp#3565
* feat: roll to Firefox 154.0 (#​15361) by @​kblok in
hardkoded/puppeteer-sharp#3566
* New Feature: Support shadow roots in MutationPoller (#​15292) by
@​kblok in hardkoded/puppeteer-sharp#3564
* fix: roll to Chrome 152.0.7977.54 (#​15363) by @​kblok in
hardkoded/puppeteer-sharp#3567
* chore: bump version to 25.9.0 by @​kblok in
hardkoded/puppeteer-sharp#3568
* New Feature: Support canceling WebMCP tool execution (#​15365) by
@​kblok in hardkoded/puppeteer-sharp#3563
* Update README.md - update downloads badge by @​Meir017 in
hardkoded/puppeteer-sharp#3569
* Fix: Roll to Chrome 152.0.7977.64 (upstream #​15395) by @​kblok in
hardkoded/puppeteer-sharp#3574
* Fix: Do not miss the first screencast frame while startScreencast is
in flight (upstream #​15389) by @​kblok in
hardkoded/puppeteer-sharp#3578
* Fix: Roll to Firefox 154.0.1 (upstream #​15397) by @​kblok in
hardkoded/puppeteer-sharp#3573
* Fix: Detect a websocket connection that died without a close (upstream
#​15406) by @​kblok in
hardkoded/puppeteer-sharp#3570
* Fix: Distinguish an unwritable userDataDir from a running browser
(upstream #​15405) by @​kblok in
hardkoded/puppeteer-sharp#3572
* Fix: Roll to Chrome 152.0.7977.75 (upstream #​15409) by @​kblok in
hardkoded/puppeteer-sharp#3575
* chore: add newer iPhone KnownDevices (upstream #​15400) by @​kblok in
hardkoded/puppeteer-sharp#3580
* chore: bump version to 25.10.0 by @​kblok in
hardkoded/puppeteer-sharp#3576
* New Feature: Implement page.record() video-stream screen recording
(upstream #​15387) by @​kblok in
hardkoded/puppeteer-sharp#3571
* New Feature: Roll to Firefox 155.0 (upstream #​15408) by @​kblok in
hardkoded/puppeteer-sharp#3577


**Full Changelog**:
hardkoded/puppeteer-sharp@v25.8.0...v25.10.0

Commits viewable in [compare
view](hardkoded/puppeteer-sharp@v25.8.0...v25.10.0).
</details>

[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=PuppeteerSharp&package-manager=nuget&previous-version=25.8.0&new-version=25.10.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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.

2 participants