fix(regression): preserve discord thread bindings for plugin commands

This commit is contained in:
Tak Hoffman
2026-03-27 19:48:18 -05:00
parent b1eeca3b00
commit b598cdf968
7 changed files with 108 additions and 1 deletions

View File

@@ -243,6 +243,24 @@ describe("registerPluginCommand", () => {
});
});
it("resolves Discord thread command bindings with parent channel context intact", () => {
expect(
__testing.resolveBindingConversationFromCommand({
channel: "discord",
from: "discord:channel:1480554272859881494",
accountId: "default",
messageThreadId: "thread-42",
threadParentId: "channel-parent-7",
}),
).toEqual({
channel: "discord",
accountId: "default",
conversationId: "channel:1480554272859881494",
parentConversationId: "channel-parent-7",
threadId: "thread-42",
});
});
it("resolves Telegram topic command bindings without a Telegram registry entry", () => {
expect(
__testing.resolveBindingConversationFromCommand({