Assistant: say when an installed agent can't start, and how to reinstall it (#9034) (#9655)

* claim: #9034

* Assistant: say when an installed agent can't start, and how to reinstall it (#9034)

An agent whose program is found but fails its `--version` check without
printing a version (npm's opencode.exe left as a placeholder when the
package's setup script did not run, which Windows refuses with "not
compatible with the version of Windows you're running") was listed like
a working one, and connecting only said "The agent stopped." with the
system's message.

Discovery now keeps why the program did not start: the spawn error
(Windows' `%1` replaced with the program) or, through a `.cmd` shim, the
first stderr line or the exit status. A probe that times out still says
nothing. The picker shows "Installed, but it does not start: ...", and
connecting first explains it with the agent's install command and Refresh.
The control channel status carries `problem`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
PaddleStroke
2026-10-31 01:52:59 +00:00
committed by GitHub
parent c4538c53e1
commit d61ec60480
7 changed files with 238 additions and 24 deletions
+6 -1
View File
@@ -187,7 +187,12 @@ doesn't change the last known login state.
| GitHub Copilot CLI, Qwen Code, goose | listed with their install command when missing |
The panel lists agents that aren't installed with their install command and a **Copy** button.
**Refresh** looks again after you install one. **Test** starts an agent briefly, asks it for a
**Refresh** looks again after you install one. An agent whose program is there but fails its
`--version` check without printing a version (an install that didn't finish, such as an npm
install whose setup script didn't run, or a program built for another kind of computer) is
still listed, marked **does not start** with the system's reason. Connecting to it first says
why and gives its install command; reinstall it until `--version` works in a terminal, then
press **Refresh**. A check that runs out of time is not counted as a failure. **Test** starts an agent briefly, asks it for a
session and ends it again.
### Flatpak