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

推荐订阅源

S
SegmentFault 最新的问题
J
Java Code Geeks
V
V2EX
Blog — PlanetScale
Blog — PlanetScale
博客园 - 司徒正美
Hugging Face - Blog
Hugging Face - Blog
F
Fortinet All Blogs
aimingoo的专栏
aimingoo的专栏
B
Blog
A
About on SuperTechFans
有赞技术团队
有赞技术团队
月光博客
月光博客
Microsoft Azure Blog
Microsoft Azure Blog
阮一峰的网络日志
阮一峰的网络日志
腾讯CDC
美团技术团队
大猫的无限游戏
大猫的无限游戏
爱范儿
爱范儿
N
Netflix TechBlog - Medium
C
Check Point Blog
Recent Announcements
Recent Announcements
博客园 - Franky
博客园 - 叶小钗
T
Tailwind CSS 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(bonjour): keep ciao failure handling extension-owned ...
steipete · 2026-04-27 · via Recent Commits to openclaw:main

@@ -11,17 +11,59 @@ export type CiaoProcessErrorClassification =

1111

| { kind: "interface-assertion"; formatted: string }

1212

| { kind: "netmask-assertion"; formatted: string };

131314-

export function classifyCiaoProcessError(reason: unknown): CiaoProcessErrorClassification | null {

15-

const formatted = formatBonjourError(reason);

16-

const message = formatted.toUpperCase();

17-

if (CIAO_CANCELLATION_MESSAGE_RE.test(message)) {

18-

return { kind: "cancellation", formatted };

19-

}

20-

if (CIAO_INTERFACE_ASSERTION_MESSAGE_RE.test(message)) {

21-

return { kind: "interface-assertion", formatted };

14+

function collectCiaoProcessErrorCandidates(reason: unknown): unknown[] {

15+

const queue: unknown[] = [reason];

16+

const seen = new Set<unknown>();

17+

const candidates: unknown[] = [];

18+19+

while (queue.length > 0) {

20+

const current = queue.shift();

21+

if (current == null || seen.has(current)) {

22+

continue;

23+

}

24+

seen.add(current);

25+

candidates.push(current);

26+27+

if (!current || typeof current !== "object") {

28+

continue;

29+

}

30+

const record = current as Record<string, unknown>;

31+

for (const nested of [

32+

record.cause,

33+

record.reason,

34+

record.original,

35+

record.error,

36+

record.data,

37+

]) {

38+

if (nested != null && !seen.has(nested)) {

39+

queue.push(nested);

40+

}

41+

}

42+

if (Array.isArray(record.errors)) {

43+

for (const nested of record.errors) {

44+

if (nested != null && !seen.has(nested)) {

45+

queue.push(nested);

46+

}

47+

}

48+

}

2249

}

23-

if (CIAO_NETMASK_ASSERTION_MESSAGE_RE.test(message)) {

24-

return { kind: "netmask-assertion", formatted };

50+51+

return candidates;

52+

}

53+54+

export function classifyCiaoProcessError(reason: unknown): CiaoProcessErrorClassification | null {

55+

for (const candidate of collectCiaoProcessErrorCandidates(reason)) {

56+

const formatted = formatBonjourError(candidate);

57+

const message = formatted.toUpperCase();

58+

if (CIAO_CANCELLATION_MESSAGE_RE.test(message)) {

59+

return { kind: "cancellation", formatted };

60+

}

61+

if (CIAO_INTERFACE_ASSERTION_MESSAGE_RE.test(message)) {

62+

return { kind: "interface-assertion", formatted };

63+

}

64+

if (CIAO_NETMASK_ASSERTION_MESSAGE_RE.test(message)) {

65+

return { kind: "netmask-assertion", formatted };

66+

}

2567

}

2668

return null;

2769

}