diff --git a/extensions/discord/src/subagent-hooks.test.ts b/extensions/discord/src/subagent-hooks.test.ts index 70f6482e6c4..bac2928a3f3 100644 --- a/extensions/discord/src/subagent-hooks.test.ts +++ b/extensions/discord/src/subagent-hooks.test.ts @@ -339,7 +339,16 @@ describe("discord subagent hook handlers", () => { }); expect(hookMocks.autoBindSpawnedDiscordSubagent).toHaveBeenCalledTimes(1); - expect(result).toStrictEqual({ status: "ok", threadBindingReady: true }); + expect(result).toMatchObject({ + status: "ok", + threadBindingReady: true, + deliveryOrigin: { + channel: "discord", + accountId: "work", + to: "channel:thread-1", + threadId: "thread-1", + }, + }); }); it("defaults thread-bound subagent spawn to enabled when unset", async () => { @@ -352,7 +361,16 @@ describe("discord subagent hook handlers", () => { }); expect(hookMocks.autoBindSpawnedDiscordSubagent).toHaveBeenCalledTimes(1); - expect(result).toStrictEqual({ status: "ok", threadBindingReady: true }); + expect(result).toMatchObject({ + status: "ok", + threadBindingReady: true, + deliveryOrigin: { + channel: "discord", + accountId: "work", + to: "channel:thread-1", + threadId: "thread-1", + }, + }); }); it("no-ops when thread binding is requested on non-discord channel", async () => {