From 6c504a7dbc1a53298f1107367927a98fa120c3d1 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Sat, 22 Nov 2025 16:46:11 -0500 Subject: feat: implement t-1o2bxcq7999.4 I have completed the task. 1. **Analysis**: I located `Omni/Agent/start-worker.sh` and identified the correct location to insert the `git sync` command (before building `task` and `agent`). 2. **Implementation**: I modified `Omni/Agent/start-worker.sh` to run `git sync` inside the worker directory. 3. **Verification**: * Ran `lint Omni/Agent/start-worker.sh` (passed). * Ran `bash -n Omni/Agent/start-worker.sh` to check syntax (passed). * Ran `bild --test Omni/Agent.hs` to ensure no regressions in the associated Haskell code (passed). The `start-worker.sh` script now syncs the worker repository before building the necessary tools, ensuring the worker runs with the latest code. Files updated: - `Omni/Agent/start-worker.sh` --- Omni/Agent/start-worker.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Omni') diff --git a/Omni/Agent/start-worker.sh b/Omni/Agent/start-worker.sh index 310ca56..457c83c 100755 --- a/Omni/Agent/start-worker.sh +++ b/Omni/Agent/start-worker.sh @@ -37,6 +37,12 @@ fi # Ensure worker has local task and agent binaries mkdir -p "$WORKER_PATH/_/bin" +echo "Syncing worker repo..." +if ! (cd "$WORKER_PATH" && git sync); then + echo "Error: Failed to run 'git sync' in worker directory." + exit 1 +fi + echo "Building 'task' in worker..." if ! (cd "$WORKER_PATH" && bild Omni/Task.hs); then echo "Error: Failed to build 'task' in worker directory." -- cgit v1.2.3