diff options
| -rw-r--r-- | Omni/Agent/Subagent/Coder.hs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Omni/Agent/Subagent/Coder.hs b/Omni/Agent/Subagent/Coder.hs index 0f5a274..523b035 100644 --- a/Omni/Agent/Subagent/Coder.hs +++ b/Omni/Agent/Subagent/Coder.hs @@ -144,6 +144,9 @@ runBashCapture cmd = do -- | Phase 1: Initialize - check environment, detect broken state runCoderInit :: CoderConfig -> IO InitResult runCoderInit cfg = do + -- Pull latest changes + _ <- runBashCapture "git pull --ff-only 2>&1 || true" + -- Check git status (_, branchOut, _) <- runBashCapture "git branch --show-current" let gitBranch = Text.strip branchOut |
