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

推荐订阅源

博客园 - Franky
有赞技术团队
有赞技术团队
宝玉的分享
宝玉的分享
雷峰网
雷峰网
Hugging Face - Blog
Hugging Face - Blog
V
V2EX
大猫的无限游戏
大猫的无限游戏
博客园 - 司徒正美
D
Docker
T
The Blog of Author Tim Ferriss
罗磊的独立博客
博客园 - 叶小钗
酷 壳 – CoolShell
酷 壳 – CoolShell
Blog — PlanetScale
Blog — PlanetScale
月光博客
月光博客
J
Java Code Geeks
Jina AI
Jina AI
博客园 - 【当耐特】
C
Check Point Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
腾讯CDC
Last Week in AI
Last Week in AI
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
V
Visual Studio Blog

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
fix(gateway): honor injected env for watchdog timeouts · ...
vincentkoc · 2026-06-17 · via Recent Commits to openclaw:main

File tree

  • packages/gateway-client/src

Original file line numberDiff line numberDiff line change

@@ -500,10 +500,11 @@ function formatGatewayClientErrorForLog(err: unknown): string {

500500

export function resolveGatewayClientConnectChallengeTimeoutMs(

501501

opts: Pick<

502502

GatewayClientOptions,

503-

"connectChallengeTimeoutMs" | "connectDelayMs" | "preauthHandshakeTimeoutMs"

503+

"connectChallengeTimeoutMs" | "connectDelayMs" | "env" | "preauthHandshakeTimeoutMs"

504504

>,

505505

): number {

506506

return resolveConnectChallengeTimeoutMs(readConnectChallengeTimeoutOverride(opts), {

507+

env: opts.env,

507508

configuredTimeoutMs: opts.preauthHandshakeTimeoutMs,

508509

});

509510

}

Original file line numberDiff line numberDiff line change

@@ -125,6 +125,11 @@ describe("GatewayClient", () => {

125125

preauthHandshakeTimeoutMs: 30_000,

126126

}),

127127

).toBe(30_000);

128+

expect(

129+

resolveGatewayClientConnectChallengeTimeoutMs({

130+

env: { OPENCLAW_CONNECT_CHALLENGE_TIMEOUT_MS: "6000" },

131+

}),

132+

).toBe(6_000);

128133

});

129134
130135

test("closes on missing ticks", async () => {

Original file line numberDiff line numberDiff line change

@@ -0,0 +1,28 @@

1+

// Gateway Client tests cover readiness behavior.

2+

import { describe, expect, it, vi } from "vitest";

3+

import { startGatewayClientWithReadinessWait } from "./readiness.js";

4+
5+

describe("startGatewayClientWithReadinessWait", () => {

6+

it("uses the injected client env when resolving the readiness timeout", async () => {

7+

const waitForReady = vi.fn(async () => ({

8+

ready: true,

9+

aborted: false,

10+

elapsedMs: 0,

11+

checks: 1,

12+

maxDriftMs: 0,

13+

}));

14+

const client = { start: vi.fn() };

15+
16+

await startGatewayClientWithReadinessWait(waitForReady, client, {

17+

clientOptions: {

18+

env: { OPENCLAW_CONNECT_CHALLENGE_TIMEOUT_MS: "6000" },

19+

},

20+

});

21+
22+

expect(waitForReady).toHaveBeenCalledWith({

23+

maxWaitMs: 6_000,

24+

signal: undefined,

25+

});

26+

expect(client.start).toHaveBeenCalledTimes(1);

27+

});

28+

});

Original file line numberDiff line numberDiff line change

@@ -21,7 +21,7 @@ export type GatewayClientStartReadinessOptions = {

2121

timeoutMs?: number;

2222

clientOptions?: Pick<

2323

GatewayClientOptions,

24-

"connectChallengeTimeoutMs" | "connectDelayMs" | "preauthHandshakeTimeoutMs"

24+

"connectChallengeTimeoutMs" | "connectDelayMs" | "env" | "preauthHandshakeTimeoutMs"

2525

>;

2626

signal?: AbortSignal;

2727

};

@@ -42,6 +42,7 @@ function resolveGatewayClientStartReadinessTimeoutMs(

4242

? clientOptions.connectDelayMs

4343

: undefined;

4444

return resolveConnectChallengeTimeoutMs(timeoutOverride, {

45+

env: clientOptions.env,

4546

configuredTimeoutMs: clientOptions.preauthHandshakeTimeoutMs,

4647

});

4748

}

Original file line numberDiff line numberDiff line change

@@ -188,7 +188,7 @@ function createOpenClawGatewayClientHostDeps(

188188

export function resolveGatewayClientConnectChallengeTimeoutMs(

189189

opts: Pick<

190190

GatewayClientOptions,

191-

"connectChallengeTimeoutMs" | "connectDelayMs" | "preauthHandshakeTimeoutMs"

191+

"connectChallengeTimeoutMs" | "connectDelayMs" | "env" | "preauthHandshakeTimeoutMs"

192192

>,

193193

): number {

194194

return baseResolveGatewayClientConnectChallengeTimeoutMs(opts);