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

推荐订阅源

IT之家
IT之家
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
大猫的无限游戏
大猫的无限游戏
美团技术团队
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园_首页
MyScale Blog
MyScale Blog
N
Netflix TechBlog - Medium
I
InfoQ
Jina AI
Jina AI
Martin Fowler
Martin Fowler
Recent Announcements
Recent Announcements
量子位
月光博客
月光博客
罗磊的独立博客
雷峰网
雷峰网
The Cloudflare Blog
V
V2EX
小众软件
小众软件
人人都是产品经理
人人都是产品经理
博客园 - Franky
T
Tailwind CSS Blog
有赞技术团队
有赞技术团队
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: verify channel warning values · openclaw/openclaw@9...
shakkernerd · 2026-05-11 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -126,8 +126,8 @@ describe("signal groups schema", () => {

126126

},

127127

});

128128
129-

expect(issues.map((issue) => issue.path.join("."))).toContainEqual(

130-

expect.stringMatching(/^groups/),

131-

);

129+

expect(

130+

issues.map((issue) => issue.path.join(".")).some((entry) => entry.startsWith("groups")),

131+

).toBe(true);

132132

});

133133

});

Original file line numberDiff line numberDiff line change

@@ -168,7 +168,9 @@ describe("resolveDefaultTelegramAccountId", () => {

168168
169169

const result = resolveDefaultTelegramAccountId(cfg);

170170

expect(result).toBe("alerts");

171-

expect(warnMock).toHaveBeenCalledWith(expect.stringContaining("accounts.default is missing"));

171+

expect(warnMock).toHaveBeenCalledWith(

172+

'channels.telegram: accounts.default is missing; falling back to "alerts". Set channels.telegram.defaultAccount or add channels.telegram.accounts.default to avoid routing surprises in multi-account setups.',

173+

);

172174

});

173175
174176

it("does not warn when accounts.default exists", () => {

Original file line numberDiff line numberDiff line change

@@ -375,7 +375,7 @@ describe("handleTelegramAction", () => {

375375

expect(options.mediaUrl).toBeUndefined();

376376

expect(result.content).toContainEqual({

377377

type: "text",

378-

text: expect.stringContaining('"ok": true'),

378+

text: '{\n "ok": true,\n "messageId": "789",\n "chatId": "123"\n}',

379379

});

380380

});

381381
Original file line numberDiff line numberDiff line change

@@ -198,7 +198,9 @@ describe("telegram bot message processor", () => {

198198

"Something went wrong while processing your request. Please try again.",

199199

{ message_thread_id: 456 },

200200

);

201-

expect(runtimeError).toHaveBeenCalledWith(expect.stringContaining("dispatch exploded"));

201+

expect(runtimeError).toHaveBeenCalledWith(

202+

"telegram message processing failed: Error: dispatch exploded",

203+

);

202204

});

203205
204206

it("omits message_thread_id for General-topic fallback replies", async () => {

@@ -236,6 +238,8 @@ describe("telegram bot message processor", () => {

236238

"Something went wrong while processing your request. Please try again.",

237239

undefined,

238240

);

239-

expect(runtimeError).toHaveBeenCalledWith(expect.stringContaining("dispatch exploded"));

241+

expect(runtimeError).toHaveBeenCalledWith(

242+

"telegram message processing failed: Error: dispatch exploded",

243+

);

240244

});

241245

});

Original file line numberDiff line numberDiff line change

@@ -112,7 +112,7 @@ describe("telegramPlugin gateway startup", () => {

112112

await expect(task).rejects.toThrow("channels.telegram.accounts.ops.botToken/tokenFile");

113113

expect(monitorTelegramProvider).not.toHaveBeenCalled();

114114

expect(ctx.log?.error).toHaveBeenCalledWith(

115-

expect.stringContaining('Telegram bot token unauthorized for account "ops"'),

115+

'[ops] Telegram bot token unauthorized for account "ops" (getMe returned 401 from Telegram; source: config token). Update channels.telegram.accounts.ops.botToken/tokenFile with the current BotFather token.',

116116

);

117117

});

118118
Original file line numberDiff line numberDiff line change

@@ -481,9 +481,9 @@ describe("telegram doctor", () => {

481481

configured: false,

482482

config: {},

483483

});

484-

expect(collectTelegramMissingEnvTokenWarnings({ cfg, env: {} })).toEqual([

485-

expect.stringContaining("TELEGRAM_BOT_TOKEN is absent"),

486-

]);

484+

const missingEnvWarning =

485+

"- channels.telegram: default account has no available bot token, and TELEGRAM_BOT_TOKEN is absent in this doctor environment. After migration, verify TELEGRAM_BOT_TOKEN is present in the state-dir .env or configure channels.telegram.botToken / channels.telegram.accounts.default.botToken as a SecretRef.";

486+

expect(collectTelegramMissingEnvTokenWarnings({ cfg, env: {} })).toEqual([missingEnvWarning]);

487487
488488

inspectTelegramAccountMock.mockReturnValueOnce({

489489

enabled: true,

@@ -511,7 +511,7 @@ describe("telegram doctor", () => {

511511

doctorFixCommand: "openclaw doctor --fix",

512512

env: {},

513513

}),

514-

).toContainEqual(expect.stringContaining("TELEGRAM_BOT_TOKEN is absent"));

514+

).toContain(missingEnvWarning);

515515

});

516516
517517

it("does not warn about TELEGRAM_BOT_TOKEN when a non-default account is selected", () => {