feat: 支持与 Codex Desktop 共享 app-server 会话 - #8
Open
rree49 wants to merge 1 commit into
Open
Conversation
rree49
marked this pull request as ready for review
August 2, 2026 02:15
Owner
|
感谢pr,先暂时放着哈,最近有点忙还没空看,有空的时候我会看的! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
本机真实成功案例
2026-08-02 已在 macOS、微信私聊、Chat-Codex 和 Codex App 的真实环境完成验证:
本次验收以 Codex App 中“任务真实可见、历史可读、上下文可继续”为成功标准,不以 SQLite 记录或后台持久化状态代替 UI 结果。公开说明已省略微信联系人、routeKey 和 session ID。当前验证范围为 macOS 本机共享 app-server 模式。
背景
Chat-Codex 当前会单独启动一个 stdio
codex app-server。消息虽然可以写入 Codex 历史记录,但独立进程无法让微信端与 Codex Desktop 稳定地实时续接同一条会话。这个 PR 增加可选的共享 app-server 模式,让 Chat-Codex 与 Desktop 连接同一个 session,同时继续由 Chat-Codex 维护聊天 route 与 session 的归属关系。
主要改动
安全边界
clientId的 Desktop 用户消息。clientId,按 fail-closed 处理,避免消息回环。配置入口
CHAT_CODEX_APP_SERVER_ENDPOINT=unix:///absolute/path.sockCHAT_CODEX_APP_SERVER_DAEMON=1CHAT_CODEX_APP_SERVER_SOCKET=/absolute/path.sockCHAT_CODEX_MIRROR_DESKTOP_PROMPTS=1验证结果
npm run build:通过npm test:共 513 项,512 passed,1 skipped,0 failedgit diff --check:通过