Repository navigation
Description
Summary
A new external Harness draft in a Remote SSH project can consume a prewarmed official Codex Thread. The first Turn then passes the codexhost/plugin-v1@… transport carrier to the official model endpoint and fails with:
The 'codexhost/plugin-v1@<redacted>' model is not supported when using Codex with a ChatGPT account.
Environment and evidence
- Client: macOS arm64, codexhost 0.17.4.
- Codex Desktop: 26.1103.41825 (build 25679).
- Remote SSH target: macOS arm64, with codexhost and Claude Code available.
- The affected RPC routing code is present in v0.17.4 and upstream main at
8fd0ab9b.
Read-only inspection found three failed creations recorded as official Threads, with no corresponding external Mapping Store records. All three Desktop creation logs reported usedPrewarmedThread=true. A preceding creation with a valid Claude Code mapping reported usedPrewarmedThread=false.
Reproduction
- Launch Codex Desktop through codexhost and open a Remote SSH project.
- Select Claude Code and a valid configured model.
- Leave the draft open long enough for native prewarming, then submit a message.
- When the native prewarm is reused, the Thread is created under official Codex ownership and the carrier is rejected as a model.
Expected: the selected Harness owns the new Thread and receives its first Turn.
Cause and proposed fix
renderer-host-rpc-routing.ts restores the selected carrier in startConversation.collaborationMode.settings.model. However, the native main-process prewarm pool matches by workspace, without comparing the selected Model. Rewriting the creation's Model does not invalidate a cached official Thread. Clearing the pool when changing selection also cannot exclude a later prewarm.
Desktop 26.1103's native preparation bypasses that pool when the creation has explicit config. Give only a registered external draft's creation a matching per-start config.model, preserving other config overrides. This keeps the normal native creation path, without changing official drafts or reconstructing the main-process Manager. The tradeoff is cold creation for these external RPC drafts.
Validation scope
A regression models delayed native preparation and official prewarm reuse on local, SSH and legacy Remote Control RPC routes; it fails before the fix. The focused suite passes after the fix. An isolated probe of the actual installed Desktop preparation function confirms that the original input allows prewarm reuse and the per-start Model config disables it. This probe makes no backend or model requests; an installed end-to-end submission with the fix has not been performed.
Activity
BytePioneer-AI commentedon Nov 13, 2026
PR #830 已修复外部 Harness 草稿误用官方预热 Thread 的路径并补充回归覆盖,现关闭此 Issue,真实 Desktop/SSH 提交尚未完成端到端验收;如升级后仍有问题,欢迎再次评论。