test(discord): accept delivery origin on spawn · openclaw/openclaw@70c326f
2026-05-18
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -339,7 +339,16 @@ describe("discord subagent hook handlers", () => {
|
339 | 339 | }); |
340 | 340 | |
341 | 341 | expect(hookMocks.autoBindSpawnedDiscordSubagent).toHaveBeenCalledTimes(1); |
342 | | -expect(result).toStrictEqual({ status: "ok", threadBindingReady: true }); |
| 342 | +expect(result).toMatchObject({ |
| 343 | +status: "ok", |
| 344 | +threadBindingReady: true, |
| 345 | +deliveryOrigin: { |
| 346 | +channel: "discord", |
| 347 | +accountId: "work", |
| 348 | +to: "channel:thread-1", |
| 349 | +threadId: "thread-1", |
| 350 | +}, |
| 351 | +}); |
343 | 352 | }); |
344 | 353 | |
345 | 354 | it("defaults thread-bound subagent spawn to enabled when unset", async () => { |
@@ -352,7 +361,16 @@ describe("discord subagent hook handlers", () => {
|
352 | 361 | }); |
353 | 362 | |
354 | 363 | expect(hookMocks.autoBindSpawnedDiscordSubagent).toHaveBeenCalledTimes(1); |
355 | | -expect(result).toStrictEqual({ status: "ok", threadBindingReady: true }); |
| 364 | +expect(result).toMatchObject({ |
| 365 | +status: "ok", |
| 366 | +threadBindingReady: true, |
| 367 | +deliveryOrigin: { |
| 368 | +channel: "discord", |
| 369 | +accountId: "work", |
| 370 | +to: "channel:thread-1", |
| 371 | +threadId: "thread-1", |
| 372 | +}, |
| 373 | +}); |
356 | 374 | }); |
357 | 375 | |
358 | 376 | it("no-ops when thread binding is requested on non-discord channel", async () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。