Skip to content

codex-long-jobs v0.5.0

Latest

Choose a tag to compare

@zycdev zycdev released this 09 Nov 15:22
4a31fa2

v0.5.0 improves unattended continuation after background jobs finish. It builds on Vandermode's unloaded-thread wake implementation in PR #3, with incremental recovery and compatibility improvements in PR #5.

Changes

  • Prefer native codex queue --resume when the selected executable advertises it. Retain the RPC helper for older queue-capable CLIs and independent recovery after acceptance.
  • Resume an unloaded thread even when earlier input precedes the completion notification, while preserving queue order and active turns.
  • Recover helper launch failures and abnormal exits through the existing supervisor. Provide retry-wake without sending an accepted completion again.
  • Discover trusted executables through explicit overrides, PATH, and VS Code extension packages. Report the selected path, version, capabilities, and optional upgrade advice through doctor.
  • Expose independent wake observations through status, preserve bounded recovery deadlines, and retain diagnostics for unavailable client tools or approvals.
  • Fix the cancellation-test PID synchronization race and standalone runtime-test imports. Keep tmux as a conservative secondary transport.

Validation

The automated suite contains 152 tests. Validation covers Python 3.10 through 3.14, Ruff, ShellCheck, Skill metadata, and the subprocess-aware coverage gate. Ten complete stress rounds passed during development.

Real Linux VS Code Remote-SSH acceptance passed with CLI 0.164.0 and again with CLI 0.167.0, extension binary 0.164.0-alpha.11.1, and daemon 0.167.0. The tested cases include online and busy turns, an unselected conversation, a closed window, and a disconnected remote connection. In the native closed-window and disconnected cases, the thread initially reported notLoaded, the queue command reported no resume warning, and real model tools verified artifacts before reopening or reconnection. The maintainer confirmed the resulting replies afterward.

Isolated real CLI/server tests additionally cover FIFO, writer-lock conflicts, successful acceptance with a failed resume, concurrent recovery, and legacy compatibility. Those protocol tests use a local model fixture. A limited real tmux delivery and duplicate-suppression check also passed.

Compatibility and limits

  • Queue acceptance, turn startup, and successful follow-up work remain separate facts. An absent queue item does not prove completion.
  • Resume warnings can occur while another server owns the thread. Recovery respects writer locks and never approves requests or fabricates tool results.
  • Unattended continuation requires an available host, a reachable compatible daemon, access to the thread, and the tools needed by the turn. This release does not promise recovery from host reboot, shared-daemon termination, or every client-disconnection scenario.
  • The durable job-state schema remains version 1. Existing command execution, cancellation, logs, and accepted-delivery semantics are preserved.
  • Publication does not install the skill or upgrade Codex components. Existing jobs retain their loaded runtime; do not restart healthy jobs to update notification behavior.

See the Changelog, operating guidance, and dated acceptance records for details.