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

推荐订阅源

腾讯CDC
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 叶小钗
人人都是产品经理
人人都是产品经理
博客园 - 聂微东
The Cloudflare Blog
爱范儿
爱范儿
阮一峰的网络日志
阮一峰的网络日志
WordPress大学
WordPress大学
小众软件
小众软件
博客园 - 三生石上(FineUI控件)
Last Week in AI
Last Week in AI
Jina AI
Jina AI
V
V2EX
罗磊的独立博客
V
Visual Studio Blog
A
About on SuperTechFans
IT之家
IT之家
P
Proofpoint News Feed
B
Blog
博客园 - Franky
Blog — PlanetScale
Blog — PlanetScale
Google DeepMind News
Google DeepMind News
Y
Y Combinator 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(telegram): bound dispatch dedupe state · openclaw/ope...
obviyus · 2026-06-10 · via Recent Commits to openclaw:main

@@ -14,9 +14,12 @@ import { afterEach, describe, expect, it } from "vitest";

1414

import { resolveTelegramBotInfoCachePath } from "./bot-info-cache.js";

1515

import { resolveTelegramMessageCachePath } from "./message-cache.js";

1616

import {

17+

buildTelegramMessageDispatchAccountReplayKey,

1718

resolveTelegramMessageDispatchLegacyPath,

18-

TELEGRAM_MESSAGE_DISPATCH_DEDUPE_MAX_ENTRIES,

19+

TELEGRAM_MESSAGE_DISPATCH_DEDUPE_NAMESPACE,

1920

TELEGRAM_MESSAGE_DISPATCH_DEDUPE_NAMESPACE_PREFIX,

21+

TELEGRAM_MESSAGE_DISPATCH_DEDUPE_STATE_PLUGIN_ID,

22+

TELEGRAM_MESSAGE_DISPATCH_DEDUPE_STATE_MAX_ENTRIES,

2023

TELEGRAM_MESSAGE_DISPATCH_DEDUPE_TTL_MS,

2124

} from "./message-dispatch-dedupe.js";

2225

import { detectTelegramLegacyStateMigrations } from "./state-migrations.js";

@@ -369,7 +372,7 @@ describe("telegram state migrations", () => {

369372

} as OpenClawConfig;

370373

const plans = await detectTelegramLegacyStateMigrations({ cfg, env });

371374

const dispatchNamespace = resolvePersistentDedupePluginStateNamespace({

372-

namespace: "ops",

375+

namespace: TELEGRAM_MESSAGE_DISPATCH_DEDUPE_NAMESPACE,

373376

namespacePrefix: TELEGRAM_MESSAGE_DISPATCH_DEDUPE_NAMESPACE_PREFIX,

374377

});

375378

@@ -396,6 +399,7 @@ describe("telegram state migrations", () => {

396399

});

397400

expect(byLabel.get("Telegram message dispatch dedupe")).toMatchObject({

398401

kind: "plugin-state-import",

402+

pluginId: TELEGRAM_MESSAGE_DISPATCH_DEDUPE_STATE_PLUGIN_ID,

399403

sourcePath: dispatchPath,

400404

namespace: dispatchNamespace,

401405

});

@@ -407,7 +411,10 @@ describe("telegram state migrations", () => {

407411

{

408412

key: expect.stringMatching(/^k\.[a-f0-9]{32}$/),

409413

value: {

410-

key: JSON.stringify(["message", "7", 42]),

414+

key: buildTelegramMessageDispatchAccountReplayKey({

415+

accountId: "ops",

416+

key: JSON.stringify(["message", "7", 42]),

417+

}),

411418

seenAt: now,

412419

},

413420

},

@@ -437,7 +444,7 @@ describe("telegram state migrations", () => {

437444

const now = Date.now();

438445

const replayKey = JSON.stringify(["message", "7", 42]);

439446

const dispatchNamespace = resolvePersistentDedupePluginStateNamespace({

440-

namespace: "ops",

447+

namespace: TELEGRAM_MESSAGE_DISPATCH_DEDUPE_NAMESPACE,

441448

namespacePrefix: TELEGRAM_MESSAGE_DISPATCH_DEDUPE_NAMESPACE_PREFIX,

442449

});

443450

try {

@@ -476,6 +483,7 @@ describe("telegram state migrations", () => {

476483477484

expect(plan).toMatchObject({

478485

kind: "plugin-state-import",

486+

pluginId: TELEGRAM_MESSAGE_DISPATCH_DEDUPE_STATE_PLUGIN_ID,

479487

namespace: dispatchNamespace,

480488

});

481489

if (!plan || plan.kind !== "plugin-state-import") {

@@ -486,18 +494,24 @@ describe("telegram state migrations", () => {

486494

{

487495

key: expect.stringMatching(/^k\.[a-f0-9]{32}$/),

488496

value: {

489-

key: replayKey,

497+

key: buildTelegramMessageDispatchAccountReplayKey({

498+

accountId: "ops",

499+

key: replayKey,

500+

}),

490501

seenAt: now,

491502

},

492503

},

493504

]);

494505495-

const targetStore = createPluginStateSyncKeyedStoreForTests("telegram", {

496-

namespace: dispatchNamespace,

497-

maxEntries: TELEGRAM_MESSAGE_DISPATCH_DEDUPE_MAX_ENTRIES,

498-

defaultTtlMs: TELEGRAM_MESSAGE_DISPATCH_DEDUPE_TTL_MS,

499-

env,

500-

});

506+

const targetStore = createPluginStateSyncKeyedStoreForTests(

507+

TELEGRAM_MESSAGE_DISPATCH_DEDUPE_STATE_PLUGIN_ID,

508+

{

509+

namespace: dispatchNamespace,

510+

maxEntries: TELEGRAM_MESSAGE_DISPATCH_DEDUPE_STATE_MAX_ENTRIES,

511+

defaultTtlMs: TELEGRAM_MESSAGE_DISPATCH_DEDUPE_TTL_MS,

512+

env,

513+

},

514+

);

501515

for (const entry of entries) {

502516

targetStore.register(

503517

entry.key,