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

推荐订阅源

Martin Fowler
Martin Fowler
大猫的无限游戏
大猫的无限游戏
J
Java Code Geeks
罗磊的独立博客
雷峰网
雷峰网
G
Google Developers Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
爱范儿
爱范儿
B
Blog RSS Feed
腾讯CDC
Apple Machine Learning Research
Apple Machine Learning Research
D
Docker
Recent Announcements
Recent Announcements
T
Tailwind CSS Blog
博客园 - 聂微东
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Vercel News
Vercel News
小众软件
小众软件
人人都是产品经理
人人都是产品经理
云风的 BLOG
云风的 BLOG
IT之家
IT之家
Blog — PlanetScale
Blog — PlanetScale
I
InfoQ
S
SegmentFault 最新的问题

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(e2e): tighten onboard status assertions · openclaw/o...
vincentkoc · 2026-06-03 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -26,6 +26,25 @@ function runAssert(home: string, channel: string, ...tokens: string[]) {

2626

);

2727

}

2828
29+

function runStatusAssert(channel: string, channelsStatus: unknown, statusText: string) {

30+

const tempDir = fs.mkdtempSync(path.join(os.tmpdir(), "openclaw-status-assertions-"));

31+

try {

32+

const channelsStatusPath = path.join(tempDir, "channels-status.json");

33+

const statusTextPath = path.join(tempDir, "status.txt");

34+

fs.writeFileSync(channelsStatusPath, JSON.stringify(channelsStatus));

35+

fs.writeFileSync(statusTextPath, statusText);

36+

return spawnSync(

37+

process.execPath,

38+

[assertionsPath, "assert-status-surfaces", channel, channelsStatusPath, statusTextPath],

39+

{

40+

encoding: "utf8",

41+

},

42+

);

43+

} finally {

44+

fs.rmSync(tempDir, { force: true, recursive: true });

45+

}

46+

}

47+
2948

describe("npm onboard channel agent assertions", () => {

3049

it("validates channel tokens in their canonical config fields", () => {

3150

const tempDir = fs.mkdtempSync(path.join(os.tmpdir(), "openclaw-channel-assertions-"));

@@ -59,4 +78,50 @@ describe("npm onboard channel agent assertions", () => {

5978

fs.rmSync(tempDir, { force: true, recursive: true });

6079

}

6180

});

81+
82+

it("validates configured channels in the plain status Channels section", () => {

83+

const result = runStatusAssert(

84+

"telegram",

85+

{ configuredChannels: ["telegram"] },

86+

[

87+

"# OpenClaw status",

88+

"",

89+

"# Overview",

90+

"OS macOS",

91+

"",

92+

"# Channels",

93+

"Channel State Detail",

94+

"telegram ok configured",

95+

"",

96+

"# Sessions",

97+

"No sessions",

98+

].join("\n"),

99+

);

100+
101+

expect(result.status).toBe(0);

102+

});

103+
104+

it("rejects plain status output that mentions the channel outside the Channels section", () => {

105+

const result = runStatusAssert(

106+

"telegram",

107+

{ configuredChannels: ["telegram"] },

108+

[

109+

"# OpenClaw status",

110+

"",

111+

"# Overview",

112+

"OS macOS",

113+

"",

114+

"# Channels",

115+

"No channels configured",

116+

"",

117+

"# Sessions",

118+

"telegram appeared in an unrelated session note",

119+

].join("\n"),

120+

);

121+
122+

expect(result.status).not.toBe(0);

123+

expect(result.stderr).toContain(

124+

"plain status output did not mention telegram in the Channels section",

125+

);

126+

});

62127

});