summaryrefslogtreecommitdiff
path: root/Omni
diff options
context:
space:
mode:
authorOmni Worker <bot@omni.agent>2025-11-21 04:58:56 -0500
committerOmni Worker <bot@omni.agent>2025-11-21 04:58:56 -0500
commit7fdbe50a3666b3b55079ad52d9917b7f12895f83 (patch)
tree91212a79ec11ccf323cfa4b77c893df4bf28f0d8 /Omni
parent02e676fd50212a8086b23f076d2a296ab0151ca6 (diff)
fix(agent): build task binary in worker instead of copying
Diffstat (limited to 'Omni')
-rwxr-xr-xOmni/Agent/start-worker.sh12
1 files changed, 4 insertions, 8 deletions
diff --git a/Omni/Agent/start-worker.sh b/Omni/Agent/start-worker.sh
index 3e303b2..b277c91 100755
--- a/Omni/Agent/start-worker.sh
+++ b/Omni/Agent/start-worker.sh
@@ -36,14 +36,10 @@ fi
# Ensure worker has local task binary (required for sync-tasks.sh)
mkdir -p "$WORKER_PATH/_/bin"
-if [ ! -x "$WORKER_PATH/_/bin/task" ]; then
- if [ -x "$TASK_BIN" ]; then
- echo "Copying task binary to worker..."
- cp "$TASK_BIN" "$WORKER_PATH/_/bin/task"
- else
- echo "Error: No task binary found to copy. Please build 'task' in the main repo first."
- 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."
+ exit 1
fi
echo "Starting Worker Agent Loop"