Repository navigation
fix(autoreview): diagnose Codex launcher isolation failures - #131002
Merged
Merged
Conversation
vincentkoc
marked this pull request as ready for review
August 27, 2026 15:54
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
vincentkoc
force-pushed
the
chore/sync-autoreview-codex-preflight
branch
from
August 27, 2026 16:06
6666672 to
d65ac59
Compare
Member
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Fixes an issue where autoreview could report that the Codex CLI was missing even though a PATH launcher worked in the caller environment. The launcher could depend on the caller's
CODEX_HOME, then fail only after autoreview replaced that environment for the isolated review runtime.Why This Change Was Made
Syncs the complete canonical autoreview skill from
openclaw/agent-skills@1b52afd0954511b8bfdf680361b1f4bed69f1355(openclaw/agent-skills#194). Codex now gets a local--versionpreflight under the same isolated HOME, XDG, CODEX_HOME, and PATH shape used by the real review before any provider call or auth staging.The failure names both the selected and resolved launcher and points to
--codex-bin,CODEX_BIN, or PATH correction. No fallback launcher search or auth mutation was added.User Impact
Developers get an immediate, accurate setup error when a Codex wrapper cannot survive autoreview isolation. Passing an explicit standalone Codex binary continues to work.
Evidence
SKILL.mddiffers only by OpenClaw-required Markdown table padding;oxfmt --checkpasses.openai/codex@5f49aba876922d6f2f55caa153bbb0ed1b46feba:scripts/install/install.sh:15-21installs the publiccodexcommand under$HOME/.local/binwhile locating standalone packages under${CODEX_HOME}/packages/standalone.codex-rs/install-context/src/lib.rs:273-306classifies a standalone install against the canonical CODEX_HOME package tree.codex-rs/arg0/src/lib.rs:157-173performs CODEX_HOME-sensitive dotenv and PATH alias startup before dispatch.codex-rs/cli/src/main.rs:99-112,1038-1056declares Clap's local--versionpath and parses it before entering any provider-backed command flow.codex-cli 0.150.1.uv run --python 3.12 python .agents/skills/autoreview/tests/test_autoreview_hardening.py: 160 passed, 1 skipped.uv run --python 3.12 python .agents/skills/autoreview/scripts/autoreview_test.py: 32 passed.python3 -m py_compile ...: passed.uvx ruff check --select E9,F63,F7,F82 ...: passed.git diff --check origin/main...HEAD: passed.CODEX_HOME, and returned actionable--codex-bin/CODEX_BINguidance before review execution.--codex-bin "$HOME/.local/bin/codex"passed the same isolated dry-run preflight.patch is correct, 0.98 confidence.Production/test/docs delta:
AI-assisted: yes. The change was independently audited, plan-reviewed, implemented in the canonical skill repository, reviewed by ClawSweeper, and then synced here.