fix(cli): disable expectFinal on cron helper probe

This commit is contained in:
MaxxxDong 2026-03-18 01:18:20 +08:00
parent eb52408112
commit b0e880354e
2 changed files with 7 additions and 1 deletions

View File

@ -297,10 +297,15 @@ describe("cron cli", () => {
"isolated",
"--message",
"hello",
"--expect-final",
]);
const statusCall = callGatewayFromCli.mock.calls.find((call) => call[0] === "cron.status");
expect(statusCall?.[3]).toEqual({ progress: false, quiet: true });
expect(statusCall?.[3]).toEqual({
progress: false,
quiet: true,
expectFinal: false,
});
});
it("infers sessionTarget from payload when --session is omitted", async () => {

View File

@ -33,6 +33,7 @@ export async function warnIfCronSchedulerDisabled(opts: GatewayRpcOpts) {
{
progress: false,
quiet: true,
expectFinal: false,
},
)) as {
enabled?: boolean;