agent-orchestrator icon indicating copy to clipboard operation
agent-orchestrator copied to clipboard

bug(review): reviewer launch fails when system tmux is not installed — stale-pane probe of legacy socket is 'inconclusive' and aborts

Open andre0xFF opened this issue 1 month ago • 1 comments

Summary

On Linux, when no system tmux is installed, ao review trigger always fails. The reviewer never starts. AO bundles its own tmux (resources/tmux in the AppImage), but the reviewer launch path still probes the legacy/default system tmux socket. If that binary is missing, the probe returns "inconclusive" and the launch is aborted. It doesn't treat the missing session as absent.

Restarting the daemon doesn't help. Installing a system tmux and then restarting the daemon fixes it.

Environment

  • AO desktop 0.13.7 (AppImage, latest channel), Linux
  • No system tmux on PATH at first. Workers and the orchestrator ran fine on the bundled tmux.
  • Reviewer harness: claude-code

Steps to reproduce

  1. Linux host with no tmux installed system-wide (which tmux → not found).
  2. Spawn a worker and attach an existing PR to it: ao spawn --project <p> --name x --claim-pr <n>.
  3. ao review trigger <worker-session-id>

Actual

Review operation failed (REVIEW_OPERATION_FAILED)

ao review ls <worker-session-id> --json shows this on the failed run:

launch reviewer: reviewer replace stale pane: tmux runtime: set detach-on-destroy review-<worker-session-id>: runtime: liveness probe inconclusive: cannot inspect legacy system-socket session review-<worker-session-id> because system tmux is unavailable
  • The same error comes back on every retry, including with --pr, --harness claude-code, --rerun, and after ao stop and reopening the app.
  • No review-<worker-session-id> session existed anywhere. After installing tmux, tmux ls showed no default socket at all.

Expected

The reviewer launches on the bundled tmux, like worker and orchestrator sessions do. If system tmux is unavailable, there can't be a legacy system-socket session to replace, so the "stale pane" check should treat it as absent and not abort.

Workaround

Install a system tmux (e.g. brew install tmux), then restart the daemon. Installing tmux alone isn't enough: the daemon has to restart before it notices the binary. After that, ao review trigger started the review normally.

Related

#4776 (fixed in #4859): the same class of problem, where reconciliation stalls when the legacy/default tmux socket is absent. This looks like the same pattern still present in the reviewer "replace stale pane" path.

andre0xFF avatar Oct 13 '26 14:10 andre0xFF

I'd like to work on this

codebanditssss avatar Oct 19 '26 14:10 codebanditssss