fix: preserve autoreview prompt review status · openclaw/openclaw@b4cf06b
steipete
·
2026-05-18
·
via Recent Commits to openclaw:main
File tree
.agents/skills/autoreview/scripts
| Original file line number | Diff line number | Diff line change |
|---|
@@ -326,12 +326,15 @@ cleanup() {
|
326 | 326 | trap cleanup EXIT |
327 | 327 | |
328 | 328 | run_review() { |
| 329 | +local status=0 |
329 | 330 | mkdir -p "$(dirname "$review_output")" |
330 | 331 | if [[ "$codex_review_prompt_file" == true ]]; then |
331 | 332 | build_prompt_file || return |
332 | 333 | "${review_cmd[@]}" < "$prompt_file" 2>&1 | tee "$review_output" |
| 334 | + status=${PIPESTATUS[0]} |
333 | 335 | rm -f "$prompt_file" |
334 | 336 | prompt_file= |
| 337 | +return "$status" |
335 | 338 | elif [[ "$codex_review_stdin_prompt" == true ]]; then |
336 | 339 | printf '%s\n' "$codex_review_prompt" | "${review_cmd[@]}" 2>&1 | tee "$review_output" |
337 | 340 | else |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。