From 872dd5972b48df517e7334958f6c43de5e5a3820 Mon Sep 17 00:00:00 2001 From: Samuel K Date: Sat, 24 Oct 2026 12:52:31 -0600 Subject: [PATCH] refactor(desktop): pass --skip-platform in workspace watcher --- desktop/src/main/__tests__/watcher.test.ts | 6 +++++- desktop/src/main/watcher.ts | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/desktop/src/main/__tests__/watcher.test.ts b/desktop/src/main/__tests__/watcher.test.ts index afd073f26f..1c1b3db868 100644 --- a/desktop/src/main/__tests__/watcher.test.ts +++ b/desktop/src/main/__tests__/watcher.test.ts @@ -396,7 +396,11 @@ describe("Watcher job broadcasts", () => { workspaceJobs.finish("ws", generation, originalError), ).resolves.toBeUndefined() expect(refresh).toHaveBeenCalledOnce() - expect(cli.run).toHaveBeenCalledOnce() + expect(cli.run).toHaveBeenCalledExactlyOnceWith([ + "workspace", + "list", + "--skip-platform", + ]) expect(cli.runRaw).toHaveBeenCalledOnce() expect(workspaceJobs.get("ws")).toMatchObject({ state: outcome === "failure" ? "failed" : "succeeded", diff --git a/desktop/src/main/watcher.ts b/desktop/src/main/watcher.ts index 8dde979e41..9fe4af6f7a 100644 --- a/desktop/src/main/watcher.ts +++ b/desktop/src/main/watcher.ts @@ -265,7 +265,11 @@ export class Watcher { const workspaces = await this.queryWithFallback( daemon ? () => daemon.listWorkspaces() : undefined, () => - this.deps.cli.run(["workspace", "list", "--skip-pro"]), + this.deps.cli.run([ + "workspace", + "list", + "--skip-platform", + ]), ) if (generation !== this.deps.workspaceJobs.epoch) { if (strict)