From fdaa5a0c3da124920fa0234f76bf82bde946f61e Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Mon, 4 May 2026 14:03:16 -0700 Subject: [PATCH] fix(update): exit post-core resume without result path --- src/cli/update-cli.test.ts | 1 + src/cli/update-cli/update-command.ts | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/cli/update-cli.test.ts b/src/cli/update-cli.test.ts index 480b1b64466..90590a5475a 100644 --- a/src/cli/update-cli.test.ts +++ b/src/cli/update-cli.test.ts @@ -777,6 +777,7 @@ describe("update-cli", () => { ["npm", "i", "-g", expect.any(String)], expect.anything(), ); + expect(defaultRuntime.exit).toHaveBeenCalledWith(0); expect(syncPluginsForUpdateChannel).toHaveBeenCalledTimes(1); expect(updateNpmInstalledPlugins).toHaveBeenCalledTimes(1); expect(spawn).not.toHaveBeenCalled(); diff --git a/src/cli/update-cli/update-command.ts b/src/cli/update-cli/update-command.ts index 774eab7bf61..6839f0d7895 100644 --- a/src/cli/update-cli/update-command.ts +++ b/src/cli/update-cli/update-command.ts @@ -1831,10 +1831,7 @@ export async function updateCommand(opts: UpdateCommandOptions): Promise { defaultRuntime.exit(1); return; } - if (process.env[POST_CORE_UPDATE_RESULT_PATH_ENV]) { - defaultRuntime.exit(0); - return; - } + defaultRuntime.exit(0); return; }