mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-19 11:28:38 +00:00
test(discord): align bound-thread target kind
This commit is contained in:
@@ -85,6 +85,7 @@ describe("preflightDiscordMessage", () => {
|
|||||||
|
|
||||||
it("drops bound-thread bot system messages to prevent ACP self-loop", async () => {
|
it("drops bound-thread bot system messages to prevent ACP self-loop", async () => {
|
||||||
const threadBinding = createThreadBinding({
|
const threadBinding = createThreadBinding({
|
||||||
|
targetKind: "session",
|
||||||
targetSessionKey: "agent:main:acp:discord-thread-1",
|
targetSessionKey: "agent:main:acp:discord-thread-1",
|
||||||
});
|
});
|
||||||
const threadId = "thread-system-1";
|
const threadId = "thread-system-1";
|
||||||
@@ -171,6 +172,7 @@ describe("preflightDiscordMessage", () => {
|
|||||||
|
|
||||||
it("keeps bound-thread regular bot messages flowing when allowBots=true", async () => {
|
it("keeps bound-thread regular bot messages flowing when allowBots=true", async () => {
|
||||||
const threadBinding = createThreadBinding({
|
const threadBinding = createThreadBinding({
|
||||||
|
targetKind: "session",
|
||||||
targetSessionKey: "agent:main:acp:discord-thread-1",
|
targetSessionKey: "agent:main:acp:discord-thread-1",
|
||||||
});
|
});
|
||||||
const threadId = "thread-bot-regular-1";
|
const threadId = "thread-bot-regular-1";
|
||||||
|
|||||||
Reference in New Issue
Block a user