mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 12:37:40 +00:00
fix(ci): restore main lint/typecheck after direct merges
This commit is contained in:
@@ -641,7 +641,13 @@ export async function runCronIsolatedAgentTurn(params: {
|
||||
}
|
||||
} catch (err) {
|
||||
if (!deliveryBestEffort) {
|
||||
return withRunSession({ status: "error", summary, outputText, error: String(err), ...telemetry });
|
||||
return withRunSession({
|
||||
status: "error",
|
||||
summary,
|
||||
outputText,
|
||||
error: String(err),
|
||||
...telemetry,
|
||||
});
|
||||
}
|
||||
}
|
||||
} else if (synthesizedText) {
|
||||
@@ -739,7 +745,13 @@ export async function runCronIsolatedAgentTurn(params: {
|
||||
}
|
||||
} catch (err) {
|
||||
if (!deliveryBestEffort) {
|
||||
return withRunSession({ status: "error", summary, outputText, error: String(err), ...telemetry });
|
||||
return withRunSession({
|
||||
status: "error",
|
||||
summary,
|
||||
outputText,
|
||||
error: String(err),
|
||||
...telemetry,
|
||||
});
|
||||
}
|
||||
logWarn(`[cron:${params.job.id}] ${String(err)}`);
|
||||
}
|
||||
|
||||
@@ -8,10 +8,7 @@ vi.mock("../../config/sessions.js", () => ({
|
||||
resolveSessionResetPolicy: vi.fn().mockReturnValue({ mode: "idle", idleMinutes: 60 }),
|
||||
}));
|
||||
|
||||
import {
|
||||
loadSessionStore,
|
||||
evaluateSessionFreshness,
|
||||
} from "../../config/sessions.js";
|
||||
import { loadSessionStore, evaluateSessionFreshness } from "../../config/sessions.js";
|
||||
import { resolveCronSession } from "./session.js";
|
||||
|
||||
describe("resolveCronSession", () => {
|
||||
@@ -153,7 +150,11 @@ describe("resolveCronSession", () => {
|
||||
"webhook:stable-key": {
|
||||
updatedAt: Date.now() - 1000,
|
||||
modelOverride: "some-model",
|
||||
} as any,
|
||||
} as unknown as {
|
||||
sessionId: string;
|
||||
updatedAt: number;
|
||||
modelOverride?: string;
|
||||
},
|
||||
});
|
||||
vi.mocked(evaluateSessionFreshness).mockReturnValue({ fresh: true });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user