惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

IT之家
IT之家
Last Week in AI
Last Week in AI
博客园_首页
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 叶小钗
大猫的无限游戏
大猫的无限游戏
人人都是产品经理
人人都是产品经理
V
Visual Studio Blog
宝玉的分享
宝玉的分享
博客园 - Franky
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
月光博客
月光博客
T
Tailwind CSS Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
量子位
博客园 - 聂微东
S
SegmentFault 最新的问题
博客园 - 司徒正美
罗磊的独立博客
V
V2EX
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
美团技术团队
小众软件
小众软件
Jina AI
Jina AI

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
test(release): align live provider timeouts · openclaw/op...
steipete · 2026-05-29 · via Recent Commits to openclaw:main

@@ -276,6 +276,12 @@ function resolveGatewayLiveAgentWaitTimeoutMs(

276276

return Math.max(1_000, Math.min(modelTimeoutMs, Math.floor(agentRunTimeoutMs + waitGraceMs)));

277277

}

278278279+

function resolveGatewayLiveProviderTimeoutSeconds(

280+

modelTimeoutMs = GATEWAY_LIVE_MODEL_TIMEOUT_MS,

281+

): number {

282+

return Math.max(1, Math.ceil(modelTimeoutMs / 1_000));

283+

}

284+279285

function isGatewayLiveProbeTimeout(error: string): boolean {

280286

return /probe timeout after \d+ms/i.test(error);

281287

}

@@ -752,6 +758,12 @@ describe("resolveGatewayLiveAgentWaitTimeoutMs", () => {

752758

});

753759

});

754760761+

describe("resolveGatewayLiveProviderTimeoutSeconds", () => {

762+

it("matches provider timeout config to the harness model budget", () => {

763+

expect(resolveGatewayLiveProviderTimeoutSeconds(180_001)).toBe(181);

764+

});

765+

});

766+755767

describe("formatGatewayLiveAgentWaitFailure", () => {

756768

it("includes terminal attribution fields without requiring transcript text", () => {

757769

expect(

@@ -1161,6 +1173,28 @@ describe("buildLiveGatewayConfig", () => {

1161117311621174

expect(cfg.models?.providers?.google?.models?.[0]?.contextWindow).toBe(128_000);

11631175

});

1176+1177+

it("keeps live provider request timeout aligned with the harness model budget", () => {

1178+

const cfg = buildLiveGatewayConfig({

1179+

cfg: {

1180+

models: {

1181+

providers: {

1182+

google: {

1183+

api: "google-generative-ai",

1184+

baseUrl: "https://generativelanguage.googleapis.com",

1185+

models: [],

1186+

timeoutSeconds: 30,

1187+

},

1188+

},

1189+

},

1190+

},

1191+

candidates: [createGatewayLiveTestModel("google", "gemini-3.1-pro-preview")],

1192+

});

1193+1194+

expect(cfg.models?.providers?.google?.timeoutSeconds).toBeGreaterThanOrEqual(

1195+

Math.ceil(GATEWAY_LIVE_MODEL_TIMEOUT_MS / 1_000),

1196+

);

1197+

});

11641198

});

1165119911661200

describe("enterProductionEnvForLiveRun", () => {

@@ -2104,6 +2138,10 @@ function mergeLiveProviderConfig(params: {

21042138

...params.base,

21052139

api: params.base?.api ?? params.discovered.api,

21062140

baseUrl: params.base?.baseUrl ?? params.discovered.baseUrl,

2141+

timeoutSeconds: Math.max(

2142+

params.base?.timeoutSeconds ?? 0,

2143+

params.discovered.timeoutSeconds ?? 0,

2144+

),

21072145

models: [...mergedModels.values()],

21082146

};

21092147

}

@@ -2120,6 +2158,7 @@ function buildLiveProviderConfigs(candidates: Array<Model>): Record<string, Mode

21202158

providers[model.provider] = {

21212159

api: model.api as ModelProviderConfig["api"],

21222160

baseUrl: model.baseUrl,

2161+

timeoutSeconds: resolveGatewayLiveProviderTimeoutSeconds(),

21232162

models: [toLiveModelConfig(model)],

21242163

};

21252164

}