Skip to content

fix(qqbot): add missing is_reconnect parameter to QQAdapter.connect() - #607

Open
hashbender wants to merge 1 commit into
mainfrom
mirror/pr-56740
Open

hashbender wants to merge 1 commit into
mainfrom
mirror/pr-56740

Conversation

@hashbender

Copy link
Copy Markdown
Owner

Problem

The BasePlatformAdapter contract requires connect() to accept an is_reconnect keyword argument, forwarded from the gateway reconnect watcher. The QQ adapter's connect() signature didn't include it, causing a TypeError on reconnect attempts.

Fix

Added is_reconnect: bool = False as a keyword-only parameter to QQAdapter.connect(). The parameter is not currently used by the QQ adapter internally, but accepting it satisfies the BasePlatformAdapter contract and prevents a crash when the gateway attempts to reconnect a dropped QQ bot session.


Mirror-of: NousResearch#56740
NousResearch#56740

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant