Skip to content

feat(server): register tools for generation and execution - #1302

Closed
AbhinRustagi wants to merge 3 commits into
abhin/autofix-responses-evefrom
codex/server-tool-executor
Closed

AbhinRustagi wants to merge 3 commits into
abhin/autofix-responses-evefrom
codex/server-tool-executor

Conversation

@AbhinRustagi

@AbhinRustagi AbhinRustagi commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Register tool metadata and handlers once with openUIClient.tools.create<Context>(registry). The returned definitions feed generation, and execute({ name, arguments, response }, { context, signal }) uses the same handlers at runtime. This avoids maintaining separate generation and execution registries.

Registered names run directly on the host server. Other names use the complete OpenUI response through /v1/app/execute; the existing loop handles sandbox continuations and returns the final value. Applications using saved MiniApp IDs authorize and load their response before execution. The generic API does not route artifact references to the dashboard endpoint.

  • Keep openUIClient.tools.execute({ tools, ... }) for existing handler maps; both APIs share one loop.
  • Project only serializable generation metadata: name, description, parameters and optional output.
  • Keep context, cancellation and deadlines per invocation, separate from request input. Typed contexts are required when declared.
  • Preserve concurrent tool batches, bounded rounds and calls, duplicate-call checks, cancellation and no replay after snapshot failures.
  • Document registration, generation, direct/script execution, route error handling, frontend-only tools and application-owned storage.

The base remains the shared client/Autofix branch. Changes are limited to the server executor, its public types, documentation and changeset; no Renderer or backend code changes.

Validation: all 45 existing package tests, type checking, lint, formatting, build, publint and package export/type checks pass. Fourteen inline mocked runtime checks cover metadata projection, trusted-context isolation, direct precedence, continuations, concurrent batches, falsy results, unknown and duplicate calls, no snapshot replay, cancellation, deadlines, execution limits and built-package imports. In-memory compiler checks verify public context inference and required inputs. No new test files or live backend requests.

@vercel

vercel Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
openui-docs Ready Ready Preview Oct 7, 2026 8:52am UTC

Request Review

@AbhinRustagi
AbhinRustagi force-pushed the codex/langgraph-autofix branch from f5427eb to 5a0ade8 Compare October 5, 2026 11:41
@AbhinRustagi
AbhinRustagi force-pushed the codex/server-tool-executor branch from 00e7d87 to 4c33e01 Compare October 5, 2026 11:41
@AbhinRustagi
AbhinRustagi added this pull request to stack #1303 October 5, 2026 11:42
@AbhinRustagi
AbhinRustagi force-pushed the codex/server-tool-executor branch from 4c33e01 to 2398d33 Compare October 6, 2026 09:30
@AbhinRustagi
AbhinRustagi removed this pull request from stack #1303 October 6, 2026 09:30
@AbhinRustagi
AbhinRustagi changed the base branch from codex/langgraph-autofix to abhin/autofix-responses-eve October 6, 2026 09:31
@AbhinRustagi
AbhinRustagi added this pull request to stack #1309 October 6, 2026 09:31
@AbhinRustagi
AbhinRustagi force-pushed the abhin/autofix-responses-eve branch from fc835b8 to cd001ac Compare October 6, 2026 09:37
@AbhinRustagi
AbhinRustagi force-pushed the codex/server-tool-executor branch from 2398d33 to 80c1fa0 Compare October 6, 2026 09:37
@AbhinRustagi
AbhinRustagi removed this pull request from stack #1309 October 7, 2026 07:02
@AbhinRustagi
AbhinRustagi force-pushed the abhin/autofix-responses-eve branch from cd001ac to 8be5cf4 Compare October 7, 2026 07:41
@AbhinRustagi
AbhinRustagi force-pushed the codex/server-tool-executor branch from 80c1fa0 to 6f3b61b Compare October 7, 2026 07:41
@AbhinRustagi
AbhinRustagi force-pushed the codex/server-tool-executor branch from 6f3b61b to 5b3f365 Compare October 7, 2026 07:51
@AbhinRustagi
AbhinRustagi force-pushed the codex/server-tool-executor branch from 5b3f365 to dd3c65b Compare October 7, 2026 08:03
@AbhinRustagi
AbhinRustagi force-pushed the abhin/autofix-responses-eve branch from deb56f0 to c813041 Compare October 7, 2026 08:03
@AbhinRustagi AbhinRustagi changed the title feat(server): add provider-independent client tool executor feat(server): register tools for generation and execution Oct 7, 2026

This branch was successfully deployed

1 active deployment
Preview — 2051e533 Deployed Oct 7, 2026 by vercel[bot]
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