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

推荐订阅源

B
Blog RSS Feed
量子位
Recent Announcements
Recent Announcements
T
The Blog of Author Tim Ferriss
美团技术团队
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Blog — PlanetScale
Blog — PlanetScale
H
Help Net Security
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - Franky
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
宝玉的分享
宝玉的分享
大猫的无限游戏
大猫的无限游戏
V
Visual Studio Blog
博客园 - 聂微东
aimingoo的专栏
aimingoo的专栏
Microsoft Security Blog
Microsoft Security Blog
U
Unit 42
J
Java Code Geeks
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
IT之家
IT之家
Hugging Face - Blog
Hugging Face - Blog
腾讯CDC
L
LangChain 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(doctor): treat gateway memory probe timeout as inconc...
vincentkoc · 2026-04-27 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -29,6 +29,7 @@ Docs: https://docs.openclaw.ai

2929

- Exec/node: skip approval-plan preparation for full-trust `host=node` runs so interpreter and script commands no longer fail with `SYSTEM_RUN_DENIED: approval cannot safely bind` when effective policy is `security=full` and `ask=off`. Fixes #48457 and duplicate #69251. Thanks @ajtran303, @jaserNo1, @Blakeshannon, @lesliefag, and @AvIsBeastMC.

3030

- Exec/node: synthesize a local approval plan when a paired node advertises `system.run` without `system.run.prepare`, unblocking approval-required `host=node` exec on current macOS companion nodes while preserving remote prepare for node hosts that support it. Fixes #37591 and duplicate #66839; carries forward #69725. Thanks @soloclz.

3131

- Memory/QMD: prefer QMD's `--mask` collection pattern flag so root memory indexing stays scoped to `MEMORY.md` instead of widening to every markdown file in the workspace. Thanks @codex.

32+

- Memory/doctor: treat the specific `gateway timeout after ...` gateway memory probe result as inconclusive instead of reporting embeddings not ready, while preserving warnings for explicit failures. Fixes #44426; carries forward #46576 with the Greptile review feedback applied. Thanks Cengiz (@ghost).

3233

- Gateway/memory: defer QMD startup for implicit non-default agents and scope memory runtime loading to the selected memory slot so Gateway boot and first memory recall avoid broad plugin runtime fanout. Thanks @vincentkoc.

3334

- Gateway/startup: keep core request handlers, setup wizard, and channel runtime helpers off the boot path until the first matching request, wizard run, or channel start, reducing no-plugin Gateway ready RSS and avoidable startup imports. Thanks @vincentkoc.

3435

- CLI/Gateway: use a parse-only config snapshot for plain `gateway status` reads and reuse same-path service config context so status no longer spends tens of seconds in full config validation before printing. Thanks @vincentkoc.

Original file line numberDiff line numberDiff line change

@@ -0,0 +1,57 @@

1+

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

2+

import type { OpenClawConfig } from "../config/config.js";

3+
4+

const callGateway = vi.hoisted(() => vi.fn());

5+
6+

vi.mock("../gateway/call.js", () => ({

7+

buildGatewayConnectionDetails: vi.fn(() => ({

8+

message: "Gateway target: ws://127.0.0.1:18789",

9+

})),

10+

callGateway,

11+

}));

12+
13+

vi.mock("./health.js", () => ({

14+

healthCommand: vi.fn(),

15+

}));

16+
17+

import { probeGatewayMemoryStatus } from "./doctor-gateway-health.js";

18+
19+

describe("probeGatewayMemoryStatus", () => {

20+

const cfg = {} as OpenClawConfig;

21+
22+

beforeEach(() => {

23+

callGateway.mockReset();

24+

});

25+
26+

it("treats outer gateway timeouts as inconclusive", async () => {

27+

callGateway.mockRejectedValue(

28+

new Error("gateway timeout after 8000ms\nGateway target: ws://127.0.0.1:18789"),

29+

);

30+
31+

await expect(probeGatewayMemoryStatus({ cfg })).resolves.toEqual({

32+

checked: false,

33+

ready: false,

34+

error: expect.stringContaining("gateway memory probe timed out"),

35+

});

36+

});

37+
38+

it("keeps gateway request timeouts as explicit failures", async () => {

39+

callGateway.mockRejectedValue(new Error("gateway request timeout for doctor.memory.status"));

40+
41+

await expect(probeGatewayMemoryStatus({ cfg })).resolves.toEqual({

42+

checked: true,

43+

ready: false,

44+

error: "gateway memory probe unavailable: gateway request timeout for doctor.memory.status",

45+

});

46+

});

47+
48+

it("keeps non-timeout gateway errors as explicit failures", async () => {

49+

callGateway.mockRejectedValue(new Error("gateway closed (1006): no close reason"));

50+
51+

await expect(probeGatewayMemoryStatus({ cfg })).resolves.toEqual({

52+

checked: true,

53+

ready: false,

54+

error: "gateway memory probe unavailable: gateway closed (1006): no close reason",

55+

});

56+

});

57+

});

Original file line numberDiff line numberDiff line change

@@ -14,6 +14,10 @@ export type GatewayMemoryProbe = {

1414

error?: string;

1515

};

1616
17+

function isGatewayCallTimeout(message: string): boolean {

18+

return /^gateway timeout after \d+ms(?:\n|$)/.test(message);

19+

}

20+
1721

export async function checkGatewayHealth(params: {

1822

runtime: RuntimeEnv;

1923

cfg: OpenClawConfig;

@@ -84,6 +88,13 @@ export async function probeGatewayMemoryStatus(params: {

8488

};

8589

} catch (err) {

8690

const message = formatErrorMessage(err);

91+

if (isGatewayCallTimeout(message)) {

92+

return {

93+

checked: false,

94+

ready: false,

95+

error: `gateway memory probe timed out: ${message}`,

96+

};

97+

}

8798

return {

8899

checked: true,

89100

ready: false,

Original file line numberDiff line numberDiff line change

@@ -228,6 +228,24 @@ describe("noteMemorySearchHealth", () => {

228228

expect(note).not.toHaveBeenCalled();

229229

});

230230
231+

it("does not treat an inconclusive gateway timeout as local embeddings not ready", async () => {

232+

resolveMemorySearchConfig.mockReturnValue({

233+

provider: "local",

234+

local: {},

235+

remote: {},

236+

});

237+
238+

await noteMemorySearchHealth(cfg, {

239+

gatewayMemoryProbe: {

240+

checked: false,

241+

ready: false,

242+

error: "gateway memory probe timed out: gateway timeout after 8000ms",

243+

},

244+

});

245+
246+

expect(note).not.toHaveBeenCalled();

247+

});

248+
231249

it("does not warn when local provider has an explicit hf: modelPath", async () => {

232250

resolveMemorySearchConfig.mockReturnValue({

233251

provider: "local",