mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-13 18:56:40 +00:00
fix(cron): preserve overrides and harden next-run calculation
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user