Files
alzeo/docs
Hasan BasbunarandClaude Opus 5.5 558786c08c install-agent: an editor's session stays out of opencode-web's PATH
The service gets the caller's PATH and the installed unit's, so that an
update from a shorter PATH takes no tool away from the agent. From a VS
Code terminal that PATH carries VS Code's remote CLI, under a directory
named after the editor's build, and two directories of its Copilot Chat
extension: an update on 2026-10-03 wrote the three of them into the
unit, so the unit changed and opencode-web restarted, and the next VS
Code update removes the directory the unit names. The installed PATH
being kept on every run, they would have stayed there for good.

They are known by their layout, which the forks of VS Code share: the
remote CLI of a server (bin/remote-cli), extension storage
(User/globalStorage) and versioned extensions
(extensions/<publisher>.<name>-<version>). They are left out of the
caller's PATH and of the installed one, and a box whose unit holds some
is told which ones leave it. The order is the one v1.22.6 had: the
caller's directories first, so a newer tool first on the caller's PATH
stays first for the agent. An AGENT_PATH is taken as given on its run.

The tests remove their directory now, and put their stubs first on the
PATH. The new ones run the script's lines: the editor layouts and
look-alikes a character or a part away, a name with spaces, relative
and ~ entries, the note, AGENT_PATH, the caller's order and each
directory named once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 12:53:04 +02:00
..