fix(claw): default chat timeout to thirty minutes
This commit is contained in:
parent
643a0128d3
commit
18c4044c66
@ -20,7 +20,7 @@ export type AdminOpenClawChatConfig = Omit<OpenClawChatConfig, "token"> & {
|
||||
tokenPreview: string;
|
||||
};
|
||||
|
||||
const DEFAULT_TIMEOUT_MS = 180_000;
|
||||
const DEFAULT_TIMEOUT_MS = 30 * 60 * 1000;
|
||||
const MIN_TIMEOUT_MS = 5_000;
|
||||
// Complex OpenClaw skills can legitimately run for up to thirty minutes.
|
||||
// Keep this aligned with the route maxDuration and the integration contract.
|
||||
|
||||
@ -2,6 +2,10 @@ import { expect, test } from "@playwright/test";
|
||||
import { normalizeOpenClawChatConfig } from "@/lib/openclaw-chat/config";
|
||||
|
||||
test.describe("OpenClaw chat configuration", () => {
|
||||
test("defaults long-running tasks to thirty minutes", () => {
|
||||
expect(normalizeOpenClawChatConfig({}).timeoutMs).toBe(30 * 60 * 1000);
|
||||
});
|
||||
|
||||
test("allows a thirty-minute timeout for complex skills", () => {
|
||||
expect(
|
||||
normalizeOpenClawChatConfig({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user