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

推荐订阅源

Hugging Face - Blog
Hugging Face - Blog
Recent Announcements
Recent Announcements
V
Visual Studio Blog
博客园 - 叶小钗
H
Help Net Security
aimingoo的专栏
aimingoo的专栏
宝玉的分享
宝玉的分享
U
Unit 42
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
F
Fortinet All Blogs
V
V2EX
Stack Overflow Blog
Stack Overflow Blog
WordPress大学
WordPress大学
D
DataBreaches.Net
J
Java Code Geeks
H
Hackread – Cybersecurity News, Data Breaches, AI and More
A
About on SuperTechFans
酷 壳 – CoolShell
酷 壳 – CoolShell
量子位
C
Check Point Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
小众软件
小众软件
Microsoft Azure Blog
Microsoft Azure Blog
M
MIT News - Artificial intelligence

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(release): stabilize beta validation lanes · openclaw...
steipete · 2026-05-31 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -6,10 +6,11 @@ import {

66

import type { TelegramGroupConfig } from "openclaw/plugin-sdk/config-contracts";

77

import type { GetReplyOptions, MsgContext } from "openclaw/plugin-sdk/reply-runtime";

88

import { sanitizeTerminalText } from "openclaw/plugin-sdk/test-fixtures";

9-

import { afterAll, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";

9+

import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";

1010

import type { TelegramBotOptions } from "./bot.types.js";

1111

import type { TelegramGetChat } from "./bot/types.js";

1212

const harness = await import("./bot.create-telegram-bot.test-harness.js");

13+

const pluginStateTestRuntime = await import("openclaw/plugin-sdk/plugin-state-test-runtime");

1314

const conversationRuntime = await import("openclaw/plugin-sdk/conversation-runtime");

1415

const configMutation = await import("openclaw/plugin-sdk/config-mutation");

1516

const sessionStoreRuntime = await import("openclaw/plugin-sdk/session-store-runtime");

@@ -57,6 +58,7 @@ const {

5758

} = await import("./bot-core.js");

5859

const { resolveTelegramConversationRoute } = await import("./conversation-route.js");

5960

const { clearAccountThrottlersForTest } = await import("./account-throttler.js");

61+

const messageDispatchDedupe = await import("./message-dispatch-dedupe.js");

6062

const {

6163

buildTelegramGroupFrom,

6264

buildTelegramThreadParams,

@@ -232,7 +234,11 @@ describe("createTelegramBot", () => {

232234

process.env.TZ = ORIGINAL_TZ;

233235

}

234236

});

235-

beforeEach(() => {

237+

afterEach(() => {

238+

messageDispatchDedupe.setTelegramMessageDispatchDedupeStoreForTest(undefined);

239+

pluginStateTestRuntime.resetPluginStateStoreForTests();

240+

});

241+

beforeEach(async () => {

236242

resetTelegramForumFlagCacheForTest();

237243

clearAccountThrottlersForTest();

238244

throttlerSpy.mockReset();

@@ -244,6 +250,15 @@ describe("createTelegramBot", () => {

244250

...opts,

245251

telegramDeps: telegramBotDepsForTest,

246252

});

253+

pluginStateTestRuntime.resetPluginStateStoreForTests({ closeDatabase: false });

254+

const store = pluginStateTestRuntime.createPluginStateKeyedStoreForTests("telegram", {

255+

namespace: messageDispatchDedupe.TELEGRAM_MESSAGE_DISPATCH_DEDUPE_NAMESPACE,

256+

maxEntries: messageDispatchDedupe.TELEGRAM_MESSAGE_DISPATCH_DEDUPE_MAX_ENTRIES,

257+

}) as NonNullable<

258+

Parameters<typeof messageDispatchDedupe.setTelegramMessageDispatchDedupeStoreForTest>[0]

259+

>;

260+

await store.clear();

261+

messageDispatchDedupe.setTelegramMessageDispatchDedupeStoreForTest(store);

247262

});

248263
249264

// groupPolicy tests