Skip to content

Advertise flat object schemas for browser_handoff and browser_credentials in OMP - #63

Merged
wolfiesch merged 2 commits into
mainfrom
fix/omp-handoff-object-schema
Oct 4, 2026
Merged

wolfiesch merged 2 commits into
mainfrom
fix/omp-handoff-object-schema

Conversation

@wolfiesch

Copy link
Copy Markdown
Owner

OpenAI-compatible providers (Codex, DeepSeek) reject a tool whose root parameters schema is a union. When OMP sends extension tools without its own schema normalization (for example omp --no-tools), every request on those providers failed with Invalid schema for function 'browser_handoff'.

browser_handoff and browser_credentials now advertise one strict object, matching browser_open and browser_snapshot. Core still enforces which fields each operation or action requires. Pi mode schemas are unchanged.

Verification:

  • New test asserts every OMP tool registers a root object schema; it fails on the previous code.
  • omp --no-tools with the built adapter: Codex and DeepSeek requests that previously returned the schema error now succeed.

…ials in OMP

OpenAI-compatible providers reject a tool whose root parameters schema is a
union, so OMP runs that send extension tools without normalization failed on
every Codex and DeepSeek request. Both tools now use one strict object, as
browser_open and browser_snapshot already do; Core still enforces the fields
each operation requires.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-04T22:38:08.969401Z e278d75 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@wolf-maintainer wolf-maintainer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 — scoped root-schema compatibility fix; Core's strict RPC schemas preserve operation-specific validation, and the regression test covers every registered OMP tool.
Should-fix: add the required ## Unreleased changelog entry for the touched OMP package.
Verification note: bun test packages/omp/test/extension.test.ts could not start because this checkout lacks the typebox dependency.
Thanks for the focused fix.

Comment thread packages/omp/src/index.ts
@wolfiesch
wolfiesch merged commit 7ff6a3d into main Oct 4, 2026
8 checks passed
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