Title: MCP Apps: isError form deferral suppresses PR forms in Codex desktop · Issue #3666 · github/github-mcp-server · GitHub
Open Graph Title: MCP Apps: isError form deferral suppresses PR forms in Codex desktop · Issue #3666 · github/github-mcp-server
X Title: MCP Apps: isError form deferral suppresses PR forms in Codex desktop · Issue #3666 · github/github-mcp-server
Description: Describe the bug On Codex desktop, GitHub MCP form deferral returns isError: true while instructing the assistant to wait for a form submission. The host classifies the call as failed and excludes the corresponding MCP App from rendering...
Open Graph Description: Describe the bug On Codex desktop, GitHub MCP form deferral returns isError: true while instructing the assistant to wait for a form submission. The host classifies the call as failed and excludes ...
X Description: Describe the bug On Codex desktop, GitHub MCP form deferral returns isError: true while instructing the assistant to wait for a form submission. The host classifies the call as failed and excludes ...
Opengraph URL: https://github.com/github/github-mcp-server/issues/3666
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"MCP Apps: isError form deferral suppresses PR forms in Codex desktop","articleBody":"### Describe the bug\n\nOn Codex desktop, GitHub MCP form deferral returns `isError: true` while instructing the assistant to wait for a form submission. The host classifies the call as failed and excludes the corresponding MCP App from rendering. The user therefore has no form to submit, the requested GitHub mutation never executes, and the assistant may end its turn waiting for an interaction that is unavailable.\n\nThis is a concrete mismatch between the server's pending-form signaling and the host's error-rendering policy. Related reports describe invisible or collapsing forms in Claude: #2823 and #3415. #3455 discusses retaining an opt-out. This report adds a Codex reproduction and a replay of the installed client's rendering gate; I have not established that the Claude reports have the same cause.\n\n### Affected version\n\n- Server: hosted remote GitHub MCP at `https://api.githubcopilot.com/mcp/`, not a local Docker deployment.\n- Version reported by MCP initialization during the controlled reproduction: `github-mcp-server/remote-a5f0ed2ba9b09e7e6bd87d7e8adb559158f83ff5`.\n- Client: Codex desktop on macOS, version `26.1027.61615`, build `24141`, production channel.\n- The app's updater reported `up_to_date`; no desktop upgrade was applied during diagnosis.\n- Observed on November 3, 2026. Both PR creation and PR update encountered form deferral.\n- The controlled MCP client advertised the `io.modelcontextprotocol/ui` extension with MIME type `text/html;profile=mcp-app`.\n\n### Steps to reproduce the behavior\n\n1. Connect the hosted GitHub MCP server to the affected Codex desktop version with MCP Apps support enabled and without the `mcp_apps_disable_form_deferral` feature flag.\n2. Use an existing test PR that the authenticated account can edit. Read its current title.\n3. Call `update_pull_request` with only `owner`, `repo`, `pullNumber`, and that same title. Using the unchanged title avoids an intentional content change. Example tool arguments:\n\n```json\n{\n \"owner\": \"YOUR_OWNER\",\n \"repo\": \"YOUR_TEST_REPO\",\n \"pullNumber\": 123,\n \"title\": \"THE_CURRENT_PR_TITLE\"\n}\n```\n\n4. Observe a result with `isError: true` whose text asserts that a form has been shown and directs the assistant to wait silently for submission.\n5. In the client, the call is marked failed and no usable form remains available to submit. The PR update has not executed.\n\nThe problem also occurred with `create_pull_request`. Reproducing with an existing PR is preferable to repeatedly attempting creation.\n\n### Expected vs actual behavior\n\n**Expected:** Deferring to a form leaves a visible, usable form, accurately reports that the GitHub mutation is still pending, and eventually delivers submission success, failure, or cancellation to the assistant.\n\n**Actual:** The pending-form response is treated as a failed tool result, which prevents form rendering. The response text asserts UI visibility without confirmation from the host. The assistant can then wait or stop while the user has nothing to submit.\n\n### Logs\n\nSanitized excerpt from an actual completed create-PR event; identifiers, arguments, and message text are omitted:\n\n```json\n{\n \"type\": \"McpToolCall\",\n \"server\": \"github\",\n \"tool\": \"create_pull_request\",\n \"mcpAppResourceUri\": \"ui://github-mcp-server/pr-write\",\n \"status\": \"failed\",\n \"result\": {\n \"isError\": true\n }\n}\n```\n\nThe original result also contained a text block telling the assistant that a form was already displayed and to wait for submission. The corresponding resource-read RPC returned no protocol error, but that alone does not prove successful UI rendering.\n\n### Root-cause evidence\n\n[NewToolResultAwaitingFormSubmission](https://github.com/github/github-mcp-server/blob/4bcdcdf8d7beee98c9448e73e257308280924cc4/pkg/utils/result.go) deliberately sets `IsError: true` to stop the agent continuing. Its comment assumes the host will still render UI from the tool's metadata regardless of the result. The helper also supplies an `awaiting_user_submission` structured status in this source revision.\n\nThat assumption does not hold in the installed Codex build. Inspection of the installed JavaScript bundle found this chain:\n\n1. The tool-event projection passes the recorded `failed` status into result normalization.\n2. Normalization produces a result with `type: \"error\"`.\n3. The MCP App eligibility/renderability logic explicitly excludes error results.\n4. The resource renderer returns its fallback branch when `shouldRenderMcpApp` is false, even if valid HTML is available.\n\nA local replay used the actual captured event and the unchanged normalization, error-detection, renderability, and resource-selection functions extracted from that installed bundle:\n\n| Replay input | Normalized result | Form renderable | Resource selection |\n| --- | --- | --- | --- |\n| Original recorded `failed` status | `error` | `false` | `fallback` |\n| Only the recorded status changed to `completed` | `success` | `true` | `html` |\n\nThis isolates a sufficient rendering blocker. The control changes the projected call status, not the live server response; it is not an end-to-end test of changing `isError` upstream. Unrelated eligibility predicates were allowed, text normalization was an identity operation for the captured text-only fixture, and the resource selector received synthetic valid HTML. No app binaries were modified. No live DOM instrumentation was performed, and additional UI problems are not ruled out.\n\nThe linked source revision is not claimed to be identical to the deployed remote build; the captured response independently establishes the problematic `isError: true` behavior.\n\n### Suggested fix\n\nPlease separate a successful handoff to a pending form from an actual tool error. One candidate is a non-error result carrying an explicit pending status and a clear indication that the GitHub mutation has not executed:\n\n```json\n{\n \"isError\": false,\n \"structuredContent\": {\n \"status\": \"awaiting_user_submission\",\n \"operationExecuted\": false\n }\n}\n```\n\nThe status already present in the helper is a useful starting point. Agents must not interpret a non-error handoff as a completed PR mutation. The client, form, and agent lifecycle should agree on pending, submitted, cancelled, and failed states. Also consider changing the response wording to describe a requested form handoff rather than asserting that the form is already visible.\n\nThis is a proposed direction, not a verified one-line fix: please test the form's own result handler, host rendering, submission, cancellation, genuine tool failures, and delivery of the final result. Simply allowing all failed-tool UIs or automatically executing an unsubmitted mutation would not address the underlying contract cleanly.\n\n### Verified workaround\n\nThe following request header avoids form deferral:\n\n```http\nX-MCP-Features: mcp_apps_disable_form_deferral\n```\n\nAgainst the same remote server and the same unchanged-title PR update, the baseline request deferred with `isError: true`; the flagged request executed successfully. After restarting Codex to reload the header, an actual in-chat GitHub MCP PR update also succeeded without waiting for a form. This restores writes but does not repair form rendering.\n","author":{"url":"https://github.com/JoyboyBrian","@type":"Person","name":"JoyboyBrian"},"datePublished":"2026-11-03T21:16:47Z","url":"https://github.com/github/github-mcp-server/issues/3666"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:fa7c45c9-7a97-6743-4f76-0bd16e29caf1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9838:2E0249:2F3B6B:3DEE14:6B06165C |
| html-safe-nonce | 8abcdeb0064c6a607cd2b1aa7913c07cab43894077f90e29e53bc73396060329 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODM4OjJFMDI0OToyRjNCNkI6M0RFRTE0OjZCMDYxNjVDIiwidmlzaXRvcl9pZCI6IjU2Njk4MDE2NjIyNzg0MDc3NzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7c357ea7d8d9e74bfabc3ac3267b09e3c3b91fc7d118a2f2ff8fddba39fabf16 |
| hovercard-subject-tag | issue:6191298781 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/github-mcp-server/3666/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fa51cbf27194f2fe3dad2a22de05602a950edced86b7abbf667c4447601482ec/github/github-mcp-server/issues/3666 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fa51cbf27194f2fe3dad2a22de05602a950edced86b7abbf667c4447601482ec/github/github-mcp-server/issues/3666 |
| og:image:alt | Describe the bug On Codex desktop, GitHub MCP form deferral returns isError: true while instructing the assistant to wait for a form submission. The host classifies the call as failed and excludes ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JoyboyBrian |
| hostname | github.com |
| expected-hostname | github.com |
| None | 97d4714e567728e1f85f88b0cf68c89f0f8a3dc41e8869af7aeb8195ad990374 |
| turbo-cache-control | no-preview |
| go-import | github.com/github/github-mcp-server git https://github.com/github/github-mcp-server.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 942771284 |
| octolytics-dimension-repository_nwo | github/github-mcp-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 942771284 |
| octolytics-dimension-repository_network_root_nwo | github/github-mcp-server |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 866f202ebf7ac5aff8f633417d9fd8a53818a977 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width