This is an automated email from the ASF dual-hosted git repository.

zyxxoo pushed a commit to branch refactor/rust-rewrite-design
in repository https://gitbox.apache.org/repos/asf/hugegraph.git


The following commit(s) were added to refs/heads/refactor/rust-rewrite-design 
by this push:
     new 5cea198c6 fix(tools): validate codex loop command and sentinel
5cea198c6 is described below

commit 5cea198c66944ecd6a1956ad3abd7e27fe967157
Author: vaughn <[email protected]>
AuthorDate: Sun Sep 13 16:15:06 2026 +0800

    fix(tools): validate codex loop command and sentinel
---
 tools/run-codex-loop.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/run-codex-loop.sh b/tools/run-codex-loop.sh
index 72f1eb961..5ccfee5cb 100755
--- a/tools/run-codex-loop.sh
+++ b/tools/run-codex-loop.sh
@@ -3,9 +3,10 @@ set -u
 
 repo_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
 sentinel="${CODEX_LOOP_SENTINEL:-/tmp/hugegraph-rust-rewrite-go}"
-prompt='继续原目标。不要询问是否继续,不要只汇报状态。只要还有可执行工作,就立刻修改、测试、归档证据、提交或推送。不要调用 blocked。只有 
Go/No-Go 清单明确为 GO 后,创建 /tmp/hugegraph-rust-rewrite-go 并停止。'
+prompt="继续原目标。不要询问是否继续,不要只汇报状态。只要还有可执行工作,就立刻修改、测试、归档证据、提交或推送。不要调用 blocked。只有 
Go/No-Go 清单明确为 GO 后,创建 ${sentinel} 并停止。"
 
 cd "$repo_dir" || exit 1
+command -v codex >/dev/null || { echo "codex CLI not found" >&2; exit 127; }
 while [[ ! -e "$sentinel" ]]; do
     codex resume --last \
         --dangerously-bypass-approvals-and-sandbox \

Reply via email to