Skip to content

[Bug]: WSL OMP orchestration worker is not reusable after worker_done #7377

Closed

Description

@euclodius

Operating system

Windows 11 + WSL2 Ubuntu

Orca version

v1.4.121

Details

An OMP agent launched from Orca's agent picker inside a WSL-backed git worktree accepts orchestration dispatches and can report worker_done, but the same worker stops being reusable after a completed dispatch.

Observed flow:

  1. Start an OMP agent from the Orca UI agent picker in a WSL git worktree.
  2. Dispatch a task with orca-ide orchestration dispatch --inject.
  3. The worker receives the task and sends worker_done.
  4. Dispatch a larger task to the same OMP terminal with --inject; after a clarification via decision_gate, it completes and sends worker_done.
  5. Try to dispatch a follow-up/correction task to the same terminal handle with --inject.

Actual result:

Cannot dispatch --inject to terminal <handle>: no recognized agent detected...

The terminal still exists and is writable. Its title remains something like:

π: Orca dispatched worker brief

Plain orchestration inbox delivery also appears stuck after completion:

  • orca-ide orchestration send ... creates a message, but it remains read: 0 and delivered_at: null.
  • orca-ide orchestration check --terminal <handle> --unread --inject formats the message, but still does not deliver it to the worker prompt.

Expected result:

The worker preamble says a worker should remain available after worker_done, poll orca orchestration check, and accept a fresh preamble + TASK if re-dispatched. The same OMP worker terminal should therefore remain recognized as an agent and be reusable for follow-up dispatches.

This may be related to WSL OMP status/inbox delivery, but it is a separate orchestration failure: injected dispatches work, worker_done works, and then the same OMP worker becomes non-reusable after completion.

Related: #7091

Activity

  1. euclodius commented on Jul 5, 2026

    @euclodius
    Author

    Retested on v1.4.123 with Windows 11 + WSL2 Ubuntu.

    Good news: part of this is now fixed/improved compared with the original report.

    What now works:

    1. Creating an OMP worker from the CLI with an explicit WSL worktree selector now opens as a native/recognized OMP agent tab, not just a plain terminal running omp:
    orca-ide terminal create \
      --worktree 'path:<wsl-unc-repo-path>' \
      --title "omp-worker-smoke" \
      --command "omp" \
      --json
    1. Two sequential orchestration dispatch --inject tasks to the same CLI-created OMP worker handle succeeded, and both returned worker_done.

    So the CLI-created worker path appears much better after #6750 / v1.4.123, as long as the caller uses an explicit path: or id: worktree selector.

    Still broken / remaining issue:

    Plain orchestration inbox delivery to that same OMP worker does not reach the OMP prompt.

    Repro:

    orca-ide orchestration send \
      --to <omp-worker-handle> \
      --subject "Inbox smoke 2" \
      --body "If you see this, reply to this message." \
      --json

    The message is created successfully, but OMP does not receive it or react to it. A later non-consuming check shows the message still unread and undelivered:

    {
      "subject": "Inbox smoke 2",
      "type": "status",
      "read": 0,
      "delivered_at": null
    }

    For comparison, running orchestration check --terminal <omp-worker-handle> --unread --inject --json from the coordinator returns a formatted message block to the caller, but that appears to read/consume the worker inbox entry from the DB; it does not inject into the worker terminal prompt.

    Notes:

  2. Jinwoo-H commented on Jul 10, 2026

    @Jinwoo-H
    Contributor

    Retested on Orca 1.4.131 with Windows + Ubuntu WSL and OMP 16.2.11.

    Verified:

    • the same WSL OMP terminal accepted three sequential orchestration dispatch --inject tasks after two worker_done completions;
    • the terminal remained recognized, connected, and writable;
    • the managed OMP extension produced a real working → done transition through the WSL-to-Windows hook path;
    • a plain inbox message to the idle worker received delivered_at and appeared in the OMP prompt.

    The original reuse failure is no longer reproducible, and the remaining status/inbox path is covered by #7642 and #7641. Closing as fixed.

  3. added theissue type on Jul 12, 2026
  4. guiguandotnet commented on Jul 15, 2026

    @guiguandotnet

    FYI: hit the same terminal-level symptom (no recognized agent detected on dispatch --inject, worker permanently un-dispatchable) on macOS with Orca 1.4.141 — i.e. after the 1.4.131 retest window that closed this. The trigger there differs (runtime restart kills the agent process inside surviving terminals; a relaunch via orca terminal send is never re-recognized — likely the #7797 detection gap rather than this issue's original WSL path). Filed with a full repro as #8808 rather than reopening, per the WSL scope of the retest here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions