Multi-AI Terminal v0.2.7
v0.2.7 — Codex persistent session runtime
English
- Codex runs now ride a persistent
codex app-serversession runtime by default: one shared JSON-RPC child serves all Codex nodes, with per-session thread management, streamed agent/thinking/tool events, token-usage capture, and clean turn interrupts (a steered kill now lands as a proper interrupt instead of a process kill). - Resuming a Codex session adopts the existing app-server thread (
thread/resume) instead of replaying from scratch, so follow-up turns keep full server-side context. - Robust lifecycle handling: idle reaper, EOF-drain with lazy respawn, connection-loss recovery (in-flight turns settle as interrupted/failed, sessions resume on the fresh child), stale-turn filtering, and approval requests auto-declined under the engine's non-interactive policy.
- Managed-runtime aware: when the managed Codex runtime is updated, the shared app-server recycles as soon as it goes idle, so the next run picks up the new binary.
- The legacy
codex execpath remains available as an explicit opt-out viaMAT_CODEX_RUNTIME=exec. - Validated against the real
codexCLI 0.144.0: protocol handshake smoke plus a full one-turn smoke through the production spawn path (streamed events, session ref, result text), alongside 48 provider tests covering the wire protocol end to end against a scripted fake app-server.
繁體中文
- Codex 執行預設改走常駐的
codex app-serversession runtime:所有 Codex 節點共用同一個 JSON-RPC 子行程,支援 per-session thread 管理、即時串流 agent/思考/工具事件、token 用量擷取,以及乾淨的回合中斷(kill 現在會以正確的 interrupt 收場,而不是直接砍行程)。 - 續接 Codex session 時會直接收養既有的 app-server thread(
thread/resume),後續回合保留完整的伺服器端上下文,不再從頭重放。 - 完整的生命週期處理:閒置回收、EOF 排空與惰性重生、連線中斷復原(進行中的回合會以 interrupted/failed 收斂,session 在新子行程上續接)、過期回合過濾,以及在引擎非互動政策下自動拒絕核准請求。
- 與受管 runtime 整合:更新受管 Codex runtime 後,共用的 app-server 會在閒置時立即回收,下一次執行自動使用新版本。
- 舊的
codex exec路徑保留為明確的退路,可透過MAT_CODEX_RUNTIME=exec切換。 - 已對真實
codexCLI 0.144.0 驗證:協定握手 smoke,加上走正式 spawn 路徑的完整單回合 smoke(串流事件、session ref、結果文字),並有 48 個 provider 測試以腳本化的假 app-server 端到端覆蓋 wire protocol。