The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(discord): trim the first-strike comment to its WHY
kshitijk4poor533796a8336a
diff --git a/plugins/platforms/discord/adapter.py b/plugins/platforms/discord/adapter.pyindex dd503b51047..f5de391ec83 100644--- a/plugins/platforms/discord/adapter.py+++ b/plugins/platforms/discord/adapter.py@@ -1786,12 +1786,8 @@ class DiscordAdapter(DiscordMediaMixin, BasePlatformAdapter):"[%s] Discord Gateway WebSocket unhealthy (%s, %d/%d)", self.name, reason, failures,threshold,)- # A closed transport (``socket_closed``) is a confirmed death, not a suspicion:- # the resume path replaces the socket, the next sample reads healthy, and this- # counter silently resets — while a resumed-but-deaf session stays event-starved- # until the multi-hour event-silence default elapses (#118487). Escalate the- # first ``socket_closed`` / ``client_closed`` strike (both mean the transport is- # gone); soft signals (ack staleness, latency, silence) keep the threshold.+ # A closed transport is a confirmed death, not a suspicion: escalate on the+ # first strike; soft signals keep the threshold (#118487).terminal = reason in ("socket_closed", "client_closed")if failures < threshold and not terminal:continue