Repository navigation
Feature request: supported local API to enqueue messages into existing desktop Codex threads #46797
shichenxi728
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Use case
I am building a personal local Python automation that observes incoming events and routes them to one persistent Codex thread per contact. I want those same threads visible in the desktop app so I can review drafts, add context, and take over manually. The automation and I need to contribute to the same conversation without forking it or quitting the desktop app.
What I tested
On macOS, using the desktop-bundled
codex-cli 0.155.0-alpha.9.2:codex app-serverover stdio, creates a thread, and successfully runs its first turn.thread/resumefor that thread.-32600:thread <redacted> already has an active writer.send_message_to_threadtool successfully appended a harmless test prompt to that same thread, and the model completed its response.This suggests there is a working desktop-owned submission path, but I have not found a documented equivalent for an independent local Python process. I have not established whether the ownership behavior is intentional or a bug, and have not tested quitting the desktop app in this reproduction.
Related ownership report: #37403 . This request focuses on a supported local automation submission API, rather than bypassing the single-writer lock.
Requested capability
Please provide a documented local CLI/API that routes submissions through the desktop-owned runtime:
The interface could be a CLI command, Unix socket, or SDK; I do not need a particular transport. I am not asking to disable writer ownership, manipulate session files, or depend on private desktop IPC.
Why it matters
Without a shared submission path, a successful event read can be followed by a failed thread resume. My automation needs its own durable outbox regardless, but retrying cannot solve a persistent ownership conflict. A desktop-owned queue would let local automations and a human collaborate in the same visible task without creating duplicate conversations.
If an existing supported interface already covers this workflow, a documented Python/CLI example would also resolve the request.
All reactions