From b4ffdf3de27ce5c4692bbc4dae2064c45111931a Mon Sep 17 00:00:00 2001 From: ingyukoh Date: Thu, 5 Mar 2026 15:45:57 +0900 Subject: [PATCH] fix(discord): add missing autoThread to DiscordGuildChannelConfig type The autoThread field is present in the Zod schema (DiscordGuildChannelSchema) and actively used at runtime in threading.ts and message-handler.process.ts, but was missing from the canonical TypeScript type definition. This forced runtime code in allow-list.ts to define its own local type with the field. Add autoThread to DiscordGuildChannelConfig to align the type with the schema and runtime usage. --- src/config/types.discord.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/config/types.discord.ts b/src/config/types.discord.ts index 2d2e674f6b6..2d005dd7d7a 100644 --- a/src/config/types.discord.ts +++ b/src/config/types.discord.ts @@ -52,6 +52,8 @@ export type DiscordGuildChannelConfig = { systemPrompt?: string; /** If false, omit thread starter context for this channel (default: true). */ includeThreadStarter?: boolean; + /** If true, automatically create a thread for each new message in this channel. */ + autoThread?: boolean; }; export type DiscordReactionNotificationMode = "off" | "own" | "all" | "allowlist";