orca icon indicating copy to clipboard operation
orca copied to clipboard

[Bug]: OMP launched in a WSL worktree has no live agent status

Open euclodius opened this issue 5 months ago • 1 comments

Operating system

Windows + WSL (Ubuntu 24.04)

Orca version

1.4.110

Details

Problem or use case:
OMP launched by Orca in a WSL-backed worktree appears as an agent/process, but its live working status does not update in the sidebar while it is actively working.

Observed behavior:

  • OMP is installed in WSL and launched from the Orca UI in a WSL worktree.
  • OMP starts successfully and is usable in the terminal.
  • Orca detects OMP as an agent/process.
  • The agent row stays in a neutral/gray state while OMP is working; no live working spinner/status is shown.
  • An unread marker can appear after output/completion, so terminal activity is visible, but live working status is not.
  • OMP version observed: omp/16.2.9.

Inspecting live omp processes from another WSL terminal shows that Orca's OMP status environment is not injected:

for pid in $(pgrep -x omp); do echo "== omp pid $pid =="; tr '\0' '\n' < "/proc/$pid/environ" | grep -E '^(ORCA_OMP_STATUS_EXTENSION|ORCA_PANE_KEY|ORCA_AGENT_HOOK_PORT)=' || true; done

Observed output shape:

== omp pid <pid> ==
== omp pid <pid> ==

No ORCA_OMP_STATUS_EXTENSION, ORCA_PANE_KEY, or ORCA_AGENT_HOOK_PORT values are present in the live OMP process environment.

Expected behavior:
OMP launched by Orca in a WSL worktree should receive Orca's managed OMP status extension/env so that live working/waiting/done status updates appear in the sidebar.

Notes:
This seems different from stablyai/orca#5718, which is about OMP sessions not appearing in Agent Session History / filter options. In this case OMP is visible as an agent, but live status does not update because the status extension/env appears to be missing for WSL-launched OMP sessions.

Possibly related PRs / code paths:

euclodius avatar Jun 30 '26 17:06 euclodius

Retested after the fix from #6974 on:

  • Orca 1.4.114
  • omp/16.2.12
  • Windows + WSL / Ubuntu 24.04
  • OMP launched from the Orca UI in a WSL worktree

The WSL env forwarding part now works. The live omp process has the expected Orca status environment:

ORCA_OMP_STATUS_EXTENSION=/mnt/c/Users/<user>/.omp/agent/extensions/orca-agent-status.ts
ORCA_PANE_KEY=<pane-key>
ORCA_AGENT_HOOK_PORT=<port>
WSLENV=...:ORCA_PANE_KEY/u:...:ORCA_AGENT_HOOK_PORT/u:...:ORCA_OMP_SOURCE_AGENT_DIR/p:ORCA_OMP_STATUS_EXTENSION/p:...

However, live sidebar status still does not update. The OMP row remains neutral/gray while OMP is actively working.

Further inspection shows that the live omp process is still launched without an explicit extension argument:

argv0=omp
extension_args=NONE

The managed extension file exists at the ORCA_OMP_STATUS_EXTENSION path and is readable from WSL, but the process has HOME=/home/dev while the extension path is under the Windows-side OMP agent directory:

ORCA_OMP_STATUS_EXTENSION=/mnt/c/Users/<user>/.omp/agent/extensions/orca-agent-status.ts
ORCA_OMP_SOURCE_AGENT_DIR=/mnt/c/Users/<user>/.omp/agent
HOME=/home/dev

There is no WSL-side extension directory at:

/home/dev/.omp/agent/extensions

So #6974 appears to fix WSL env injection, but OMP still does not seem to actually load the managed status extension in this WSL UI-launch path. It looks like Orca may still need to launch OMP with --extension "$ORCA_OMP_STATUS_EXTENSION" or otherwise ensure that OMP loads that exact managed extension path.

euclodius avatar Jul 01 '26 08:07 euclodius