test: thread media-only inbound context · openclaw/openclaw@4923364
shakkernerd
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -372,11 +372,18 @@ describe("runPreparedReply media-only handling", () => {
|
372 | 372 | expect(directContextParams?.sessionCtx?.ChatType).toBe("direct"); |
373 | 373 | expect(directContextParams?.sourceReplyDeliveryMode).toBe("message_tool_only"); |
374 | 374 | expect(buildInboundUserContextPrefix).toHaveBeenCalledWith( |
375 | | -expect.objectContaining({ |
| 375 | +{ |
| 376 | +Body: "yo", |
| 377 | +BodyStripped: "yo", |
| 378 | +ThreadHistoryBody: "Earlier direct message", |
| 379 | +MediaPath: "/tmp/input.png", |
| 380 | +Provider: "telegram", |
376 | 381 | ChatType: "direct", |
377 | 382 | OriginatingChannel: "telegram", |
378 | 383 | OriginatingTo: "telegram-direct-test-id", |
379 | | -}), |
| 384 | +InboundHistory: undefined, |
| 385 | +ThreadStarterBody: undefined, |
| 386 | +}, |
380 | 387 | expect.anything(), |
381 | 388 | { sourceReplyDeliveryMode: "message_tool_only" }, |
382 | 389 | ); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。