Skip to content

fix(plugin): forward Promise tool cancellation - #50190

Merged
rekram1-node merged 1 commit into
v2from
promise-tool-cancel
Sep 20, 2026
Merged

rekram1-node merged 1 commit into
v2from
promise-tool-cancel

Conversation

@rekram1-node

Copy link
Copy Markdown
Collaborator

Issue for this PR

N/A

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Promise-style plugin tools previously lost the AbortSignal created by the Effect runtime, so stopping a session interrupted Core while the underlying tool operation kept running. This forwards that signal through the Promise ToolContext and uses it for adapted progress and Effect-backed executors. It also documents the signal and adds an integration test covering interruption.

How did you verify your code works?

  • bun test test/plugin/promise-tool.test.ts from packages/core
  • bun run check
  • bun run check:generated from services/www
  • bun run build from services/www

Screenshots / recordings

N/A — no UI changes.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@rekram1-node
rekram1-node merged commit e3a3fa7 into v2 Sep 20, 2026
8 of 10 checks passed
@rekram1-node
rekram1-node deleted the promise-tool-cancel branch September 20, 2026 16:22
jinhuang712 pushed a commit to jinhuang712/opencode that referenced this pull request Sep 26, 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.

1 participant