Skip to content

Commit 5e0acee

Browse files
committed
fix(status): preserve OAuth refresh for usage status
1 parent dd828b3 commit 5e0acee

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/commands/status-runtime-shared.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ describe("status-runtime-shared", () => {
137137
expect(usageCall.config).toEqual({ gateway: {} });
138138
expect(usageCall.agentDir).toContain("main");
139139
expect(usageCall.skipPluginAuthWithoutCredentialSource).toBe(true);
140-
expect(usageCall.allowOAuthRefresh).toBe(false);
140+
expect(usageCall.allowOAuthRefresh).toBeUndefined();
141141
});
142142

143143
it("resolves usage summaries with explicit agent scope", async () => {
@@ -152,7 +152,6 @@ describe("status-runtime-shared", () => {
152152
config: { gateway: {} },
153153
agentDir: "/tmp/status-agent",
154154
skipPluginAuthWithoutCredentialSource: true,
155-
allowOAuthRefresh: false,
156155
});
157156
});
158157

@@ -259,7 +258,7 @@ describe("status-runtime-shared", () => {
259258
expect(usageCall.config).toEqual({ gateway: {} });
260259
expect(usageCall.agentDir).toContain("main");
261260
expect(usageCall.skipPluginAuthWithoutCredentialSource).toBe(true);
262-
expect(usageCall.allowOAuthRefresh).toBe(false);
261+
expect(usageCall.allowOAuthRefresh).toBeUndefined();
263262
expect(mocks.callGateway).toHaveBeenNthCalledWith(1, {
264263
method: "health",
265264
params: { probe: true },

0 commit comments

Comments
 (0)