Repository navigation
v6.9.1 — resumable Codex read-only jobs and Windows durable-job fixes / Codex 唯讀續接與 Windows 持久化工作修正
English
This is a retrospective Release entry: 6.9.1 was published to npm on 2026-10-20 without a GitHub Release at the time; the later release is v7.0.0. The behavior below describes 6.9.1.
Upgrading and compatibility
- After updating your installation, restart Claude Code or reconnect with
/mcpto load the updated server. - Replace retired
gpt-5.5selections or aliases withgpt-6.1-sol. Removing it from the candidate list does not block explicit requests: its prefix still routes to Codex, and the recorded post-retirement request failed with HTTP 400. - Existing panel users can run
claude plugin update ai-cli-jobs@tkflyc-ai-cli, then restart Claude Code, following the previous release's update procedure. - Review the documented auto-update trust model.
ontrusts every push toorigin: background installation (including lifecycle scripts), build, anddoctoralready execute downloaded code. Useononly where you trust the origin's writers; otherwise usecheck. The default did not change.
Codex read-only jobs can resume
Previously, combining session_id and read-only capabilities sent --sandbox to codex exec resume, which rejected it with exit 2. Resume now uses -c sandbox_mode='read-only' and explicitly overrides the original session's permissions. New read-only jobs keep --sandbox read-only and no longer use --ephemeral, so their sessions remain in ~/.codex/sessions for resumption. Unsupported capabilities are still refused; ordinary mode is unchanged.
Windows durable jobs and agy recovery
- When Claude Code closed an MCP server, its process-tree termination could also kill durable Claude, Codex, Grok, and agy jobs. A short-lived launcher now starts the runner, which leaves the server's process tree before dispatching the worker.
- Windows agy (ConPTY) now runs under an independent runner and is recorded in the job store. It can keep running after the original session closes and be adopted by a new session in the same project.
get_result,wait,peek, andkill_processwork, without duplicate jobs/list/panel rows. User termination remains failed / exit 143. POSIX agy and direct-api still cannot resume or be adopted. - Runner cleanup failures now leave a result rather than a permanently running job. Malformed or overlong ANSI sequences no longer swallow following text; ConPTY initialization codes alone no longer count as meaningful output in failure diagnostics.
Codex quota queries
query_usage now prefers live app-server JSON-RPC over scraping the TUI. Windows npm shims launch through Node/JS argument arrays. On failure, session fallback depends on fresh, and the response retains the reasons and version warnings. The TUI fallback waits for the /status echo before pressing Enter and clears/retypes at most once. Unreadable quota returns an error.
ai-cli-jobs panel 0.1.3 / 0.1.4
- 0.1.3: a missing
mcp__ai-cli__list_processesnow identifies both possible causes: ai-cli is disconnected (reconnect with/mcp, using server nameai-cli), orpermissions.denyremoved the tool. Reconnecting does not resolve a deny rule. Long hints were verified to wrap at terminal widths of 60–160 columns. - 0.1.4: adoption checks run every five seconds for the first 30 seconds, then every 60 seconds. The old single check at five seconds missed measured adoptions at 7, 11, and 7 seconds; the regression test requires an adoption at second 11 to appear by second 15.
Maintenance and validation
npm testnow runs scripts sequentially, continues after failures, and prints a final PASS/FAIL and timing summary. Any failure still makes the overall command exit 1. Unlistedverify-*.mjsscripts are rejected before execution unless explicitly excluded.- PTY list tests check job identity by
jobId, with PID and start-time diagnostics. The revised CI passed on all platforms, but Windows PID reuse remained an unproven explanation, not a confirmed product defect. - The release history records a second full run passing 31/31 after a timing-related restart-recovery failure, and 43 alias-config mutations killed by their intended assertions. Windows acceptance recorded real agy and Codex jobs surviving server tree termination and completing after adoption.
- README sections were reorganized, maintenance acceptance instructions moved to
tools/acceptance/README.md, and the SessionStart dispatch policy advanced to v2.1 with Astra-use and Codex-quota guidance.
Known limits in this version
POSIX agy and direct-api recovery remain unsupported. A natural exit racing with kill can be recorded as 143. An isolated ANSI ST can leave a backslash, and incomplete sequences beyond 4096 characters can leave payload/terminator noise. Tree termination during the launcher's brief lifetime can prevent a job from starting; the worker has not started and run has not returned, and cleanup later removes the directory rather than leaving it running.
Full details: 6.9.1 CHANGELOG.
繁體中文
這是補建的歷史 Release:6.9.1 於 2026-10-20 發佈到 npm,當時沒有建立 GitHub Release;之後的版本是 v7.0.0。以下描述的是 6.9.1 的行為。
升級與相容性
- 更新安裝後,重啟 Claude Code 或用
/mcp重連,載入新版 server。 - 將已退役的
gpt-5.5選擇或 alias 改為gpt-6.1-sol。從候選清單移除不等於攔截指名請求:該前綴仍路由到 Codex,退役後的實測請求回 HTTP 400。 - 已安裝面板者可沿用上一版流程,執行
claude plugin update ai-cli-jobs@tkflyc-ai-cli,再重開 Claude Code。 - 請核對文件新增的自動更新信任模型。
on等於信任origin的每次 push:背景安裝(含 lifecycle scripts)、build 與doctor當下就會執行下載的程式碼。只在信任 origin 寫入者時使用on,其他情況用check;預設值沒有改變。
Codex 唯讀 job 可以續接
舊版同時帶 session_id 與唯讀 capabilities 時,會把 --sandbox 傳給 codex exec resume,CLI 不支援而 exit 2。續接現在改用 -c sandbox_mode='read-only',明確覆寫原 session 權限。新開唯讀 job 保留 --sandbox read-only,不再帶 --ephemeral,session 會留在 ~/.codex/sessions 供續接。不支援的能力仍拒絕啟動,一般模式不變。
Windows 持久化 job 與 agy 接回
- Claude Code 關閉 MCP server 時,整棵行程樹終止可能連帶殺掉 Claude、Codex、Grok、agy 的持久化 job。現在由短命 launcher 啟動 runner,離開 server 行程樹後才派 worker。
- Windows agy(ConPTY)改由獨立 runner 持有並寫進 job store。原 session 結束後可繼續執行,由同專案的新 session 接管;
get_result、wait、peek、kill_process都能用,jobs/list/面板不重複列出。使用者終止仍為 failed/exit 143。POSIX agy 與 direct-api 仍不可接回或接管。 - runner 收尾失敗也會寫下結果,不再永遠 running。格式錯誤或超長 ANSI 序列不再吞掉後續文字;失敗診斷不再把 ConPTY 初始化控制碼當作有效文字輸出。
Codex 額度查詢
query_usage 優先用 app-server JSON-RPC 即時查詢,不再依賴刮 TUI。Windows npm shim 以 Node/JS 參數陣列啟動。失敗時依 fresh 決定 session fallback,保留原因與版本預警;TUI 備援等 /status 回顯才按 Enter,最多清空重打一次。讀不到額度就回 error。
ai-cli-jobs 面板 0.1.3/0.1.4
- 0.1.3: 找不到
mcp__ai-cli__list_processes時,提示同時列出 ai-cli 未連線(用/mcp重連,server 名稱須為ai-cli)與permissions.deny移除工具兩種原因。deny 規則不是重連就能解決。長提示已在 60~160 欄終端機驗證會換行。 - 0.1.4: 開場前 30 秒每五秒查接管,之後每 60 秒一次。舊版只查第五秒,錯過實測第 7、11、7 秒才完成的接管;回歸測試要求第 11 秒完成的接管在第 15 秒內出現。
維護與驗證
npm test改為依序跑完,失敗仍繼續後續腳本,最後印 PASS/FAIL 與耗時彙總;任何一支失敗整體仍 exit 1。未列入清單、也未明確排除的verify-*.mjs會在執行前被拒絕。- PTY 清單測試以
jobId判斷身分,保留 PID 與啟動時間診斷。修訂後 CI 全平台通過,但 Windows PID 重用仍是未證實的解釋,沒有認定為產品缺陷。 - 發版歷史記錄:重啟接回測試曾因計時失敗,第二輪完整測試 31/31 通過;alias-config 的 43 筆突變都由指定斷言抓到。Windows 真機驗收記錄 agy 與 Codex 在 server 整棵樹被終止後存活,接管後完成。
- README 重排章節,維護者驗收指令移到
tools/acceptance/README.md;SessionStart 派工政策升為 v2.1,補 Astra 使用範圍與 Codex 額度指引。
此版本的已知限制
POSIX agy 與 direct-api 仍不支援接回。自然退出與 kill 同時發生可能記成 143;孤立 ANSI ST 可能留下反斜線,超過 4096 字元的殘缺序列可能留下 payload/終結符雜訊。launcher 短暫存活期間若遇整棵樹終止,job 可能尚未啟動;此時 worker 沒開、run 沒回傳,目錄之後由清理掃描移除,不會留下 running。
完整內容見 6.9.1 CHANGELOG。