GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(core): convert callable Effect tool schemas by virajchoudhary · Pull Request #66828 · anomalyco/opencode

Conversation

@virajchoudhary

@virajchoudhary virajchoudhary commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Issue for this PR

Closes #66827

Type of change

  • Bug fix

What does this PR do?

Use the existing Effect JSON Schema conversion when a callable Effect adapter supplies validation without a JSON Schema converter. Preserve the empty-input object shape used by plain Effect schemas. This follows up on #62753 and the callable detection shipped in #64515.

How did you verify your code works?

  • Reproduced input and output conversion failures on dev at 138cc9a with Effect 4.1.0.
  • The registry regressions cover advertised input and output, validation, encoded output, and empty inputs. The five targeted Core files passed all 122 tests, and bun run typecheck:tsc passed on Windows with Bun 1.4.5.
  • The exact patch passed independent review. AI-assisted implementation and verification.

Screenshots / recordings

No UI change.

Checklist

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@virajchoudhary
fix(core): convert callable Effect tool schemas
088929d
opencodejr[bot]
opencodejr Bot reviewed Nov 27, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I reproduced the bug on the base by running this PR's two registry tests there: both fail because the tools are dropped from the snapshot. With the change, test/tool-registry.test.ts passes and typecheck:tsc is clean in packages/core.

The new branch runs only after the Standard JSON Schema and Zod paths. Validation and output encoding still go through the adapter's ~standard, so parseOptions are kept. The advertised JSON Schema matches what plain Effect schemas get, including the empty-input object shape.

Public API: unchanged. Plugin tools that use Schema.toStandardSchemaV1 without a JSON Schema converter are now registered instead of silently skipped.

No blocking concerns. Your #62753 adds the same Schema.isSchema → toJsonSchema branch, and its callable detection already landed in #64515, so it is probably redundant once this lands.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

This branch has not been deployed

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

Reviewers

@opencodejr opencodejr[bot] opencodejr[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Callable Effect Standard Schemas without a JSON Schema converter disappear from the tool registry

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@virajchoudhary
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.