docs: clarify autoreview base prompt fallback · openclaw/openclaw@9eda9d1
steipete
·
2026-05-18
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -51,7 +51,11 @@ git fetch origin
|
51 | 51 | codex review --base origin/main |
52 | 52 | ``` |
53 | 53 | |
54 | | -Do not pass an inline prompt with `--base`; some CLI versions reject `--base` + `[PROMPT]` even though help text is ambiguous. If custom instructions are needed, prefer stdin prompt form (`codex review --base <ref> -`) as used by the helper. |
| 54 | +Do not pass any prompt with `--base`. Some Codex CLI versions reject both inline |
| 55 | +and stdin prompt forms, including the helper's `codex review --base <ref> -`, |
| 56 | +with `--base <BRANCH> cannot be used with [PROMPT]`. If the helper hits this |
| 57 | +error, run plain `codex review --base <ref>` and report that the helper prompt |
| 58 | +injection was skipped. |
55 | 59 | |
56 | 60 | If an open PR exists, use its actual base: |
57 | 61 | |
@@ -117,6 +121,7 @@ The helper:
|
117 | 121 | - supports `--dry-run`, `--parallel-tests`, and commit refs |
118 | 122 | - runs nested review with `--dangerously-bypass-approvals-and-sandbox --sandbox danger-full-access` by default |
119 | 123 | - injects maintainer-only OpenClaw validation policy into native Codex review when `OPENCLAW_TESTBOX=1` or `AUTOREVIEW_OPENCLAW_MAINTAINER_VALIDATION=1`, so local memory-heavy Node/Vitest checks are avoided in favor of Crabbox/Testbox proof |
| 124 | +- branch mode may fail on Codex CLI versions that reject `--base` plus the helper's stdin prompt; on that exact parser error, rerun plain `codex review --base <ref>` instead of falling back to a non-Codex reviewer |
120 | 125 | - keeps accepting `--full-access`; use `--no-yolo` or `AUTOREVIEW_YOLO=0` to opt out |
121 | 126 | - still accepts legacy `CODEX_REVIEW_*` env vars when the matching `AUTOREVIEW_*` var is unset |
122 | 127 | - prints `autoreview clean: no accepted/actionable findings reported` when the selected review command exits 0 |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。