mirror of
https://github.com/getpaseo/paseo.git
synced 2026-10-24 10:12:44 +00:00
* fix(acp): give daemon-spawned terminals the agent's launch environment A terminal the daemon opens for an ACP agent is a sibling of the agent process, not a child, so it inherits nothing from it. createTerminal built its environment from the requested terminal env alone, while the transport spawn a hundred lines down already overlays the session's launchEnv. The terminal therefore ran without PASEO_AGENT_ID or PASEO_AGENT_CWD, so `paseo heartbeat create` refused to run and `paseo run` lost the caller, creating child agents with no parent. When the daemon itself was started from inside another Paseo agent, the terminal saw that agent's id instead. Overlay launchEnv beneath the requested terminal env in both the argv and the single-string shell branch, matching the transport spawn's precedence. Fixes #5016 * test(acp): take createSession options as an object The helper had grown a second optional positional parameter, making callers read createSession(undefined, launchEnv). --------- Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>