GitHub Issue

Subagent orchestration can mark dependent work complete without waiting for spawned plan/review agents

Discovered On Jun 5, 2026
Primary Metric open
## Summary LazyCodex / OMO subagent orchestration can spawn planning, review, or audit agents and then move dependent work forward without collecting or integrating their result. The user-visible failure is that root agents appear to "send a plan/review agent and naturally move on" instead of enforcing the documented short `wait_agent` polling + follow-up + inconclusive/respawn behavior before marking dependent work complete. ## Environment - LazyCodex version: `lazycodex-ai 4.7.5` - Codex version: `codex-cli 0.137.0` - OS: macOS 26.5.1 (Build 25F80) - Install method: `npx lazycodex-ai` / local OMO plugin cache - Relevant config: OMO plugin enabled; bundled rules inject Hephaestus / ultrawork / review-work guidance. Relevant skill docs: - `skills/review-work/SKILL.md`: says plan/reviewer agents should be spawned in background, root should poll with short `wait_agent` cycles, follow up after two waits with no substantive result, and not count silent/ack-only lanes as pass. - `components/ultrawork/directive.md`: same subagent reliability guidance. ## Reproduction This was observed from real LazyCodex session logs, not a synthetic repro. 1. Run a multi-step task that spawns a dependent audit/research/planning subagent. 2. Inspect the resulting session JSONL for `spawn_agent`, `wait_agent`, `send_message`/`followup_task`, `close_agent`, and `update_plan` ordering. 3. Observe cases where the root agent marks dependent steps complete, starts implementation, runs tests, or w...
View Raw Thread

Developer & User Discourse

tully-8888 • Jun 5, 2026
Additional evidence from a real Codex Desktop / OMO ULW session showing the sibling failure mode: the root did wait, but a reviewer agent stayed `running` until it was manually closed.

Session:

`/Users/tully/.codex/sessions/2026/06/05/rollout-2026-06-05T20-12-34-019e98c5-b59e-7860-a078-60652da7c1b8.jsonl`

Environment observed from the session and local machine:

- LazyCodex version: `lazycodex-ai 4.7.5`
- Session Codex CLI version: `0.137.0-alpha.4`
- Local `codex --version`: `codex-cli 0.136.0`
- OS: macOS 26.5, Darwin 25.5.0, arm64
- Surface: OMO ULW / Codex plugin subagent orchestration

Timeline:

```text
2026-06-05T18:22:29.208Z spawn_agent sheet_mirroring_final_reviewer
2026-06-05T18:22:47.246Z wait_agent {"timeout_ms":300000}
2026-06-05T18:27:47.334Z wait_agent output {"message":"Wait timed out.","timed_out":true}
2026-06-05T18:27:52.621Z list_agents output includes /root/sheet_mirroring_final_reviewer with agent_status "running"
2026-06-05T18:27:59.168Z close_agent sheet_mir...
tully-8888 • Jun 6, 2026
Additional current-session evidence from Codex Desktop on macOS showing the same subagent wait / reviewer orchestration failure.

Environment:
- LazyCodex npm latest checked with `npm view lazycodex-ai version`: `4.7.5`
- Codex CLI: `codex-cli 0.136.0`
- OS: macOS 26.5 build 25F71
- OMO plugin cache: `/Users/tully/.codex/plugins/cache/sisyphuslabs/omo/0.1.0`

Evidence from local Codex session logs on 2026-06-06:

1. Update-channel ULW session: root spawned multiple planning/research agents, then `wait_agent` repeatedly timed out. The root had to send a targeted `TASK STILL ACTIVE: return your concise plan output or BLOCKED...` follow-up to `/root/update_channel_plan` after timeouts. Session log: `/Users/tully/.codex/sessions/2026/06/06/rollout-2026-06-06T13-39-04-019e9c83-cf8d-7452-a0ec-51037a8989e5.jsonl` around lines 12-24, 65, 90, 207.

2. Teacher-feedback session: a `teacher_feedback_reviewer` agent was spawned, `wait_agent` timed out repeatedly, targeted follow-ups were sent, and ...
code-yeongyu • Jun 7, 2026
[sisyphus-bot] 처리 완료했습니다.

이 내용은 mirror PR을 직접 머지하는 대신 source-of-truth repo의 `packages/omo-codex`에 반영했습니다. 반영 PR은 code-yeongyu/oh-my-openagent#5031 이고, `dev`에 merge commit `0908f17980b27188b5ebabc1ae7907876564b619`로 머지되었습니다.

커버된 내용:
- spawned plan/review subagent가 완료되기 전 dependent work를 완료 처리하지 않도록 subagent-dependent transition barrier 추가
- 짧은 `wait_agent` polling / `update_plan` 완료 표시 조건을 명시
- `packages/omo-codex/plugin/test/subagent-guidance.test.mjs`로 회귀 테스트 추가

CI, `bun run test:codex`, typecheck, build, review-work까지 통과했으므로 이 mirror issue는 닫습니다.