Live peer-client co-presence on Codex App Server: per-instance sync, or shared multi-listener? #21558
Replies: 4 comments
-
|
We're actively discussing the topics related to these questions. Any guidance that I provide at this time is likely to be invalidated in the future. I recommend picking a short-term solution that works for your exploration. Then be prepared to pivot in the future. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks! We'll keep building on the patched-fork dogfood path and keep the App Server delta isolated so we can pivot when the direction settles. If anything from the internal discussion becomes shareable later, happy to revisit and adjust. |
Beta Was this translation helpful? Give feedback.
-
|
Congrats on the Codex mobile preview. Exciting to see this workflow become first-party. I took a quick look through the recent app-server / remote-control PRs. It looks like the first-party path is now moving through managed app-server daemon + I also read the new remote connections docs. From the public docs, mobile setup currently runs through the Codex App host, and the setup flow is not available from the CLI or IDE Extension. SSH remotes also appear to route through the Codex App host. The small primitive I am still trying to track is the one the prototype here needed: live co-presence for an existing thread, where a TUI-owned session and a trusted peer client can observe/send against the same active thread without terminal mirroring, a second runner, or requiring the Codex App host. I do not see an obvious public PR that fully closes that specific piece yet. Is cc @tibo-openai in case this is useful context for the Codex mobile / CLI remote-control direction. |
Beta Was this translation helpful? Give feedback.
-
|
I’m seeing a related problem in my App Server workflow. When I send an automated message to an existing Codex session through App Server / terminal automation, the message is appended, but it does not refresh live in existing observers such as Codex App or CLI/TUI. I often need to close/reopen the App or CLI before the update becomes visible. My expected behavior is that a change made from one trusted client should be promptly visible across other observer clients. For example, if an automated tool appends a turn, both Codex App and CLI should be able to see it without restart. A shared App Server multi-listener model or a documented cross-client refresh/invalidation mechanism would solve this use case. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Background
Filed an RFC issue at #21551: #21551
It was closed as procedural: question rather than feature request. The maintainer reply clarified the current architecture, so I am reposting here as suggested.
Per @etraut-openai's reply: today, "each client starts a new instance of the app server, and these instances currently don't talk to each other. There is a current assumption that only one client will interact with a thread at a time."
What I built
https://github.com/wipcomputer/wip-codex-remote-control/tree/main/OAI
That packet includes a 30s demo video, screenshot, architecture notes, and a narrow Codex-only branch showing one possible implementation shape.
The demo shows live co-presence across TUI, desktop web, and phone web. Each surface originates a turn, and the other two observe it live on the same local thread.
The architecture question
Given the current per-instance non-sync model, the product question for live peer-client co-presence is which direction OpenAI prefers:
Either path could resolve co-presence, but they have different security and lifecycle implications: auth scope per listener, presence and heartbeat semantics, who owns the thread when the originator disconnects, sandbox ownership, and approval routing.
What would be useful
Happy to iterate, redirect, or close based on input.
Beta Was this translation helpful? Give feedback.
All reactions