Files
openbot/scripts
b10aa58161 Start custom agents with the login shell PATH (#2158)
* Start custom agents with the login shell PATH

An app that Finder, the Dock, or a login item starts has a short PATH.
The login shell PATH found the agent command, but the agent process got
the short PATH, so "#!/usr/bin/env node" agents stopped with exit
code 127. Give the process, and Check agent, the PATH that the command
was looked up in. A PATH saved on the agent still wins.

Fixes #1824

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

* Do not mask the launch PATH in Check agent, and test Check agent

Check agent masks each value in its environment as a secret. Give the
launch PATH to Check agent as a separate field, so that only the saved
values are masked. A PATH that the user saved on the agent still wins.

Remove the launchPath injection parameters, because no test uses them.
Add the test:custom-agents:login-path script, and make the E2E script
also start the agent through Check agent.

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

* Give agents only absolute PATH folders, and stop E2E agents

A relative PATH folder such as "." would be read in the agent's working
folder, which is a workspace. The launch PATH now holds only absolute
folders, as the command lookup does.

The E2E script now runs the stop Effect of each client, so no agent
process stays after the script. Document the launch PATH in the
provider architecture notes.

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

---------

Co-authored-by: batool-fariha <farihabatool2023@gmail.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-15 10:16:02 +02:00
..
2026-08-25 16:40:20 +02:00