codex - 💡(How to fix) Fix Codex Desktop: pressing Enter occasionally sends the same message multiple times [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#19529Fetched 2026-04-26 05:15:49
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Timeline (top)
labeled ×3commented ×1

In Codex Desktop, hitting Enter once in the chat composer occasionally dispatches the same message 2-3 times. Confirmed it's not a hardware double-keypress — only happens in Codex Desktop, never reproduces in other apps with the same keyboard.

Error Message

error={"code":-32600,"message":"thread not found: <id>"}

Root Cause

In Codex Desktop, hitting Enter once in the chat composer occasionally dispatches the same message 2-3 times. Confirmed it's not a hardware double-keypress — only happens in Codex Desktop, never reproduces in other apps with the same keyboard.

Fix Action

Fix / Workaround

Summary

In Codex Desktop, hitting Enter once in the chat composer occasionally dispatches the same message 2-3 times. Confirmed it's not a hardware double-keypress — only happens in Codex Desktop, never reproduces in other apps with the same keyboard.

Expected

A single Enter dispatches exactly one message.

Code Example

[electron-message-handler] Request failed
  error={"code":-32600,"message":"thread not found: <id>"}
  method=thread/backgroundTerminals/clean
[electron-message-handler] Received turn/started for unknown conversation
  conversationId=<id>
RAW_BUFFERClick to expand / collapse

Summary

In Codex Desktop, hitting Enter once in the chat composer occasionally dispatches the same message 2-3 times. Confirmed it's not a hardware double-keypress — only happens in Codex Desktop, never reproduces in other apps with the same keyboard.

Symptoms in logs

Around the same window the desktop log shows a flood of:

[electron-message-handler] Request failed
  error={"code":-32600,"message":"thread not found: <id>"}
  method=thread/backgroundTerminals/clean
[electron-message-handler] Received turn/started for unknown conversation
  conversationId=<id>

Suggests internal thread/conversation state can get out of sync, after which the UI re-submits.

Expected

A single Enter dispatches exactly one message.

Environment

  • Codex Desktop 0.125.0-alpha.3
  • macOS 26.4.1 (arm64)

extent analysis

TL;DR

The issue can be mitigated by investigating and resolving the thread/conversation state synchronization issue in Codex Desktop.

Guidance

  • Review the electron-message-handler logs to understand the pattern of "thread not found" and "unknown conversation" errors, which may indicate a state synchronization problem.
  • Investigate the thread/backgroundTerminals/clean method to ensure it's correctly handling thread state and not causing the dispatch of duplicate messages.
  • Verify if the issue is specific to certain conversations or threads, which could help narrow down the cause.
  • Consider adding logging or debugging statements to track the state of conversations and threads in the chat composer to identify when the state becomes desynchronized.

Example

No specific code example can be provided without more information on the internal implementation of Codex Desktop.

Notes

The issue seems to be related to the internal state management of Codex Desktop, specifically with threads and conversations. Without access to the source code or more detailed logs, it's challenging to provide a precise fix.

Recommendation

Apply workaround: Implement additional logging and debugging to identify the root cause of the state synchronization issue, as upgrading to a fixed version is not mentioned as an option in the provided issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Codex Desktop: pressing Enter occasionally sends the same message multiple times [1 comments, 2 participants]