Skip to content

[Bug] Remote SSH 与 Shared Host 共用 CODEX_HOME 时出现 already has an active writer #1300

Done

Description

@NIU-001-LIU

Area

Remote

Summary

Remote SSH listener 和同一台远端机器上的 Shared Host 会分别启动一个 codex app-server。当两边使用同一个 CODEX_HOME 时,SSH Desktop 创建或正在使用的原生 Codex Thread,可能无法由 Shared Host 上的外部 Harness(例如 Antigravity)继续发送消息。

Expected behavior

同一 CODEX_HOME 下,SSH Desktop 和 Shared Host 能对同一个原生 Codex Thread 发起请求并收到回复。SSH 断开后,Shared Host 继续运行。

Actual behavior

在 #1243 已报告的实机场景 中,另一端恢复同一个原生 Codex Thread 时收到 already has an active writer。核对 v0.28.1 源码,SSH listener 仍创建自己的原生后端,Shared Host 单独准备原生运行时。

Reproduction

  1. 在同一台远端机器、同一用户下运行 Shared Host 和 Remote SSH listener,两边使用同一个 CODEX_HOME。
  2. 从 Codex Desktop 经 SSH 打开或创建一个原生 Codex Thread,保持 SSH 会话连接。
  3. 从 Shared Host 上的外部 Harness 向这个 Thread 发消息,使 Shared Host 尝试恢复同一个 Thread。

codexhost version

v0.28.1 已核对发布标签的源码,实机复测待补。原始实机报告见 #1243。

Codex Desktop version

未知。

OS / Architecture

#1243 的环境是 Windows Desktop 经 SSH 连接 macOS Host。架构未知。

Installation

Other / Unknown

Harness / Version

原生 Codex,跨 Harness 示例为 Antigravity。具体 CLI 版本未知。

Connection

SSH

Related work

#1243 已提交共享原生后端的修复,仍在等待合并。这个 Issue 用来跟踪正式版的修复状态。

Activity

  1. iruriQ commented on Nov 28, 2026

    @iruriQ
    Collaborator

    PR #1243 已经合入主分支了,会在下个正式版上线,届时用 codexhost remote install --native-host shared 就能共享同一个原生后端。这单先关了,新版本试过还有问题随时重开。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions