fix: delay discord slow listener warnings

This commit is contained in:
Peter Steinberger
2026-01-18 01:40:49 +00:00
parent c1da78a271
commit fc60699f03
2 changed files with 2 additions and 1 deletions

View File

@@ -17,6 +17,7 @@ Docs: https://docs.clawd.bot
- Memory: apply OpenAI batch defaults even without explicit remote config.
- macOS: bundle Textual resources in packaged app builds to avoid code block crashes. (#1006)
- Tools: return a companion-app-required message when `system.run` is requested without a supporting node.
- Discord: only emit slow listener warnings after 30s.
## 2026.1.17-3
### Changes

View File

@@ -30,7 +30,7 @@ export type DiscordMessageHandler = (data: DiscordMessageEvent, client: Client)
type DiscordReactionEvent = Parameters<MessageReactionAddListener["handle"]>[0];
const DISCORD_SLOW_LISTENER_THRESHOLD_MS = 1000;
const DISCORD_SLOW_LISTENER_THRESHOLD_MS = 30_000;
const discordEventQueueLog = createSubsystemLogger("discord/event-queue");
function logSlowDiscordListener(params: {