fix: preserve subagent thread routing (#1241)

Thanks @gnarco.

Co-authored-by: gnarco <gnarco@users.noreply.github.com>
This commit is contained in:
Peter Steinberger
2026-01-20 17:22:07 +00:00
parent ae1c6f4313
commit 02ca148583
32 changed files with 195 additions and 32 deletions

View File

@@ -124,10 +124,12 @@ describe("resolveSessionDeliveryTarget", () => {
channel: "whatsapp",
to: "+1555",
accountId: "acct-1",
threadId: undefined,
mode: "implicit",
lastChannel: "whatsapp",
lastTo: "+1555",
lastAccountId: "acct-1",
lastThreadId: undefined,
});
});
@@ -146,10 +148,12 @@ describe("resolveSessionDeliveryTarget", () => {
channel: "telegram",
to: undefined,
accountId: undefined,
threadId: undefined,
mode: "implicit",
lastChannel: "whatsapp",
lastTo: "+1555",
lastAccountId: undefined,
lastThreadId: undefined,
});
});
@@ -169,10 +173,12 @@ describe("resolveSessionDeliveryTarget", () => {
channel: "telegram",
to: "+1555",
accountId: undefined,
threadId: undefined,
mode: "implicit",
lastChannel: "whatsapp",
lastTo: "+1555",
lastAccountId: undefined,
lastThreadId: undefined,
});
});
@@ -192,10 +198,12 @@ describe("resolveSessionDeliveryTarget", () => {
channel: "slack",
to: undefined,
accountId: undefined,
threadId: undefined,
mode: "implicit",
lastChannel: "whatsapp",
lastTo: "+1555",
lastAccountId: undefined,
lastThreadId: undefined,
});
});
});