Skip to content

fix(core): validate tool definitions on registration - #42117

Merged
rekram1-node merged 1 commit into
v2from
validate-tools
Aug 12, 2026
Merged

rekram1-node merged 1 commit into
v2from
validate-tools

Conversation

@opencode-agent

@opencode-agent opencode-agent Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • validate model-facing tool definitions before mutating the Location registry
  • return a Tool.RegistrationError that names the malformed tool and includes the schema failure
  • preserve atomic registration batches so one invalid plugin tool cannot poison subsequent model requests

Fixes #42026

Tests

  • cd packages/core && bun test ./test/session-runner-tool-registry.test.ts
  • cd packages/core && bun typecheck

Requested by: @rekram1-node (Aiden Cline via Slack)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant