Fix macOS packaged CLI daemon Dock icons (#1759)

* Fix macOS CLI daemon relaunch path

* test(cli): mock helper existence in daemon launch test

* fix(desktop): launch packaged CLI through Helper

The packaged macOS CLI shim entered through the main app executable, so daemon supervision inherited app lifecycle behavior and surfaced Dock icons. Make Helper the required macOS CLI runtime, keep daemon relaunches on process.execPath, and cover cold bundled CLI daemon starts in release smoke.

---------

Co-authored-by: Mohamed Boudra <boudra.moha@gmail.com>
This commit is contained in:
yz
2026-06-29 20:45:53 +02:00
committed by GitHub
co-authored by Mohamed Boudra
parent f94ec0e430
commit efd7ab3420
4 changed files with 274 additions and 7 deletions
@@ -97,6 +97,7 @@ describe("local daemon launch supervision", () => {
await Promise.all(
tempRoots.splice(0).map((root) => rm(root, { recursive: true, force: true })),
);
vi.restoreAllMocks();
});
test("foreground start spawns supervisor-entrypoint instead of server/index", async () => {