Skip to content

fix(agent): keep browser tool schema object-based - #265

Merged
iamjr15 merged 1 commit into
mainfrom
fix/browser-action-provider-schema
Aug 12, 2026
Merged

fix(agent): keep browser tool schema object-based#265
iamjr15 merged 1 commit into
mainfrom
fix/browser-action-provider-schema

Conversation

@iamjr15

@iamjr15 iamjr15 commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Why

Anthropic rejects top-level union tool schemas before inference. The browser action contract became a Zod union, which serialized without a top-level JSON Schema object and caused every app-builder run to retry the same deterministic provider error for roughly 42 seconds before failing.

What changed

  • expose one strict top-level object schema to model providers
  • retain method-specific validation against the canonical browser driver union
  • omit placeholder null fields while preserving exact action requirements

Verification

  • pnpm lint
  • pnpm typecheck
  • pnpm turbo build --force
  • pnpm deadcode
  • pnpm architecture:check
  • pnpm turbo skills:build
  • converted the tool schema with Zod and verified type: object
  • verified click/fill inputs pass and incomplete/unknown-field inputs fail

Production browser acceptance will run after merge and deployment.

@vercel

vercel Bot commented Aug 12, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
cheatcode Skipped Skipped Aug 12, 2026 9:10pm

@iamjr15
iamjr15 merged commit 2b390cf into main Aug 12, 2026
6 checks passed
@iamjr15
iamjr15 deleted the fix/browser-action-provider-schema branch August 12, 2026 21:12
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