You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Codex Desktop App freezes on the second message #44590
What version of the Codex App are you using (From “About Codex” dialog)?
26.903.9818.0
What subscription do you have?
plus
What platform is your computer?
Windows 11 x64
What issue are you seeing?
Só consigo enviar uma mensagem, na segunda interação o app fica com o botão de enviar girando e com isso eu tenho que abrir um novo chat. esse problema começou faz algumas semanas e hoje se intensificou ao ponto de ficar impossível trabalhar.
What version of the Codex App are you using (From “About Codex” dialog)?
26.903.9818.0
What subscription do you have?
plus
What platform is your computer?
Windows 11 x64
What issue are you seeing?
I can only send one message. On the second interaction, the app's send button keeps spinning, so I have to open a new chat. This problem started a few weeks ago, and today it got so much worse that it became impossible to work.
However, the HTTP 500 behavior I was seeing matches a known bug in MCP Java SDK 2.0.0, and that bug was explicitly fixed in 2.0.1.
The key point is that STATELESS itself was not the issue, because my server was STATELESS both before and after the fix.
My current working setup is still:
Codex Desktop
|
| HTTP
v
Spring AI MCP Server
STATELESS
|
v
PostgreSQL
Possible Codex-side robustness issue
There may still be a Codex-side robustness issue worth investigating.
An external MCP server returning an unexpected HTTP 500 during an optional MCP probe should ideally surface an MCP error and allow the conversation to continue.
It probably should not leave the entire Codex conversation permanently stuck in a busy/streaming state.
So even though updating the MCP Java SDK fixed the problem for me, Codex may benefit from more defensive handling when an MCP server fails during capability discovery or initialization.
For anyone using Spring AI / Java MCP servers and seeing similar Codex freezes, I would recommend checking the MCP server logs for:
Missing handler for request type: resources/list
Missing handler for request type: resources/templates/list
Missing handler for notification type: notifications/initialized
and checking the actual resolved MCP Java SDK version.
In my case, the combination that is currently stable is:
Spring AI 2.0.1
MCP Java SDK 2.0.1
STATELESS
resource = true
prompt = true
completion = true
tool = true
Activity
[-]App Desktop Codex travamento na segunda mensagem[/-][+]Codex Desktop App freezes on the second message[/+]github-actions commentedon Sep 10, 2026
English translation:
What version of the Codex App are you using (From “About Codex” dialog)?
26.903.9818.0
What subscription do you have?
plus
What platform is your computer?
Windows 11 x64
What issue are you seeing?
I can only send one message. On the second interaction, the app's send button keeps spinning, so I have to open a new chat. This problem started a few weeks ago, and today it got so much worse that it became impossible to work.
diagnostico-travamento-codex.txt
diagnostico-complementar-codex.txt
What steps can reproduce the bug?
I have no idea. I simply send a Hi, and then when I try to say something else, the message won't send.
What is the expected behavior?
Additional information
Chat Feedback ID
01a08c40-3796-7621-851a-0ef96bdffb9d
01a08c4d-34af-76e3-ab96-dbf0d16e2b49
github-actions commentedon Sep 10, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
faelp22 commentedon Sep 17, 2026
Update: I found the cause in my case
I wanted to share an update because this may help other users experiencing the same Codex Desktop freeze.
In my environment, the issue was related to an external MCP server used by Codex Desktop.
My setup is:
The important detail is that I was already using STATELESS before the problem was fixed, and I am still using STATELESS now.
So, in my case, switching from
STATELESStoSTREAMABLEwas not necessary.Previous configuration
Initially, my MCP server was configured approximately like this:
At that time, Spring AI 2.0.1 was resolving MCP Java SDK 2.0.0.
Codex Desktop still performed requests/probes such as:
The MCP server logs showed:
and:
and:
This correlated with Codex Desktop conversations becoming stuck.
In some conversations, the first interaction would complete successfully, but later messages could remain indefinitely in a busy/spinning state.
MCP Java SDK bug
The main issue appears to have been the behavior of MCP Java SDK 2.0.0 in STATELESS mode when receiving a request for which no handler was registered.
Instead of cleanly returning the expected JSON-RPC error, such as:
the missing handler could propagate as an HTTP transport failure / HTTP 500.
This is documented in the MCP Java SDK:
modelcontextprotocol/java-sdk#784modelcontextprotocol/java-sdk#800There is also a Spring AI issue related to the SDK dependency version:
spring-projects/spring-ai#6998What I changed
I kept:
but upgraded/overrode the MCP Java SDK from:
to:
I also changed my MCP capabilities so that they are now all enabled:
So the current working configuration is:
Result
After these changes:
resources/liststopped producing the HTTP 500 errorresources/templates/liststopped producing the HTTP 500 errornotifications/initializedmissing-handler warning disappearedSTATELESStoSTREAMABLEOne particularly interesting result was that some already-stuck conversations started working again after the MCP server was updated.
Maven note for Spring AI 2.0.1 users
In my dependency tree, Spring AI 2.0.1 was still resolving MCP Java SDK 2.0.0.
I explicitly aligned the MCP SDK to 2.0.1 using its BOM:
Then I verified the actual resolved versions with:
to make sure all MCP Java SDK modules were using
2.0.1.Important clarification
I cannot say with certainty that enabling:
was independently responsible for fixing the problem.
Two things changed in my environment:
However, the HTTP 500 behavior I was seeing matches a known bug in MCP Java SDK 2.0.0, and that bug was explicitly fixed in 2.0.1.
The key point is that STATELESS itself was not the issue, because my server was STATELESS both before and after the fix.
My current working setup is still:
Possible Codex-side robustness issue
There may still be a Codex-side robustness issue worth investigating.
An external MCP server returning an unexpected HTTP 500 during an optional MCP probe should ideally surface an MCP error and allow the conversation to continue.
It probably should not leave the entire Codex conversation permanently stuck in a busy/streaming state.
So even though updating the MCP Java SDK fixed the problem for me, Codex may benefit from more defensive handling when an MCP server fails during capability discovery or initialization.
For anyone using Spring AI / Java MCP servers and seeing similar Codex freezes, I would recommend checking the MCP server logs for:
and checking the actual resolved MCP Java SDK version.
In my case, the combination that is currently stable is:
and Codex Desktop has remained stable so far.
faelp22 commentedon Sep 17, 2026
I posted more details about this bug at: #44102 #29376