Fix Codex wrapper missing resume helper error - #12656
austinywang wants to merge 2 commits into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (2)
💤 Files with no reviewable changes (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughThe wrapper no longer sends synthesized ChangesCodex wrapper hook behavior
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to Resume and --yolo launches retain session instrumentation through injected hooks, with no current merge-blocking risk identified. 🚥 Pre-merge checks | ✅ 24 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (24 passed)
✨ Finishing Touches 💡 2📝 Generate docstrings 💡
🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Note Pull Request opener @austinywang is not an author or co-author of any commit in this PR (commit identities:
I have read the CLA Document v2.2 and I hereby sign the CLA Warning 1 commit in this PR was authored by an email address that is not linked to any GitHub user, so we cannot tell whether the author has signed the CLA. Unlinked author:
To unblock this PR, do one of the following:
|
|
Mac fleet instructions for head JOB_JSON=$(~/.local/bin/cmux-ci submit --kind cmux --command 'CMUX_FLEET_BUILD_TAG=pr-12656-21c80a8b /Users/Shared/cmux-build-fleet/recipes/cmux.sh https://github.com/manaflow-ai/cmux.git 21c80a8bf5b25f81941c0e7839f957fe9435b30e' --artifact artifacts/cmux.app.zip --workspace https://github.com/manaflow-ai/cmux/pull/12656 --source-digest 21c80a8bf5b25f81941c0e7839f957fe9435b30e --cache-key cmux:pr-12656 --min-free-bytes 268435456000 --label cmux --label ram48)
JOB_ID=$(python3 -c 'import json,sys; print(json.load(sys.stdin)["id"])' <<<"$JOB_JSON")
~/.local/bin/cmux-ci wait "$JOB_ID" --receipt artifacts/fleet/$JOB_ID.json
~/.local/bin/cmux-ci publish-hq "$JOB_ID"Use an existing campaign job ID if one is already posted; do not submit a duplicate. A wait timeout leaves the remote job running. Published results will include an exact-head artifact link and timing/disk receipt. This recipe validates the macOS app only, not iOS or tests. Never use maclease or put credentials in a PR comment. |
|
Automatic catch-up: I tried to catch this branch up with
Nothing was pushed. Merge Automatic catch-up will not try this head again; a new push or |
|
Automatic catch-up: I tried to catch this branch up with
Nothing was pushed. Merge Automatic catch-up will not try this head again; a new push or |
Summary
codex --yoloprintscmux_codex_resume_session_id: command not foundbefore startup because #8537 restored an obsolete resume block after its helper was removed in #9185. Remove that block so Codex's injected hooks remain the source of session identity.Strengthen the existing behavioral harness to reject startup stderr and both direct and queued synthetic session-start calls. Add the exact
--yolorepro and isolate the caller's cmux environment. The regression test and fix are separate commits.Testing
python3 tests/test_codex_wrapper_resume_hooks.py: reproduced the missing-function error before the fix; passes after the fix across 24 launches, including fresh, resume, fork, opt-out, and injection failure.python3 tests/test_codex_wrapper_computer_use_mcp.py: passes with inheritedCMUX_*settings cleared.bash -n Resources/bin/cmux-codex-wrapperandgit diff --check: pass.codex-startupat21c80a8bf5: succeeded and downloaded.Demo
Before:
codex --yoloemitscmux_codex_resume_session_id: command not found.After: the harness reaches Codex with
--yolopreserved, SessionStart/Stop hooks injected, and empty stderr.Dogfood: open the
codex-startuptagged build and runcodex --yoloin a terminal.Summary by CodeRabbit
--yololaunches.