fix(cron): preserve overrides and harden next-run calculation

This commit is contained in:
Peter Steinberger
2026-02-16 23:31:26 +00:00
parent 968bba5c18
commit b3d0e0cb45
3 changed files with 5 additions and 11 deletions

View File

@@ -150,12 +150,8 @@ describe("resolveCronSession", () => {
"webhook:stable-key": {
updatedAt: Date.now() - 1000,
modelOverride: "some-model",
} as unknown as {
sessionId: string;
updatedAt: number;
modelOverride?: string;
},
});
} as ReturnType<typeof loadSessionStore>);
vi.mocked(evaluateSessionFreshness).mockReturnValue({ fresh: true });
const result = resolveCronSession({