commit 161079e9ff7c883aaf7ede08f54154ffc0786400
Author: Ben Sima <ben@bensima.com>
Date: Tue Dec 30 18:37:39 2025
Omni/Agent/Telegram.hs: Fix orchestrator to work in Ava's environment
Automated via pi-review.
Task-Id: t-290
diff --git a/Omni/Agent/Telegram.hs b/Omni/Agent/Telegram.hs
index 680ec15c..3a805f36 100644
--- a/Omni/Agent/Telegram.hs
+++ b/Omni/Agent/Telegram.hs
@@ -1713,7 +1713,7 @@ handleWorkOnCommand chatId mThreadId userName msgText =
-- | Run the orchestrator and report results to chat
runOrchestratorForChat :: Int -> Maybe Int -> Text -> IO ()
runOrchestratorForChat chatId mThreadId taskId = do
- let scriptPath = "Omni/Ide/pi-orchestrate.sh"
+ let scriptPath = "/home/ava/omni/Omni/Ide/pi-orchestrate.sh"
onProgress msg = do
putText <| "Orchestrator progress: " <> msg
void <| Messages.enqueueImmediate Nothing chatId mThreadId msg (Just "orchestrator") Nothing
diff --git a/Omni/Agent/Telegram/Orchestrator.hs b/Omni/Agent/Telegram/Orchestrator.hs
index 39a3839a..f5f87484 100644
--- a/Omni/Agent/Telegram/Orchestrator.hs
+++ b/Omni/Agent/Telegram/Orchestrator.hs
@@ -169,7 +169,8 @@ runOrchestratorProcess cfg = do
let createProc =
(Process.proc "bash" args)
{ Process.std_out = Process.CreatePipe,
- Process.std_err = Process.CreatePipe
+ Process.std_err = Process.CreatePipe,
+ Process.cwd = Just "/home/ava/omni"
}
result <-
diff --git a/Omni/Ide/pi-review.sh b/Omni/Ide/pi-review.sh
index 0d66a8a0..a26629d4 100755
--- a/Omni/Ide/pi-review.sh
+++ b/Omni/Ide/pi-review.sh
@@ -318,6 +318,7 @@ case "$VERDICT" in
SUBJECT="${SUBJECT:0:69}..."
fi
git commit -m "$SUBJECT" -m "Automated via pi-review." --trailer "Task-Id: $TASK_ID"
+ git push origin HEAD
task update "$TASK_ID" "done" --json > /dev/null
echo "Task $TASK_ID marked as done."
;;