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

推荐订阅源

阮一峰的网络日志
阮一峰的网络日志
博客园 - 司徒正美
D
DataBreaches.Net
宝玉的分享
宝玉的分享
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 【当耐特】
人人都是产品经理
人人都是产品经理
博客园 - Franky
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
IT之家
IT之家
博客园 - 三生石上(FineUI控件)
J
Java Code Geeks
腾讯CDC
博客园_首页
The Cloudflare Blog
S
SegmentFault 最新的问题
C
Check Point Blog
美团技术团队
爱范儿
爱范儿
大猫的无限游戏
大猫的无限游戏
Hugging Face - Blog
Hugging Face - Blog
T
The Blog of Author Tim Ferriss
A
About on SuperTechFans
Blog — PlanetScale
Blog — PlanetScale

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(lint): clean up main lint regressions · openclaw/open...
vincentkoc · 2026-05-07 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -102,15 +102,23 @@ function parseNodeCandidates(raw: unknown): CanvasNodeCandidate[] {

102102

connected?: unknown;

103103

clientId?: unknown;

104104

};

105-

return typeof node.nodeId === "string"

106-

? {

107-

nodeId: node.nodeId,

108-

...(typeof node.displayName === "string" && { displayName: node.displayName }),

109-

...(typeof node.remoteIp === "string" && { remoteIp: node.remoteIp }),

110-

...(typeof node.connected === "boolean" && { connected: node.connected }),

111-

...(typeof node.clientId === "string" && { clientId: node.clientId }),

112-

}

113-

: null;

105+

if (typeof node.nodeId !== "string") {

106+

return null;

107+

}

108+

const candidate: CanvasNodeCandidate = { nodeId: node.nodeId };

109+

if (typeof node.displayName === "string") {

110+

candidate.displayName = node.displayName;

111+

}

112+

if (typeof node.remoteIp === "string") {

113+

candidate.remoteIp = node.remoteIp;

114+

}

115+

if (typeof node.connected === "boolean") {

116+

candidate.connected = node.connected;

117+

}

118+

if (typeof node.clientId === "string") {

119+

candidate.clientId = node.clientId;

120+

}

121+

return candidate;

114122

})

115123

.filter((entry): entry is CanvasNodeCandidate => entry !== null);

116124

}

Original file line numberDiff line numberDiff line change

@@ -11,10 +11,7 @@ function mergeHostConfig(params: {

1111

legacyHost: MutableRecord;

1212

existingHost: MutableRecord | undefined;

1313

}): MutableRecord {

14-

return {

15-

...params.legacyHost,

16-

...(params.existingHost ?? {}),

17-

};

14+

return Object.assign({}, params.legacyHost, params.existingHost);

1815

}

1916
2017

export function migrateLegacyCanvasHostConfig(config: OpenClawConfig): {

Original file line numberDiff line numberDiff line change

@@ -59,9 +59,7 @@ export function parseCanvasPluginConfig(value: unknown): CanvasPluginConfig {

5959

return {};

6060

}

6161

const host = parseCanvasHostConfig(value.host);

62-

return {

63-

...(host ? { host } : {}),

64-

};

62+

return host ? { host } : {};

6563

}

6664
6765

export function isCanvasPluginEnabled(config?: OpenClawConfig): boolean {

Original file line numberDiff line numberDiff line change

@@ -497,7 +497,6 @@ export function createGatewayHttpServer(opts: {

497497

strictTransportSecurityHeader,

498498

handleHooksRequest,

499499

handlePluginRequest,

500-

handlePluginUpgrade,

501500

shouldEnforcePluginGatewayAuth,

502501

resolvePluginNodeCapabilityRoute,

503502

resolvedAuth,

Original file line numberDiff line numberDiff line change

@@ -23,8 +23,6 @@ import {

2323

startConnectedServerWithClient,

2424

startGatewayServer,

2525

startServerWithClient,

26-

testState,

27-

testTailnetIPv4,

2826

trackConnectChallengeNonce,

2927

} from "./test-helpers.js";

3028
Original file line numberDiff line numberDiff line change

@@ -34,10 +34,11 @@ export function findMatchingPluginNodeCapabilityRoutes(

3434

): PluginNodeCapabilityRoute[] {

3535

return findMatchingPluginHttpRoutes(registry, context)

3636

.filter(hasNodeCapabilityRoute)

37-

.map((route) => ({

38-

...route,

39-

nodeCapability: resolvePluginNodeCapabilityRouteSurface(route),

40-

}));

37+

.map((route) =>

38+

Object.assign({}, route, {

39+

nodeCapability: resolvePluginNodeCapabilityRouteSurface(route),

40+

}),

41+

);

4142

}

4243
4344

export function findMatchingPluginNodeCapabilityRoute(

Original file line numberDiff line numberDiff line change

@@ -1293,18 +1293,17 @@ export function createPluginRegistry(registryParams: PluginRegistryParams) {

12931293

}

12941294

const serializeCommandPath = (command: string) => [...normalizedParentPath, command].join(" ");

12951295

const commandPaths = commands.map(serializeCommandPath);

1296+

const commandPathSet = new Set(commandPaths);

12961297

const existing = registry.cliRegistrars.find((entry) =>

12971298

entry.commands

12981299

.map((command) => [...(entry.parentPath ?? []), command].join(" "))

1299-

.some((commandPath) => commandPaths.includes(commandPath)),

1300+

.some((commandPath) => commandPathSet.has(commandPath)),

13001301

);

13011302

if (existing) {

1302-

const existingCommandPaths = existing.commands.map((command) =>

1303-

[...(existing.parentPath ?? []), command].join(" "),

1304-

);

1305-

const overlap = commandPaths.find((commandPath) =>

1306-

existingCommandPaths.includes(commandPath),

1303+

const existingCommandPaths = new Set(

1304+

existing.commands.map((command) => [...(existing.parentPath ?? []), command].join(" ")),

13071305

);

1306+

const overlap = commandPaths.find((commandPath) => existingCommandPaths.has(commandPath));

13081307

pushDiagnostic({

13091308

level: "error",

13101309

pluginId: record.id,