diff options
| author | Omni Worker <bot@omni.agent> | 2025-11-21 04:56:41 -0500 |
|---|---|---|
| committer | Omni Worker <bot@omni.agent> | 2025-11-21 04:56:41 -0500 |
| commit | 02e676fd50212a8086b23f076d2a296ab0151ca6 (patch) | |
| tree | f1406cb7f8d674ebbd38b1bac3a16515c923d1b7 /Omni/Agent | |
| parent | 7b060df5743647bb9287479afe2fa062df56ac4d (diff) | |
fix(agent): ensure worker has task binary
Diffstat (limited to 'Omni/Agent')
| -rwxr-xr-x | Omni/Agent/start-worker.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Omni/Agent/start-worker.sh b/Omni/Agent/start-worker.sh index 2f81686..3e303b2 100755 --- a/Omni/Agent/start-worker.sh +++ b/Omni/Agent/start-worker.sh @@ -34,6 +34,18 @@ if [ ! -x "$TASK_BIN" ]; then echo "Warning: Task binary not found at '$TASK_BIN'. Assuming it's in path or build it first." 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 +fi + echo "Starting Worker Agent Loop" echo " Worker Path: $WORKER_PATH" echo " Amp Binary: $AMP_BIN" |
