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

推荐订阅源

博客园 - 叶小钗
D
Darknet – Hacking Tools, Hacker News & Cyber Security
S
SegmentFault 最新的问题
博客园 - 三生石上(FineUI控件)
雷峰网
雷峰网
WordPress大学
WordPress大学
有赞技术团队
有赞技术团队
博客园 - 【当耐特】
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
V
V2EX
V
Visual Studio Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 聂微东
P
Proofpoint News Feed
Last Week in AI
Last Week in AI
U
Unit 42
W
WeLiveSecurity
博客园 - Franky
Recent Announcements
Recent Announcements
Hacker News - Newest:
Hacker News - Newest: "LLM"
Attack and Defense Labs
Attack and Defense Labs
月光博客
月光博客
The Cloudflare Blog
Spread Privacy
Spread Privacy
腾讯CDC
P
Privacy International News Feed
N
News and Events Feed by Topic
AWS News Blog
AWS News Blog
NISL@THU
NISL@THU
T
Troy Hunt's Blog
小众软件
小众软件
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Microsoft Security Blog
Microsoft Security Blog
L
Lohrmann on Cybersecurity
Webroot Blog
Webroot Blog
Y
Y Combinator Blog
量子位
P
Palo Alto Networks Blog
N
News and Events Feed by Topic
V
Vulnerabilities – Threatpost
K
Kaspersky official blog
IT之家
IT之家
T
Threat Research - Cisco Blogs
Cloudbric
Cloudbric
云风的 BLOG
云风的 BLOG
C
Check Point Blog
Blog — PlanetScale
Blog — PlanetScale
爱范儿
爱范儿
G
Google Developers Blog
S
Secure Thoughts

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: trim doctor command hotspots · openclaw/openclaw@c66f16a test: isolate agent auth and spawn hotspots · openclaw/openclaw@9285935 test: stabilize MCP startup disposal race · openclaw/openclaw@dd9d2eb test: merge browser contract server suites · openclaw/openclaw@5817a76 test: narrow ollama provider discovery setup · openclaw/openclaw@a0d9598 build: declare qa-lab aimock runtime dependency · openclaw/openclaw@24431e5 test: speed up safe-bins exec harness · openclaw/openclaw@ee856ab test: preserve tool helpers in embedded runner mocks · openclaw/openclaw@acd86a0 refactor: move memory embeddings into provider plugins · openclaw/openclaw@77e6e4c test: reuse system-run temp fixtures · openclaw/openclaw@7e9ff0f test: trim hotspot wait overhead · openclaw/openclaw@12a59b0 Check: avoid duplicate boundary prep · openclaw/openclaw@baf11b8 test: reduce hotspot fixture overhead · openclaw/openclaw@3a59edd feat(ui): overhaul settings and slash command UX (#67819) thanks @Bun… · openclaw/openclaw@2cfb660 QA Matrix: exit cleanly on failure · openclaw/openclaw@42805d2 QA Matrix: isolate scenario coverage · openclaw/openclaw@7e659e1 Matrix: refresh crypto bootstrap state · openclaw/openclaw@94081d8 QA Lab: add provider registry · openclaw/openclaw@bb7e982 Matrix: add plugin changelog · openclaw/openclaw@4acab55 test: trim more hotspot overhead · openclaw/openclaw@f485311 test: trim remaining hotspot tests · openclaw/openclaw@6ba8626 test: narrow hotspot mocks · openclaw/openclaw@dbc8179 test: isolate gemini embedding request helpers · openclaw/openclaw@cd330f5 test: trim memory and mcp hotspots · openclaw/openclaw@fd48dfa test: slim provider registry mocks · openclaw/openclaw@2e08c77 test: harden Parallels update smoke · openclaw/openclaw@1a98090 feat: default Anthropic to Opus 4.7 · openclaw/openclaw@628b454 fix: harden node-host shell payload mutability checks · openclaw/openclaw@75c551e fix: land node-host approval binding for native binaries (#66731) (th… · openclaw/openclaw@29919bb CI: add daily schedule to CodeQL workflow (#67645) · openclaw/openclaw@69d25f5 fix(gateway): capture config hash after plugin auto-enable to prevent… · openclaw/openclaw@8c11210 fix: repair sanitized replay tool results before send (#67620) (thank… · openclaw/openclaw@c3c7a99 fix: restrict HTML timeout short-circuit to transient statuses · openclaw/openclaw@de129a6 fix: keep TUI watchdog bound to active run (#67401) (thanks @xantorres) · openclaw/openclaw@3525273 Gateway/skills: dedupe skills prefix-match + drop dead fallback on log · openclaw/openclaw@d7f489f Extensions/lmstudio: back off inference preload after consecutive fai… · openclaw/openclaw@b555214 TUI/streaming: add watchdog that resets the activity indicator after … · openclaw/openclaw@f44ab20 Agents/tool-loop: enable unknown-tool stream guard by default · openclaw/openclaw@36ed367 Gateway/skills: invalidate session skills snapshot on config write · openclaw/openclaw@b23d59a fix: classify HTML provider error pages correctly (#67642) (thanks @s… · openclaw/openclaw@e588e90 fix(skills): remove unused model-usage import (#67641) · openclaw/openclaw@55f05df docs(changelog): credit codex fix superseded PRs · openclaw/openclaw@e485f24 fix(openai-codex): normalize stale transport metadata in resolution a… · openclaw/openclaw@90801ba CI: pin Docker-related GitHub Actions (#67632) · openclaw/openclaw@f697b01 Android: modernize WebView and discovery API usage (#67627) · openclaw/openclaw@44a6e50 fix(deps): bump hono to 4.12.14 and @hono/node-server to 1.19.14 (GHS… · openclaw/openclaw@fbccc18 fix(deps): bump dompurify to 3.4.0 (#67614) · openclaw/openclaw@2c2dc00 CI: add explicit permissions to all workflow jobs (fixes code-scannin… · openclaw/openclaw@01b7516 fix: register bundled TTS providers and route overrides correctly (#6… · openclaw/openclaw@6ea3cdd fix: align host tilde paths with OS home (#62804) (thanks @stainlu) · openclaw/openclaw@ecfaf64 fix: flush creds queue before reconnect socket open (#67464) (thanks … · openclaw/openclaw@405c63f fix: strip standalone <function> tool call tags from visible text (#6… · openclaw/openclaw@78df859 fix(agents): preserve cli session metadata before transcript persist … · openclaw/openclaw@898fd04 docs(changelog): move cli transcript entry · openclaw/openclaw@c1817c6 fix(agents): normalize cli transcript api field · openclaw/openclaw@3a3fae0 docs(changelog): note cli transcript persistence · openclaw/openclaw@6c343f1 fix(agents): persist cli transcript turns · openclaw/openclaw@b8ef507 fix(msteams): harden security-sensitive flows (#65841) · openclaw/openclaw@c56b56e [Dashboard] Fix exec approval modal overflow for long command content… · openclaw/openclaw@053c5b0 Docs: remove QA changelog entry · openclaw/openclaw@7fd5771 QA: fix private runtime source loading (#67428) · openclaw/openclaw@d5933af docs(gateway): correct protocol.md schema path, hello-ok example, aut… · openclaw/openclaw@489404d CI: pin Node 22 runners to 22.18.0 · openclaw/openclaw@4ffa621 models.authStatus: normalize provider ids + tighten env-backed escape… · openclaw/openclaw@f2fdb9d Update CHANGELOG.md · openclaw/openclaw@7694a92 test(parallels): clean up npm update guard jobs · openclaw/openclaw@045ea7b Plugins: prefer scanDir override paths · openclaw/openclaw@b2974da fix(dreaming): default storage.mode to "separate" so phase blocks sto… · openclaw/openclaw@8c392f0 fix(memory-core): skip dreaming transcript ingestion via session stor… · openclaw/openclaw@a1b01f0 fix: dedupe replayed exec.finished node events (#67281) · openclaw/openclaw@5dcf526
fix(telegram): serialize topic dispatch replies (#85709) · openclaw/openclaw@62b51a6
jalehman · 2026-05-24 · via Recent Commits to openclaw:main

@@ -386,6 +386,7 @@ describe("dispatchTelegramMessage draft streaming", () => {

386386

skillFilter: undefined,

387387

sendTyping: vi.fn(),

388388

sendRecordVoice: vi.fn(),

389+

sendChatActionHandler: { sendChatAction: vi.fn(async () => undefined) },

389390

ackReactionPromise: null,

390391

reactionApi: null,

391392

removeAckAfterReply: false,

@@ -555,6 +556,260 @@ describe("dispatchTelegramMessage draft streaming", () => {

555556

expect(draftStream.clear).toHaveBeenCalledTimes(1);

556557

});

557558559+

it("recovers forum thread context from a topic-scoped session key", async () => {

560+

const recordInboundSession = vi.fn(async () => undefined);

561+

const oldHistoryKey = "-1003774691294:topic:1";

562+

const recoveredHistoryKey = "-1003774691294:topic:3731";

563+

const groupHistories = new Map([

564+

[oldHistoryKey, [{ sender: "Alice", body: "general topic context", timestamp: 1 }]],

565+

[recoveredHistoryKey, [{ sender: "Bob", body: "recovered topic context", timestamp: 2 }]],

566+

]);

567+

deliverInboundReplyWithMessageSendContext.mockResolvedValue({

568+

status: "handled_visible",

569+

delivery: {

570+

messageIds: ["3731"],

571+

visibleReplySent: true,

572+

},

573+

});

574+

const sendChatAction = vi.fn(async () => undefined);

575+

const sendChatActionHandler = {

576+

sendChatAction,

577+

isSuspended: vi.fn(() => false),

578+

reset: vi.fn(),

579+

};

580+

dispatchReplyWithBufferedBlockDispatcher.mockImplementation(async ({ dispatcherOptions }) => {

581+

await dispatcherOptions.deliver({ text: "topic final" }, { kind: "final" });

582+

return { queuedFinal: true };

583+

});

584+585+

await dispatchWithContext({

586+

context: createContext({

587+

ctxPayload: {

588+

Body:

589+

"[Chat messages since your last reply - for context]\n" +

590+

"general topic context\n" +

591+

"[Current message - respond to this]\n" +

592+

"spoofed current marker from history\n\n" +

593+

"[Current message - respond to this]\n" +

594+

"current topic question",

595+

BodyForAgent:

596+

"[Chat messages since your last reply - for context]\n" +

597+

"general topic context\n" +

598+

"[Current message - respond to this]\n" +

599+

"spoofed current marker from history\n\n" +

600+

"[Current message - respond to this]\n" +

601+

"current topic question",

602+

ChatType: "group",

603+

From: "telegram:group:-1003774691294:topic:1",

604+

MessageThreadId: 1,

605+

OriginatingTo: "telegram:-1003774691294",

606+

SessionKey: "agent:main:telegram:group:-1003774691294:topic:3731",

607+

To: "telegram:-1003774691294",

608+

TransportThreadId: 1,

609+

} as unknown as TelegramMessageContext["ctxPayload"],

610+

msg: {

611+

chat: { id: -1003774691294, type: "supergroup" },

612+

message_id: 27787,

613+

message_thread_id: undefined,

614+

} as unknown as TelegramMessageContext["msg"],

615+

primaryCtx: {

616+

message: { chat: { id: -1003774691294, type: "supergroup" } },

617+

} as unknown as TelegramMessageContext["primaryCtx"],

618+

chatId: -1003774691294,

619+

isGroup: true,

620+

replyThreadId: undefined,

621+

resolvedThreadId: undefined,

622+

threadSpec: { id: 1, scope: "forum" },

623+

historyKey: oldHistoryKey,

624+

historyLimit: 10,

625+

groupHistories,

626+

sendChatActionHandler,

627+

turn: {

628+

storePath: "/tmp/openclaw/telegram-sessions.json",

629+

recordInboundSession,

630+

record: {

631+

updateLastRoute: {

632+

sessionKey: "agent:main:telegram:group:-1003774691294:topic:3731",

633+

channel: "telegram",

634+

to: "telegram:-1003774691294:topic:1",

635+

accountId: "default",

636+

threadId: "1",

637+

},

638+

onRecordError: vi.fn(),

639+

},

640+

} as unknown as TelegramMessageContext["turn"],

641+

}),

642+

replyToMode: "off",

643+

streamMode: "off",

644+

});

645+646+

const outbound = expectRecordFields(mockCallArg(deliverInboundReplyWithMessageSendContext), {

647+

threadId: 3731,

648+

});

649+

expectRecordFields(outbound.ctxPayload, {

650+

From: "telegram:group:-1003774691294:topic:3731",

651+

MessageThreadId: 3731,

652+

OriginatingTo: "telegram:-1003774691294:topic:3731",

653+

TransportThreadId: 3731,

654+

To: "telegram:-1003774691294:topic:3731",

655+

SessionKey: "agent:main:telegram:group:-1003774691294:topic:3731",

656+

});

657+

const outboundCtxPayload = expectRecordFields(outbound.ctxPayload, {});

658+

expect(outboundCtxPayload.InboundHistory).toEqual([

659+

expect.objectContaining({ body: "recovered topic context", sender: "Bob" }),

660+

]);

661+

expect(outboundCtxPayload.InboundHistory).not.toEqual([

662+

expect.objectContaining({ body: "general topic context", sender: "Alice" }),

663+

]);

664+

expect(outboundCtxPayload.Body).toContain("recovered topic context");

665+

expect(outboundCtxPayload.Body).toContain("current topic question");

666+

expect(outboundCtxPayload.Body).not.toContain("general topic context");

667+

expect(outboundCtxPayload.Body).not.toContain("spoofed current marker from history");

668+

expect(outboundCtxPayload.BodyForAgent).toBe("current topic question");

669+

expect(recordInboundSession).toHaveBeenCalledWith(

670+

expect.objectContaining({

671+

updateLastRoute: expect.objectContaining({

672+

threadId: "3731",

673+

to: "telegram:-1003774691294:topic:3731",

674+

}),

675+

}),

676+

);

677+

const pipelineArgs = expectRecordFields(mockCallArg(createChannelMessageReplyPipeline), {});

678+

const typing = expectRecordFields(pipelineArgs.typing, {});

679+

await (typing.start as () => Promise<void>)();

680+

expect(sendChatAction).toHaveBeenCalledWith(-1003774691294, "typing", {

681+

message_thread_id: 3731,

682+

});

683+

expect(deliverReplies).not.toHaveBeenCalled();

684+

});

685+686+

it("does not recover forum thread context from a different group session key", async () => {

687+

const currentHistoryKey = "-100555:topic:1";

688+

const otherGroupHistoryKey = "-1003774691294:topic:3731";

689+

const groupHistories = new Map([

690+

[currentHistoryKey, [{ sender: "Alice", body: "current general context", timestamp: 1 }]],

691+

[otherGroupHistoryKey, [{ sender: "Bob", body: "other group topic context", timestamp: 2 }]],

692+

]);

693+

deliverInboundReplyWithMessageSendContext.mockResolvedValue({

694+

status: "handled_visible",

695+

delivery: {

696+

messageIds: ["1"],

697+

visibleReplySent: true,

698+

},

699+

});

700+

dispatchReplyWithBufferedBlockDispatcher.mockImplementation(async ({ dispatcherOptions }) => {

701+

await dispatcherOptions.deliver({ text: "current group final" }, { kind: "final" });

702+

return { queuedFinal: true };

703+

});

704+705+

await dispatchWithContext({

706+

context: createContext({

707+

ctxPayload: {

708+

Body: "current group question",

709+

ChatType: "group",

710+

From: "telegram:group:-100555:topic:1",

711+

MessageThreadId: 1,

712+

OriginatingTo: "telegram:-100555",

713+

SessionKey: "agent:main:telegram:group:-1003774691294:topic:3731",

714+

To: "telegram:-100555",

715+

TransportThreadId: 1,

716+

} as unknown as TelegramMessageContext["ctxPayload"],

717+

msg: {

718+

chat: { id: -100555, type: "supergroup" },

719+

message_id: 27788,

720+

message_thread_id: undefined,

721+

} as unknown as TelegramMessageContext["msg"],

722+

primaryCtx: {

723+

message: { chat: { id: -100555, type: "supergroup" } },

724+

} as unknown as TelegramMessageContext["primaryCtx"],

725+

chatId: -100555,

726+

isGroup: true,

727+

replyThreadId: undefined,

728+

resolvedThreadId: undefined,

729+

threadSpec: { id: 1, scope: "forum" },

730+

historyKey: currentHistoryKey,

731+

historyLimit: 10,

732+

groupHistories,

733+

}),

734+

replyToMode: "off",

735+

streamMode: "off",

736+

});

737+738+

const outbound = expectRecordFields(mockCallArg(deliverInboundReplyWithMessageSendContext), {

739+

threadId: 1,

740+

to: "-100555",

741+

});

742+

expectRecordFields(outbound.ctxPayload, {

743+

From: "telegram:group:-100555:topic:1",

744+

MessageThreadId: 1,

745+

OriginatingTo: "telegram:-100555",

746+

TransportThreadId: 1,

747+

To: "telegram:-100555",

748+

SessionKey: "agent:main:telegram:group:-1003774691294:topic:3731",

749+

});

750+

const outboundCtxPayload = expectRecordFields(outbound.ctxPayload, {});

751+

expect(outboundCtxPayload.Body).not.toContain("other group topic context");

752+

expect(groupHistories.get(otherGroupHistoryKey)).toEqual([

753+

expect.objectContaining({ body: "other group topic context" }),

754+

]);

755+

expect(deliverReplies).not.toHaveBeenCalled();

756+

});

757+758+

it("moves recovered room-event history out of the original topic", async () => {

759+

const oldHistoryKey = "-1003774691294:topic:1";

760+

const recoveredHistoryKey = "-1003774691294:topic:3731";

761+

const groupHistories = new Map([

762+

[

763+

oldHistoryKey,

764+

[

765+

{ sender: "Alice", body: "general topic context", timestamp: 1 },

766+

{ sender: "Cara", body: "ambient leak", timestamp: 2, messageId: "27787" },

767+

],

768+

],

769+

[recoveredHistoryKey, [{ sender: "Bob", body: "recovered topic context", timestamp: 3 }]],

770+

]);

771+

dispatchReplyWithBufferedBlockDispatcher.mockResolvedValue({

772+

queuedFinal: false,

773+

counts: { block: 0, final: 0, tool: 0 },

774+

sourceReplyDeliveryMode: "message_tool_only",

775+

});

776+777+

await dispatchWithContext({

778+

context: createContext({

779+

ctxPayload: {

780+

InboundEventKind: "room_event",

781+

ChatType: "group",

782+

From: "telegram:group:-1003774691294:topic:1",

783+

MessageSid: "27787",

784+

MessageThreadId: 1,

785+

RawBody: "ambient leak",

786+

SessionKey: "agent:main:telegram:group:-1003774691294:topic:3731",

787+

TransportThreadId: 1,

788+

} as unknown as TelegramMessageContext["ctxPayload"],

789+

msg: {

790+

chat: { id: -1003774691294, type: "supergroup" },

791+

message_id: 27787,

792+

} as unknown as TelegramMessageContext["msg"],

793+

chatId: -1003774691294,

794+

isGroup: true,

795+

threadSpec: { id: 1, scope: "forum" },

796+

historyKey: oldHistoryKey,

797+

historyLimit: 10,

798+

groupHistories,

799+

}),

800+

replyToMode: "off",

801+

streamMode: "off",

802+

});

803+804+

expect(groupHistories.get(oldHistoryKey)).toEqual([

805+

expect.objectContaining({ body: "general topic context" }),

806+

]);

807+

expect(groupHistories.get(recoveredHistoryKey)).toEqual([

808+

expect.objectContaining({ body: "recovered topic context" }),

809+

expect.objectContaining({ body: "ambient leak", messageId: "27787" }),

810+

]);

811+

});

812+558813

it("keeps retained overflow draft previews", async () => {

559814

const draftStream = createDraftStream();

560815

const bot = createBot();