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

推荐订阅源

有赞技术团队
有赞技术团队
H
Hackread – Cybersecurity News, Data Breaches, AI and More
I
InfoQ
J
Java Code Geeks
Microsoft Security Blog
Microsoft Security Blog
G
Google Developers Blog
D
DataBreaches.Net
Recent Announcements
Recent Announcements
Microsoft Azure Blog
Microsoft Azure Blog
B
Blog RSS Feed
Y
Y Combinator Blog
博客园 - 【当耐特】
博客园 - 聂微东
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
大猫的无限游戏
大猫的无限游戏
P
Proofpoint News Feed
量子位
C
Check Point Blog
F
Fortinet All Blogs
罗磊的独立博客
Last Week in AI
Last Week in AI
GbyAI
GbyAI
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
test: harden plugin prerelease smoke checks · openclaw/op...
steipete · 2026-04-29 · via Recent Commits to openclaw:main

@@ -24,26 +24,57 @@ function summarizeSessionRows(rows: Array<Record<string, unknown>> | undefined)

2424

}));

2525

}

262627+

function formatUnknownError(error: unknown): string {

28+

if (error instanceof Error) {

29+

return error.message;

30+

}

31+

if (error === undefined || error === null) {

32+

return "";

33+

}

34+

if (typeof error === "string") {

35+

return error;

36+

}

37+

if (typeof error === "number" || typeof error === "boolean" || typeof error === "bigint") {

38+

return `${error}`;

39+

}

40+

if (typeof error === "symbol") {

41+

return error.description ?? "symbol";

42+

}

43+

try {

44+

return JSON.stringify(error) ?? "";

45+

} catch {

46+

return Object.prototype.toString.call(error);

47+

}

48+

}

49+2750

async function waitForGatewaySeededConversation(gateway: GatewayRpcClient) {

2851

let lastList: { sessions?: Array<Record<string, unknown>> } | undefined;

52+

let lastError: unknown;

2953

try {

3054

return await waitFor(

3155

"seeded conversation in gateway sessions.list",

3256

async () => {

33-

lastList = await gateway.request<{ sessions?: Array<Record<string, unknown>> }>(

34-

"sessions.list",

35-

{ limit: 50, includeDerivedTitles: true, includeLastMessage: true },

36-

);

57+

try {

58+

lastList = await gateway.request<{ sessions?: Array<Record<string, unknown>> }>(

59+

"sessions.list",

60+

{ limit: 50, includeDerivedTitles: false, includeLastMessage: false },

61+

);

62+

lastError = undefined;

63+

} catch (error) {

64+

lastError = error;

65+

return undefined;

66+

}

3767

return lastList.sessions?.find((entry) => entry.key === "agent:main:main");

3868

},

39-

60_000,

69+

180_000,

4070

);

4171

} catch (error) {

4272

throw new Error(

4373

`gateway sessions.list did not include seeded conversation: ${JSON.stringify(

4474

{

4575

count: lastList?.sessions?.length ?? 0,

4676

sessions: summarizeSessionRows(lastList?.sessions),

77+

lastError: formatUnknownError(lastError),

4778

},

4879

null,

4980

2,

@@ -60,24 +91,9 @@ async function main() {

6091

assert(gatewayToken, "missing GW_TOKEN");

61926293

const gateway = await connectGateway({ url: gatewayUrl, token: gatewayToken });

63-

let mcpHandle = await connectMcpClient({

64-

gatewayUrl,

65-

gatewayToken,

66-

});

67-

let mcp = mcpHandle.client;

94+

let mcpHandle: Awaited<ReturnType<typeof connectMcpClient>> | undefined;

68956996

try {

70-

if (await maybeApprovePendingBridgePairing(gateway)) {

71-

await Promise.allSettled([mcp.close(), mcpHandle.transport.close()]);

72-

mcpHandle = await connectMcpClient({

73-

gatewayUrl,

74-

gatewayToken,

75-

});

76-

mcp = mcpHandle.client;

77-

}

78-

const callTool = <T>(params: Parameters<typeof mcp.callTool>[0]) =>

79-

mcp.callTool(params, undefined, { timeout: 240_000 }) as Promise<T>;

80-8197

const gatewayConversation = await waitForGatewaySeededConversation(gateway);

8298

assert(

8399

(gatewayConversation.deliveryContext as { channel?: unknown } | undefined)?.channel ===

@@ -89,6 +105,23 @@ async function main() {

89105

"expected seeded gateway deliveryContext target",

90106

);

91107108+

mcpHandle = await connectMcpClient({

109+

gatewayUrl,

110+

gatewayToken,

111+

});

112+

let mcp = mcpHandle.client;

113+114+

if (await maybeApprovePendingBridgePairing(gateway)) {

115+

await Promise.allSettled([mcp.close(), mcpHandle.transport.close()]);

116+

mcpHandle = await connectMcpClient({

117+

gatewayUrl,

118+

gatewayToken,

119+

});

120+

mcp = mcpHandle.client;

121+

}

122+

const callTool = <T>(params: Parameters<typeof mcp.callTool>[0]) =>

123+

mcp.callTool(params, undefined, { timeout: 240_000 }) as Promise<T>;

124+92125

let lastMcpConversationList: unknown;

93126

const conversation = await waitFor(

94127

"seeded conversation in conversations_list",

@@ -333,7 +366,10 @@ async function main() {

333366

) + "\n",

334367

);

335368

} finally {

336-

await Promise.allSettled([mcp.close(), mcpHandle.transport.close(), gateway.close()]);

369+

await Promise.allSettled([

370+

...(mcpHandle ? [mcpHandle.client.close(), mcpHandle.transport.close()] : []),

371+

gateway.close(),

372+

]);

337373

}

338374

}

339375