Theme / v0.21.4

Oh My Codex (OMX)

Codex CLI 工作流增強層

基礎觀念

v0.21.1 → v0.21.4:Ralplan Advisory、Astra Defaults 與長 Session

理解 Ralplan Contract A 的非執行權限、gpt-6-astra default policy、tmux history 上限與 macOS arm64 runtime hydration。

Canonical planning chain

v0.21.x 的工作流應以:

$deep-interview → $ralplan → $ultragoal

理解。$team 是需要平行化時才加入的協調工具,不是每個任務都必經。

Ralplan Advisory / Contract A

v0.21.1 的 Ralplan Advisory 讓 Planner → Architect → Critic 能交換 evidence,但它不取得 execution authority、不做 global suppression、也不自動 handoff 到 implementation。

這個 distinction 很重要:planning/review 可以產生有價值的建議與 artifact,但不應因「reviewer 認為可以」就自動轉成 mutation permission。

Astra default policy

v0.21.4 把多數 agent tiers 的預設模型改為 gpt-6-astra,但只有在沒有 explicit model choice 時生效。

以下仍然優先:

  • existing model config
  • profiles
  • per-agent override
  • CLI / environment choice
  • provider-specific model names
  • custom instructions
  • reasoning effort defaults

所以這是「default policy change」,不是 migration 強制改 model。

長 Session 的 tmux history

v0.21.3 把 detached tmux history ceiling 從 500 提高到 5000 行,並提供:

export OMX_TMUX_HISTORY_LIMIT=5000

已存在的 tmux pane 不會因設定改變自動擴容;history-limit 是 pane 建立時決定。長 session 發現舊輸出被截斷時,要從新 pane / session 開始才會套用新 ceiling。

macOS arm64 runtime

v0.21.2 改善 omx-runtime cache hydration;global install / reinstall / update 都能取得經驗證 native runtime,而網路失敗是 bounded non-fatal,不會因可選 runtime 暫時抓不到就讓整個安裝失敗。

已知限制

v0.21.4 明確保留 #3623:doctor/setup 仍可能用 Codex CLI 已移除的 plugin_hooks feature flag 做推論,造成 misleading diagnostics 或 obsolete config。這是診斷問題;release notes 沒有證明 native hooks runtime 因此完全失效。