Skip to content

fix(plugin): bridge live tool metadata - #38365

Closed
ibakaidov wants to merge 1 commit into
anomalyco:devfrom
ibakaidov:fix/plugin-metadata-bridge
Closed

ibakaidov wants to merge 1 commit into
anomalyco:devfrom
ibakaidov:fix/plugin-metadata-bridge

Conversation

@ibakaidov

@ibakaidov ibakaidov commented Jul 22, 2026 •

Copy link
Copy Markdown

Issue for this PR

Closes #37877

Type of change

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

What does this PR do?

Tool.Context.metadata() is Effect-backed internally, but the Promise plugin adapter only converted ask(). A plugin call to context.metadata() therefore constructed and discarded an Effect. This bridges metadata with the existing EffectBridge, matching the ask() adapter and executing the update while the custom tool is still running.

How did you verify your code works?

Added a regression test that loads a custom plugin tool, calls context.metadata(), and asserts that the host metadata callback receives the running update. git diff --check passes. I could not run the Bun suite because the isolated worktree has neither Bun nor node_modules.

Screenshots / recordings

Not applicable; this is a server-side plugin bridge.

Checklist

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

@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label Jul 22, 2026
@github-actions

github-actions Bot commented Jul 22, 2026 •

Copy link
Copy Markdown
Contributor

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • Not all checklist items are checked. Please confirm you have tested locally and have not included unrelated changes.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

Feel free to open a new pull request that follows our guidelines.

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.

[BUG]: Plugin tool context.metadata() does not publish live updates after Effect migration

1 participant