Skip to content

Accept input answers that carry MCP result metadata - #314

Merged
tnkuehne merged 1 commit into
mainfrom
fix/input-response-meta
Nov 22, 2026
Merged

tnkuehne merged 1 commit into
mainfrom
fix/input-response-meta

Conversation

@tnkuehne

@tnkuehne tnkuehne commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Why

In ChatGPT, approving a service's question in the native dialog shows the same question again, indefinitely: the answer never reaches the service. The MCP Apps form fallback in the same client works.

The platform parses each answer as a strict { action, content } object. MCP allows _meta on every result, and Codex, which ChatGPT uses for MCP, adds it to elicitation results when it has metadata for them (ElicitationResponse.meta, serialized unless None). An answer with _meta therefore fails the parse, counts as unanswered, and the service asks again.

What changes

  • inputResponse accepts and drops fields other than action and content. The answer handed to the service is unchanged, and content is still checked against the requested form.

Verification

  • New test: accepted and declined answers carrying _meta reach the service without it. It fails without the change.
  • pnpm check
  • pnpm exec vitest run apps/control-plane packages
  • RUN_SERVICE_TESTS=1 runtime service tests (workerd and celld)

Not covered by tests

  • ChatGPT's native dialog after deployment.

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge.

Summary

Answers carrying MCP result metadata now pass through inputResponse. Extra fields are dropped before the service receives the answer.

  • Service question answers can include extra fields without losing the choice.

Reviews (1) · Last reviewed commit: "Accept input answers that carry MCP resu..." · Reviewed by Greptile

An answer to an input request was checked as a strict object, so an answer
with _meta, which MCP allows on every result, counted as unanswered. Codex
adds _meta to some elicitation results: in ChatGPT, approving a question in
the native dialog returned the same question again. Answers now ignore
fields other than the action and content.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
widefleet-docs f2b0629 Nov 22 2026, 10:17 PM

@tnkuehne
tnkuehne merged commit d8efb6b into main Nov 22, 2026
15 checks passed
@tnkuehne
tnkuehne deleted the fix/input-response-meta branch November 22, 2026 22:19
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