fix(qqbot): add missing is_reconnect parameter to QQAdapter.connect() - #58758
fix(qqbot): add missing is_reconnect parameter to QQAdapter.connect()#58758LAN-TINA-WS wants to merge 1 commit into
Conversation
0af24e1 to
e02ccf8
Compare
Duplicate of #52966 — identical one-line fix adding the |
e02ccf8 to
2fea9be
Compare
Gateway reconnection calls adapter.connect(is_reconnect=True), but QQAdapter's connect() accepted only self, causing perpetual failure: QQAdapter.connect() got an unexpected keyword argument 'is_reconnect' All other platform adapters accept this parameter. Add it with a default of False so initial connections are unaffected. Closes NousResearch#58646
2fea9be to
1371385
Compare
|
Duplicate: already fixed on main in 4b873dc64 (QQAdapter.connect() missing is_reconnect param). Closing. |
|
Thanks for the focused reconnect fix. This is already implemented on current
The discussion correctly identified this as a duplicate/saturated fix cluster; the current-main fix is the verified resolution. |
Problem
QQ Bot connection enters an infinite failure loop. Every reconnect attempt crashes:
Root Cause
The Hermes gateway calls
adapter.connect(is_reconnect=True)during reconnection. All platform adapters (Telegram, Discord, Slack, etc.) accept this parameter — but QQAdapter'sconnect()only acceptedself, causing reconnection to fail permanently.Fix
One line — add
is_reconnect: bool = FalsetoQQAdapter.connect()signature. Default value preserves existing behavior for initial connections.Verification