Support MCP form input in full-access user threads (#37864)

## Why

Standard MCP forms can require user-entered values even when tool permissions are
otherwise auto-approved in full-access sessions.

## What changed

- Recognize the `openai/standard-form-input` client extension and surface
  non-approval forms in full-access, user-initiated root threads.
- Keep approval forms, automation and subagent threads, headless sessions, and
  clients without the capability on their existing decline or review paths.
- Treat the capability as client-only so it is not advertised to MCP servers,
  and enable it after session startup so required servers cannot block startup
  waiting for form input.

## Testing

Add unit and app-server coverage for accepted form round trips, declined cases,
approval metadata safeguards, resumed threads, and extension filtering.

GitOrigin-RevId: 053bfe397a5c79eceef90a81d13e2aca6353af43
This commit is contained in:
mchen-oai authored and copyberry committed 2026-08-10 18:20:12 +00:00
1 parent ee7815dad2
commit 4b0e2a0bff
14 files changed
+895 -71

No files matched your search

+1 -1
View File
@@ -191,7 +191,7 @@ impl Session {
codex_apps_tools_cache: self.services.mcp_manager.codex_apps_tools_cache(),
tool_catalog_cache: self.services.mcp_manager.tool_catalog_cache(),
codex_apps_tools_cache_key: connector_runtime_context_key(auth.as_ref()),
client_mcp_extensions: self.services.client_mcp_extensions.clone(),
client_mcp_extensions: self.services.client_mcp_extensions.for_mcp_servers(),
auth,
codex_apps_auth_manager,
elicitation_reviewer,