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

推荐订阅源

云风的 BLOG
云风的 BLOG
Blog — PlanetScale
Blog — PlanetScale
博客园 - 【当耐特】
博客园_首页
The GitHub Blog
The GitHub Blog
月光博客
月光博客
Hugging Face - Blog
Hugging Face - Blog
有赞技术团队
有赞技术团队
博客园 - 三生石上(FineUI控件)
D
Docker
Stack Overflow Blog
Stack Overflow Blog
WordPress大学
WordPress大学
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Apple Machine Learning Research
Apple Machine Learning Research
Vercel News
Vercel News
酷 壳 – CoolShell
酷 壳 – CoolShell
雷峰网
雷峰网
小众软件
小众软件
I
InfoQ
A
About on SuperTechFans
T
The Blog of Author Tim Ferriss
S
SegmentFault 最新的问题
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - Franky

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
refactor(extensions): drop unused compatibility aliases ·...
vincentkoc · 2026-06-19 · via Recent Commits to openclaw:main
11

// Bonjour tests cover ciao plugin behavior.

22

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

334-

const { classifyCiaoUnhandledRejection, ignoreCiaoUnhandledRejection } = await import("./ciao.js");

4+

const { classifyCiaoProcessError } = await import("./ciao.js");

5566

describe("bonjour-ciao", () => {

77

it("classifies ciao cancellation rejections separately from side effects", () => {

8-

expect(classifyCiaoUnhandledRejection(new Error("CIAO PROBING CANCELLED"))).toEqual({

8+

expect(classifyCiaoProcessError(new Error("CIAO PROBING CANCELLED"))).toEqual({

99

kind: "cancellation",

1010

formatted: "CIAO PROBING CANCELLED",

1111

});

1212

});

13131414

it("classifies ciao interface assertions separately from side effects", () => {

1515

expect(

16-

classifyCiaoUnhandledRejection(

16+

classifyCiaoProcessError(

1717

new Error("Reached illegal state! IPV4 address change from defined to undefined!"),

1818

),

1919

).toEqual({

@@ -24,7 +24,7 @@ describe("bonjour-ciao", () => {

24242525

it("classifies ciao interface assertions using changed wording", () => {

2626

expect(

27-

classifyCiaoUnhandledRejection(

27+

classifyCiaoProcessError(

2828

new Error("Reached illegal state! IPv4 address changed from undefined to defined!"),

2929

),

3030

).toEqual({

@@ -35,7 +35,7 @@ describe("bonjour-ciao", () => {

35353636

it("classifies ciao netmask assertions separately from side effects", () => {

3737

expect(

38-

classifyCiaoUnhandledRejection(

38+

classifyCiaoProcessError(

3939

Object.assign(

4040

new Error(

4141

"IP address version must match. Netmask cannot have a version different from the address!",

@@ -52,7 +52,7 @@ describe("bonjour-ciao", () => {

52525353

it("classifies ciao self-probe races separately from side effects", () => {

5454

expect(

55-

classifyCiaoUnhandledRejection(

55+

classifyCiaoProcessError(

5656

new Error(

5757

"Can't probe for a service which is announced already. Received announcing for service OpenClaw Gateway._openclaw._tcp.local.",

5858

),

@@ -65,18 +65,18 @@ describe("bonjour-ciao", () => {

6565

});

66666767

it("suppresses ciao announcement cancellation rejections", () => {

68-

expect(ignoreCiaoUnhandledRejection(new Error("Ciao announcement cancelled by shutdown"))).toBe(

69-

true,

68+

expect(classifyCiaoProcessError(new Error("Ciao announcement cancelled by shutdown"))).not.toBe(

69+

null,

7070

);

7171

});

72727373

it("suppresses ciao probing cancellation rejections", () => {

74-

expect(ignoreCiaoUnhandledRejection(new Error("CIAO PROBING CANCELLED"))).toBe(true);

74+

expect(classifyCiaoProcessError(new Error("CIAO PROBING CANCELLED"))).not.toBe(null);

7575

});

76767777

it("suppresses wrapped ciao cancellation rejections", () => {

7878

expect(

79-

classifyCiaoUnhandledRejection({

79+

classifyCiaoProcessError({

8080

reason: new Error("CIAO ANNOUNCEMENT CANCELLED"),

8181

}),

8282

).toEqual({

@@ -87,7 +87,7 @@ describe("bonjour-ciao", () => {

87878888

it("suppresses aggregate ciao assertion rejections", () => {

8989

expect(

90-

classifyCiaoUnhandledRejection(

90+

classifyCiaoProcessError(

9191

new AggregateError([

9292

Object.assign(

9393

new Error("Reached illegal state! IPV4 address change from defined to undefined!"),

@@ -103,7 +103,7 @@ describe("bonjour-ciao", () => {

103103

});

104104105105

it("suppresses lower-case string cancellation reasons too", () => {

106-

expect(ignoreCiaoUnhandledRejection("ciao announcement cancelled during cleanup")).toBe(true);

106+

expect(classifyCiaoProcessError("ciao announcement cancelled during cleanup")).not.toBe(null);

107107

});

108108109109

it("suppresses ciao interface assertion rejections as non-fatal", () => {

@@ -112,7 +112,7 @@ describe("bonjour-ciao", () => {

112112

{ name: "AssertionError" },

113113

);

114114115-

expect(ignoreCiaoUnhandledRejection(error)).toBe(true);

115+

expect(classifyCiaoProcessError(error)).not.toBe(null);

116116

});

117117118118

it("suppresses ciao netmask assertion errors as non-fatal", () => {

@@ -123,15 +123,15 @@ describe("bonjour-ciao", () => {

123123

{ name: "AssertionError" },

124124

);

125125126-

expect(ignoreCiaoUnhandledRejection(error)).toBe(true);

126+

expect(classifyCiaoProcessError(error)).not.toBe(null);

127127

});

128128129129

it("classifies networkInterfaces SystemError failures (restricted sandboxes)", () => {

130130

const err = Object.assign(

131131

new Error("A system error occurred: uv_interface_addresses returned Unknown system error 1"),

132132

{ name: "SystemError" },

133133

);

134-

expect(classifyCiaoUnhandledRejection(err)).toEqual({

134+

expect(classifyCiaoProcessError(err)).toEqual({

135135

kind: "interface-enumeration-failure",

136136

formatted:

137137

"SystemError: A system error occurred: uv_interface_addresses returned Unknown system error 1",

@@ -144,10 +144,10 @@ describe("bonjour-ciao", () => {

144144

{ name: "SystemError" },

145145

);

146146

const wrapper = new Error("ciao NetworkManager init failed", { cause: inner });

147-

expect(ignoreCiaoUnhandledRejection(wrapper)).toBe(true);

147+

expect(classifyCiaoProcessError(wrapper)).not.toBe(null);

148148

});

149149150150

it("keeps unrelated rejections visible", () => {

151-

expect(ignoreCiaoUnhandledRejection(new Error("boom"))).toBe(false);

151+

expect(classifyCiaoProcessError(new Error("boom"))).toBe(null);

152152

});

153153

});