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 a92da16a3 fix(tools): avoid codex thread writer conflicts
a92da16a3 is described below
commit a92da16a31a27a7835b8b03932519b54159e1521
Author: vaughn <[email protected]>
AuthorDate: Sun Sep 13 18:44:29 2026 +0800
fix(tools): avoid codex thread writer conflicts
---
tools/run-codex-loop.sh | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/tools/run-codex-loop.sh b/tools/run-codex-loop.sh
index 8555666ff..1a2f1acdf 100755
--- a/tools/run-codex-loop.sh
+++ b/tools/run-codex-loop.sh
@@ -13,9 +13,10 @@ 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"
- # `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 \
+ # A live interactive session owns the latest thread, so resuming it from a
+ # second process causes a thread-store conflict. Start an independent,
+ # non-interactive worker for each iteration instead.
+ codex exec \
--dangerously-bypass-approvals-and-sandbox \
"$prompt" 2>&1 | tee -a "$log_file"
status=$?