summaryrefslogtreecommitdiff
path: root/Omni
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2025-11-20 22:29:33 -0500
committerBen Sima <ben@bsima.me>2025-11-20 22:29:33 -0500
commitb6300d864161a647166646d3ed38495363ec04d8 (patch)
tree964f4aa88ec203c490baa7830922a36524d5f7b0 /Omni
parentedeb13dd997f879e74ae72b3f419ef63c372358f (diff)
fix(worker): handle rebase failures at start of loop
Diffstat (limited to 'Omni')
-rwxr-xr-xOmni/Agent/start-worker.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/Omni/Agent/start-worker.sh b/Omni/Agent/start-worker.sh
index 0b09d5e..5607f6d 100755
--- a/Omni/Agent/start-worker.sh
+++ b/Omni/Agent/start-worker.sh
@@ -57,7 +57,10 @@ while true; do
# We use 'git rebase' to keep history linear
git checkout omni-worker-1 >/dev/null 2>&1
# Rebase directly on local live branch (shared repo)
- git rebase live >/dev/null 2>&1 || echo "Warning: Rebase conflict. Resolve manually."
+ if ! git rebase live >/dev/null 2>&1; then
+ echo "Warning: Rebase conflict at start of loop. Aborting rebase and proceeding with local state."
+ git rebase --abort || true
+ fi
# B. Sync Tasks
sync_tasks