diff --git a/src/commands/status.scan.fast-json.test.ts b/src/commands/status.scan.fast-json.test.ts index 24d95b53696..edc0270183b 100644 --- a/src/commands/status.scan.fast-json.test.ts +++ b/src/commands/status.scan.fast-json.test.ts @@ -113,12 +113,18 @@ describe("scanStatusJsonFast", () => { expect(mocks.buildPluginCompatibilityNotices).not.toHaveBeenCalled(); }); - it("keeps update checks off the default fast JSON path", async () => { + it("keeps default fast JSON update scans local-only", async () => { mocks.hasPotentialConfiguredChannels.mockReturnValue(true); await scanStatusJsonFast({ timeoutMs: 1234 }, {} as never); - expect(mocks.getUpdateCheckResult).not.toHaveBeenCalled(); + expect(mocks.getUpdateCheckResult).toHaveBeenCalledWith( + expect.objectContaining({ + timeoutMs: 1234, + fetchGit: false, + includeRegistry: false, + }), + ); }); it("restores registry-backed update checks and remote git fetches when --all is requested", async () => { @@ -245,7 +251,7 @@ describe("scanStatusJsonFast", () => { expect(mocks.probeGateway).not.toHaveBeenCalled(); }); - it("keeps cold-start gateway probes but skips update checks when a channel is configured from manifest env vars", async () => { + it("keeps cold-start gateway probes with local-only updates when a channel is configured from manifest env vars", async () => { await withTemporaryEnv( { OPENCLAW_TWITCH_ACCESS_TOKEN: "token", @@ -258,7 +264,12 @@ describe("scanStatusJsonFast", () => { }, ); - expect(mocks.getUpdateCheckResult).not.toHaveBeenCalled(); + expect(mocks.getUpdateCheckResult).toHaveBeenCalledWith( + expect.objectContaining({ + fetchGit: false, + includeRegistry: false, + }), + ); expect(mocks.probeGateway).toHaveBeenCalled(); }); }); diff --git a/src/commands/status.scan.fast-json.ts b/src/commands/status.scan.fast-json.ts index 031e7727670..e85563429f8 100644 --- a/src/commands/status.scan.fast-json.ts +++ b/src/commands/status.scan.fast-json.ts @@ -24,7 +24,6 @@ type StatusJsonScanPolicy = { commandName: string; allowMissingConfigFastPath?: boolean; includeChannelSummary?: boolean; - skipUpdateCheck?: boolean; fetchGitUpdate?: boolean; includeRegistryUpdate?: boolean; includeLocalStatusRpcFallback?: boolean; @@ -95,7 +94,6 @@ export async function scanStatusJsonWithPolicy( includeChannelsData: false, includeChannelSecretTargets: false, skipConfigPluginValidation: true, - skipUpdateCheck: policy.skipUpdateCheck, fetchGitUpdate: policy.fetchGitUpdate, includeRegistryUpdate: policy.includeRegistryUpdate, includeLocalStatusRpcFallback: policy.includeLocalStatusRpcFallback, @@ -125,7 +123,6 @@ export async function scanStatusJsonFast( commandName: "status --json", allowMissingConfigFastPath: true, includeChannelSummary: false, - skipUpdateCheck: opts.all !== true, fetchGitUpdate: opts.all === true, includeRegistryUpdate: opts.all === true, includeLocalStatusRpcFallback: opts.all === true,