fix(claw): default chat timeout to thirty minutes

This commit is contained in:
134 2026-08-07 14:59:05 +08:00
parent 643a0128d3
commit 18c4044c66
2 changed files with 5 additions and 1 deletions

View File

@ -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.

View File

@ -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({