bug(review): reviewer launch fails when system tmux is not installed — stale-pane probe of legacy socket is 'inconclusive' and aborts
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,
latestchannel), Linux - No system
tmuxon PATH at first. Workers and the orchestrator ran fine on the bundled tmux. - Reviewer harness: claude-code
Steps to reproduce
- Linux host with no
tmuxinstalled system-wide (which tmux→ not found). - Spawn a worker and attach an existing PR to it:
ao spawn --project <p> --name x --claim-pr <n>. 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 afterao stopand reopening the app. - No
review-<worker-session-id>session existed anywhere. After installing tmux,tmux lsshowed 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.
I'd like to work on this