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 8da7b5158 fix(tools): use noninteractive codex resume loop
8da7b5158 is described below

commit 8da7b5158e4b4668121a666f583fb878e3049a17
Author: vaughn <[email protected]>
AuthorDate: Sun Sep 13 18:43:37 2026 +0800

    fix(tools): use noninteractive codex resume loop
---
 tools/run-codex-loop.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tools/run-codex-loop.sh b/tools/run-codex-loop.sh
index 5b12f4f09..8555666ff 100755
--- a/tools/run-codex-loop.sh
+++ b/tools/run-codex-loop.sh
@@ -13,7 +13,9 @@ exec 9>"$lock_file"
 flock -n 9 || { echo "another Codex loop is already running: $lock_file" >&2; 
exit 2; }
 while [[ ! -e "$sentinel" ]]; do
     date -u +"%Y-%m-%dT%H:%M:%SZ loop-start" | tee -a "$log_file"
-    codex resume --last \
+    # `resume` starts the interactive TUI and requires a terminal.  `exec 
resume`
+    # is its non-interactive counterpart and is suitable for nohup/CI runners.
+    codex exec resume --last \
         --dangerously-bypass-approvals-and-sandbox \
         "$prompt" 2>&1 | tee -a "$log_file"
     status=$?

Reply via email to