Codex App create_thread reports failure after creating the task, causing duplicates
What version of the Codex App are you using (From “About Codex” dialog)?
26.727.51351 (build 6119)
What subscription do you have?
Pro
What platform is your computer?
Darwin 25.5.0 arm64 arm
What issue are you seeing?
On macOS, the Codex App create_thread tool creates a task successfully but returns an error instead of the created thread ID.
Because the caller reasonably interprets the response as a failure and retries, duplicate tasks are created.
This occurred on five observed calls across two saved local Git projects. Subsequent list_threads calls confirmed that every supposedly failed creation had actually produced a usable task.
Observed errors:
Unknown projectId: <redacted>. Call list_projects to find available projects.
Something went wrong while running this tool.
Impact: the assistant reports that no task was created, retries the operation, and creates multiple active tasks with the same prompt.
What steps can reproduce the bug?
- Open a Codex task and call
list_projects. - Select a valid saved local Git project from the returned results.
- Call
create_threadwith that project ID, environment typelocal, and a normal prompt. - Observe that
create_threadreturns eitherUnknown projectIdorSomething went wrong while running this tool. - Call
list_threads. - Observe that the supposedly failed task was actually created and is running or idle normally.
- Retry
create_threadafter the error. - Call
list_threadsagain and observe an additional duplicate task.
Session ID: 019f5ea7-9c13-7112-8fbe-dd8ed80a63aa
Token limit usage: not provided
Context window usage: not provided
No code sample is required.
What is the expected behavior?
If task creation succeeds, create_thread should return the created threadId or clientThreadId.
If task creation fails, no task should be created.
The tool response and persisted task state must never disagree.
Additional information
Codex App: 26.727.51351 (build 6119)
macOS: 26.5.2 (build 25F84)
In one sequence, list_projects first returned a remote-style project ID that create_thread rejected. A subsequent list returned a local-style ID, but create_thread returned the generic error while still creating the task.
Five duplicate tasks were verified afterward and the extras were archived manually.
Related: #31119 describes a similar false-failure/duplicate-worker symptom on Windows, but that report involves missing handlers and systemError workers. This report is macOS-specific, uses different error responses, and the created tasks initialize normally.
2 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Independent reproduction on Windows/WSL:
26.727.6591.00.146.0-alpha.9.210.0.26200(64-bit)In this sequence,
create_threadreturnedSomething went wrong while running this tool, but each requested task appeared asynchronously afterward. Retrying the false failure produced four equivalent tasks total:019fc3a2-3481-7093-b36a-0d9e3b8afca0019fc3a2-491e-7461-8904-02d68729ee68019fc3a2-7971-7141-b736-adb9db1b6c1d019fc3a3-8dbe-71f1-83d3-3044d02e0dd5The final duplicate appeared after the first cleanup pass, so this was not merely a stale list result; accepted work was being acknowledged as failed and materialized later.
Related symptoms during the same sequence:
localandslingshothost identities.set_thread_title,send_message_to_thread, and archive operations sometimes returned the generic error even though the action was applied.wait_threadsinvocation returnedNo handler registered for tool: codex_app.wait_threads.Expected behavior: accepted creation returns
threadIdorclientThreadId; failed creation enqueues nothing; retrying the same logical creation is idempotent.Impact: an assistant following the tool result can launch several agents against the same project, risking concurrent edits and duplicate processes.
I also submitted an in-app-equivalent
feedback/uploadreport with the current session and diagnostics attached. Feedback/thread ID:019fc393-363a-7540-986d-0b382532cf56.