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)
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
- Domain
- devtools, documentation
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.shverified_cliaccepts onlycodex-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 recordsdeliveredwhile the wake is lost. A plain test message we queued is also still stuck there.
Proposed
- Docs (small, tested locally): in AGENTS.md section 8 and
codex-checkpoint.mdrule 6, say that a supervision wait the harness moved to a background session (session_idreturned) is not a live cycle. Keep waiting on it (write_stdinwith empty input) until it exits, and never end a turn while it runs with work under way. Patch: 2 files, +3 lines. - 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. - 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
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from kunchenguid/firstmate
-
ready-for-pr
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
kunchenguid/firstmate#8777 ·
Maintainers usually reply within 1 day
-
ready-for-pr
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
kunchenguid/firstmate#8759 · 1 comment ·
Maintainers usually reply within 1 day
-
ready-for-pr
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
kunchenguid/firstmate#8734 · 1 comment ·
Maintainers usually reply within 1 day
-
tests/fm-park.test.sh pending-hang test fails under a non-C locale because lane files sort differentlyPossibly taken @tiago-peixoto claimed this today. Openready-for-pr
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
kunchenguid/firstmate#8732 · 1 comment ·
Maintainers usually reply within 1 day
-
ready-for-pr
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
kunchenguid/firstmate#8729 · 1 comment ·
Maintainers usually reply within 1 day
All issues in kunchenguid/firstmate
Similar issues
-
Bash init calls `cygpath` unconditionally on Windows, which breaks non-Cygwin shells like `brush`Possibly taken @iliqiliev claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ajeetdsouza/zoxide#1381 ·
Maintainers usually reply within 5 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
linux-test-project/lcov#579 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
google-gemini/gemini-api-cli#247 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
The-AIOS/aios#405 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
dracut-ng/dracut#2843 · 4 comments ·
Maintainers usually reply within 1 day