Codex 0.172: Codex captains silently lose watcher supervision (checkpoint gets backgrounded; Stop park pinned to 0.163 and its codex queue wake isn't consumed)

Open Beginner friendly
#8,796 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
github, shell

Research direction

For the small documentation change, read section 8 of AGENTS.md and rule 6 of codex-checkpoint.md. Update both to explain that a supervision wait moved to a background session with a returned session_id is not a live cycle: keep waiting with write_stdin until it exits, and do not end the turn while work is underway. The issue describes this as a locally tested two-file, three-line change; completion means both documents state that guidance.

Written by the indexing model from the issue text.

Description

What happened
We upgraded a Codex primary from codex-cli 0.163.0 to 0.172.0 (gpt-6.2-sol, Herdr backend). The home used the foreground-checkpoint protocol. On 0.172 the captain runs bin/fm-watch-checkpoint.sh --seconds 180 through tools.exec_command({cmd, yield_time_ms: 1000}). After the yield, Codex returns a session_id and leaves the command running as a background terminal. The model then ends its turn. The checkpoint finishes with no one listening and nothing re-arms the watcher. The captain sat idle for about an hour with about 37 tasks in flight. fm-guard printed WATCHER DOWN once, then only one-line reminders. The Codex Stop guard blocks just once per episode, because stop_hook_active lets the second stop through.

The model-free Stop park doesn't cover 0.172 either

  • fm-codex-stop-park.sh verified_cli accepts only codex-cli 0.163.0.
  • With 0.172.0 allowed and the session registered, the async Stop hook does fire, and the park arms and watches correctly. But delivery through codex queue --thread <id> --message ... returns rc 0 and only writes a row to ~/.codex/queue_1.sqlite (queued_items). The running TUI, which sits on an app-server daemon in 0.172, never consumes it. The park records delivered while the wake is lost. A plain test message we queued is also still stuck there.

Proposed

  1. Docs (small, tested locally): in AGENTS.md section 8 and codex-checkpoint.md rule 6, say that a supervision wait the harness moved to a background session (session_id returned) is not a live cycle. Keep waiting on it (write_stdin with empty input) until it exits, and never end a turn while it runs with work under way. Patch: 2 files, +3 lines.
  2. Park on 0.172: find a delivery path the 0.172 TUI actually consumes (perhaps codex queue --resume, or the app-server thread API), and verify it before adding 0.172 to the allowlist.
  3. Make the gap loud:
    • (a) warn at session start when a Codex primary's CLI is not on the park's verified list;
    • (b) let the Codex Stop guard keep blocking within a bounded budget, as Claude's does, while supervision is needed and no watcher is live;
    • (c) have the park confirm the queued item was consumed before recording delivered.

Happy to share logs or the patch.

Dominant language
Shell
Stars
9.1k
Forks
2.8k
Avg merge
2d 6h
Merged PRs (30d)
135

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from kunchenguid/firstmate

All issues in kunchenguid/firstmate

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.