Fix orchestrator to work in Ava's environment

t-290·WorkTask·
·
·
·Omni/Agent/Telegram.hs
Created4 months ago·Updated4 months ago·pipeline runs →

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.

Git Commits

161079e9Omni/Agent/Telegram.hs: Fix orchestrator to work in Ava's environment
Ben Sima4 months ago3 files

Timeline (2)

🔄[human]Open → InProgress4 months ago
🔄[human]InProgress → Done4 months ago