Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
26.1013.31256
What subscription do you have?
$100
What platform is your computer?
Microsoft Windows NT 10.0.26300.0 x64
What issue are you seeing?
When I installed a MCP through a Custom Server adress using OAuth it fails and using the OAuth authentication and going back to Codex, it causes this error:
"OAuth state not found"
After that it says that the MCP was not installed and when I try to delete the Plugin through Plugins Screen and then the MCP Detailed Panel, it causes an error saying that the plugin cannot be deleted.
What steps can reproduce the bug?
- Create a Custom MCP that uses OAuth and is hosted on an URL
- Add the MCP to ChatGPT Web or Codex.
- Try to delete the plugin.
- This should cause an error at least on my system.
What is the expected behavior?
No response
Additional information
Subject: Cannot delete two custom MCP plugins; OAuth callback reports “state not found”
I created two custom MCP plugins in Codex/ChatGPT. Both permanent-deletion attempts fail:
The captured deletion response for the MCP is:
{
"detail": {
"type": "apps_sdk_error",
"error_code": "conflict",
"message": "Remove this app from the published plugin before deleting it."
}
}I only added custom MCP servers; I never published a plugin. Account-level plugin read/search/sharing lookups expose the two cloud entries but no separate parent plugin or editable association. Uninstalling MCP did not remove its definition or resolve deletion.
Installation also reports “OAuth state not found” after submitting the activation code. Codex logs show HTTP 404 from POST /aip/connectors/links/oauth/callback.
On October 16, 2026, we compared four completed OAuth round trips. In every case, the MCP returned the exact incoming state value to the exact requested callback URL. No state values, authorization codes, or tokens are included here.
Please investigate the callback-state lookup failure, identify and clear the blocking published-plugin association, and permanently delete both custom plugin definitions and their connections.
Thank you.
Activity
AlexWFreitas commentedon Oct 16, 2026
Codex Feedback Id is no-active-thread-01a14612-624e-79d3-a6a3-f24b7aaf0578
beifangzhishi-ops commentedon Oct 17, 2026
I can reproduce the permanent deletion failure on ChatGPT Web (October 17, 2026) with my custom OAuth MCP integration, even when OAuth authentication and MCP tool calls work normally.
Reproduction:
ccm2).I have observed the same failure with two private custom MCP plugins (
CCMandccm2). I checked the private plugin metadata and confirmed their definitions still exist after the UI errors.Important distinction from the initial report: My MCP connection works, so the inability to delete seems independently reproducible without an OAuth callback-state error. I have not captured a server-side deletion error code, so I cannot confirm that the backend returns the same
apps_sdk_error: conflictresponse reported above.Expected: The plugin owner should be able to permanently remove their own custom MCP plugin and its associated app, regardless of installation state.
Please investigate the deletion/association lifecycle and support permanently deleting these definitions.
Vizards commentedon Oct 17, 2026
Also reproduced on macOS (Codex desktop 26.1013.40934) and ChatGPT Web.
The affected private plugin was created from a custom OAuth MCP connection and later updated via package upload. It is now uninstalled, but its definition remains.
Attempts and results:
DELETE /ps/plugins/{plugin_id}returns HTTP 409: “Remove this app from the published plugin before deleting it.”USER / PRIVATE.This leaves the owner unable to remove the required app reference or delete the plugin. I cannot confirm whether the package update contributed to the problem. Please investigate the cleanup of personal canonical plugin/app associations.
loic-thomas commentedon Oct 17, 2026
I’m experiencing the exact same deletion issue with two personal custom MCP plugins created in ChatGPT: CntX and CntX Prod.
Both plugins cannot be permanently deleted through the ChatGPT Web UI, which displays: “Failed to delete plugin. Please try again.”
Backend error
I inspected Chrome DevTools (Network tab) and confirmed the following response:
Request:
DELETE https://chatgpt.com/backend-api/ps/plugins/plugin_asdk_app_6ad1f4905f208191840932e09e137ee3Status:
409 ConflictResponse:
{ "detail": { "type": "apps_sdk_error", "error_code": "conflict", "message": "Remove this app from the published plugin before deleting it." } }This is the exact same backend error reported in the original issue.
Additional troubleshooting
Environment
apps_sdk_error / conflictExpected behavior
Plugin owners should be able to permanently delete their personal custom MCP plugins and associated apps, even after uninstalling them, without encountering a blocking association that cannot be removed through the available UI.
Conclusion
This appears to be a reproducible backend plugin/app association lifecycle issue, rather than an OAuth-specific problem.
Since the HTTP status code and backend error message match the original report exactly, this provides an independent reproduction of the same deletion failure.
It would be helpful if the OpenAI team could investigate and provide a way to remove these orphaned or blocking associations so users can permanently delete their custom plugins.
AlexWFreitas commentedon Oct 17, 2026
Just to add more information from my side, the OAuth state not found bug appears to happen only in Codex, when I tried on ChatGPT Web the installation process seems to work normally for me.
I think the OAuth state not found error is not related to the Delete Plugin error.
After installing through ChatGPT Web, I was able to call the MCP tools in a chat despite those other bugs. Even in Codex.
If I try to install through Codex, it does not work and the MCP does not change state to installed because of the OAuth state not found error.
After trying again today, the delete plugin error is still happening, I now have 6 MCP / Plugins added that I cannot delete from my account.
cyberianin commentedon Oct 17, 2026
Additional reproduction: Firecrawl OAuth fails in Codex Desktop but succeeds in ChatGPT Web
I can independently reproduce the
OAuth state not founderror on Windows when connecting the official Firecrawl integration through ChatGPT/Codex Desktop.Importantly, the same integration can be connected successfully through ChatGPT Web, after which it also works in Codex Desktop.
Environment
Steps to reproduce
Open ChatGPT/Codex Desktop on Windows.
Attempt to connect Firecrawl from within the desktop application.
The application opens Google Chrome for the Firecrawl OAuth authorization flow.
Approve the requested access in the browser.
The authorization flow redirects back to the ChatGPT desktop application.
The desktop application displays the error:
OAuth state not foundThe connection initiated from Desktop is not successfully completed.
Successful control: ChatGPT Web
https://chatgpt.comdirectly in Google Chrome.Actual behavior
OAuth authorization initiated from the desktop application fails during the return/callback stage, even though the external authorization page works.
Starting the same connection from ChatGPT Web succeeds, and the resulting connection is usable in Codex Desktop.
This suggests that the issue is specific to the desktop-initiated OAuth state/callback flow rather than Firecrawl API functionality or the integration itself.
This is a hypothesis, not a confirmed root cause.
Expected behavior
The desktop application should be able to initiate and complete the Firecrawl OAuth authorization flow without requiring the user to separately open ChatGPT Web and connect the integration there.
If authorization fails, the application should report a meaningful error and allow the user to retry successfully.
Workaround
Connect Firecrawl through ChatGPT Web in a browser. Once authorization succeeds there, the integration becomes usable in Codex Desktop.
The workaround is functional, but it does not resolve the broken desktop connection flow.
Scope
This reproduction involves an official third-party integration, not a manually configured custom MCP server.
It provides an additional example of the same OAuth state error reported in this issue. The plugin deletion problem described in the original report was not tested.
AlexWFreitas commentedon Oct 18, 2026
More information:
I tried connecting to the same MCP Server using MCP Inspector and I had no troubles connecting to it and was able to call tools normally.
ptoledo commentedon Oct 18, 2026
Additional reproduction — ChatGPT Web, Linux, Firefox
I can independently reproduce the permanent deletion failure with two personal custom MCP plugins.
Environment:
Observed behavior:
Both plugins appear under Personal → Created by you, but neither is currently installed.
Attempting to permanently delete a plugin results in:
Couldn't delete plugin. Try again.Firefox Developer Tools confirms that the DELETE request returns HTTP 409 Conflict:
{ "detail": { "type": "apps_sdk_error", "error_code": "conflict", "message": "Remove this app from the published plugin before deleting it." } }Additional observations:
Expected behavior:
Users should be able to permanently delete their own private custom MCP plugins, regardless of their installation state.
This confirms the same backend conflict reported by other users, now also reproduced on Linux with Firefox.
yoonpooh commentedon Oct 19, 2026
Reproduced on ChatGPT Web, macOS, Chrome, October 20, 2026 (KST) with a personal custom MCP plugin.
One difference from the original report: the affected integration uses no OAuth. Its settings show authentication as None. The deletion failure therefore also occurs without an OAuth callback flow.
The private definition reports
scope: USER,discoverability: PRIVATE, and review statusDEVELOPMENT.Both deletion paths return HTTP 409:
DELETE /backend-api/ps/plugins/{plugin_id}DELETE /backend-api/aip/connectors/{app_id}Both return:
{ "detail": { "type": "apps_sdk_error", "error_code": "conflict", "message": "Remove this app from the published plugin before deleting it." } }I also tried:
Plugin upload must contain exactly the existing canonical app. No package update was accepted.Workspace plugin creation requires an active workspace.Current state: uninstall succeeds, but the private plugin/app definition remains under Personal → Created by you.
Please fix the personal canonical plugin/app deletion flow, or provide a supported cleanup operation that removes the blocking association and deletes both definitions. The owner currently cannot satisfy the deletion requirement: removing the app reference is itself rejected.
Account identifiers, integration IDs, endpoint URLs, and credentials are omitted from this public report.
AlexWFreitas commentedon Oct 20, 2026
I thought they fixed the problem but at least one of my MCP / Plugins is not able to be deleted.
AlexWFreitas commentedon Oct 20, 2026
{ "detail": { "type": "apps_sdk_error", "error_code": "conflict", "message": "App plugin has a non-generated release." } }I think I uploaded a zip file to update the plugin and this broke the delete plugin logic.
ptoledo commentedon Oct 20, 2026
I just tried to delete the plugins this morning and worked without problem.
AlexWFreitas commentedon Oct 20, 2026
I don't know if we should close this issue.
From what I am seeing the OAuth state not found bug on Codex still happens.
And there is another bug where you cannot delete a MCP / Plugin you created if you updated the version through a zip file on ChatGPT Web. Even if the uploaded zip file is the same as the one you downloaded from ChatGPT itself.
loic-thomas commentedon Oct 20, 2026
The earlier 409 ("Remove this app from the published plugin before deleting it.") is fixed for some of my personal plugins.
For two others that received a manual ZIP upload (“Upload new version” on ChatGPT Web), delete still fails with a different 409:
{ "detail": { "type": "apps_sdk_error", "error_code": "conflict", "message": "App plugin has a non-generated release." } }Reproduced on ChatGPT Web / Chrome / 20 Oct 2026:
DELETE /backend-api/ps/plugins/{plugin_id} → 409 + body above
DELETE /backend-api/aip/connectors/{app_id} → 409 + same body
Uninstall succeeds; permanent delete (plugin or app) does not.
Same trigger as @AlexWFreitas: uploading a ZIP to update a personal plugin appears to leave a non-generated release that blocks owner delete afterward — even when the ZIP matches a previously downloaded package.
AlexWFreitas commentedon Oct 27, 2026
Delete bug seems to be fixed now. I did not check the OAuth state not found since I stopped using MCP for now.
thoughtdna commentedon Nov 17, 2026
nope still blocked from deleting on my side.
jiangxiaoxu commentedon Nov 17, 2026
Adding a different deletion failure observed after deleting a Site (ChatGPT Web, Windows/Chrome, November 16, 2026).
The associated plugin record remained, but its canonical app/connector was missing:
GET /backend-api/ps/plugins/{plugin_id}-> 200.GET /backend-api/aip/connectors/{app_id}-> 404,Connector not found.DELETE /backend-api/ps/plugins/{plugin_id}-> 404:{"detail":{"type":"apps_sdk_error","error_code":"not_found","message":"Service connector instance not found."}}After confirming deletion, the dialog keeps spinning with both buttons disabled. Reloading restores interaction, but the plugin remains. Reinstalling fails with
Unable to load connector; uploading a package without the app reference is rejected withPlugin upload must contain exactly the existing canonical app.Expected: deleting a Site should not leave an undeletable plugin reference. If the plugin is retained, its owner should still be able to delete it, and failed deletion should clear the loading state.
This is a 404 variant, rather than the earlier 409 association conflict; a shared cause is unconfirmed.
Affected plugin:
plugin_asdk_app_sites_d850b2e64b14819180a370ce3ab55cd5App:
asdk_app_sites_d850b2e64b14819180a370ce3ab55cd5