fix(agents): launch opencode-acp binary-first (native binary on PATH), don't break on stale npm cache (#3836)

Co-authored-by: goose <goose@aaif.dev>
Co-authored-by: Benjamin <benjaminchamwb@gmail.com>
Co-authored-by: Carlos Florencio <carlosmflorencio@gmail.com>
Co-authored-by: João Salavisa <joao.salavisa@gmail.com>
This commit is contained in:
Jelloeater's Agent
2026-09-21 18:20:43 -04:00
committed by GitHub
parent cd08c50ca6
commit 65f27ecbff
22 changed files with 403 additions and 62 deletions
+7
View File
@@ -123,6 +123,13 @@ the control has no dot but remains usable.
4. Select **Update runtime**, **Roll back runtime**, or **Repair runtime**.
5. Wait for the exact version to prepare and pass its ACP capability probe.
OpenCode has one additional host-runtime rule. When the `opencode` executable
is on the Kandev host `PATH`, the update installs the selected `opencode-ai`
package version globally and the follow-up capability probe runs that same
executable. Containers, SSH executors, and hosts without that executable keep
using the managed `npx` runtime. This keeps the update result aligned with the
runtime that Kandev will use for host utility calls.
Kandev enables the action only after the backend validates the selected version
against the trusted package catalogue. It does not accept package names, npm
tags, prereleases, registry URLs, or command text. When the active version,