Fix orchestrator to work in Ava's environment

t-290·WorkTask·
·
·
·Omni/Agent/Telegram.hs
Created1 month ago·Updated1 month ago

Description

Edit

The orchestrator needs to: 1. Use full path to pi-orchestrate.sh: /home/ava/omni/Omni/Ide/pi-orchestrate.sh 2. Set working directory to /home/ava/omni 3. Push to origin after commit (pi-review.sh needs update)

Current Issues

  • Ava service runs with WorkingDirectory=/home/ava
  • Script path is relative: Omni/Ide/pi-orchestrate.sh
  • pi-review.sh commits but doesn't push

Changes Needed

Omni/Agent/Telegram.hs

Change scriptPath to absolute path or use Ava's omni dir.

Omni/Agent/Telegram/Orchestrator.hs

Add working directory to process creation:

let createProc =
      (Process.proc "bash" args)
        { Process.std_out = Process.CreatePipe,
          Process.std_err = Process.CreatePipe,
          Process.cwd = Just "/home/ava/omni"
        }

Omni/Ide/pi-review.sh

After git commit, add:

git push origin HEAD

This ensures Ava's commits get pushed to the shared repo.

Timeline (2)

🔄[human]Open → InProgress1 month ago
🔄[human]InProgress → Done1 month ago