summaryrefslogtreecommitdiff
path: root/Omni
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2025-11-20 17:17:38 -0500
committerBen Sima <ben@bsima.me>2025-11-20 17:17:38 -0500
commit9fbfd8f4ebd85c53ce5a0b52715dff679e2cf80f (patch)
tree3445a7482f9ca01b0326b0122ad5fabe122d22bc /Omni
parent2fb355fa020f061adf344064e347fbcfd6cbd87a (diff)
fix: handle existing task branches in worker guide
- Workers should reuse existing branches if they crashed/restarted - Changed 'git checkout -b' to 'git checkout || git checkout -b'
Diffstat (limited to 'Omni')
-rw-r--r--Omni/Agent/WORKER_AGENT_GUIDE.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/Omni/Agent/WORKER_AGENT_GUIDE.md b/Omni/Agent/WORKER_AGENT_GUIDE.md
index ff33259..5797d85 100644
--- a/Omni/Agent/WORKER_AGENT_GUIDE.md
+++ b/Omni/Agent/WORKER_AGENT_GUIDE.md
@@ -56,9 +56,10 @@ task update t-123 in-progress
* If you find an unmerged dependency branch, check it out: `git checkout task/t-parent-id`.
* Otherwise, start from fresh live code: `git checkout omni-worker-1` (which tracks `live`).
-4. **Create Feature Branch**:
+4. **Create/Checkout Feature Branch**:
```bash
- git checkout -b task/t-123
+ # Try to switch to existing branch, otherwise create new one
+ git checkout task/t-123 || git checkout -b task/t-123
```
### Step 4: Implement