fix(adapters): promote QQ to config-driven startup and add hot-reload for all channels#380
Merged
Kaguya-19 merged 1 commit intoJul 9, 2026
Conversation
… for all channels - Add `adapters.qq` YAML config parsing (appId, clientSecret, allowGroups, triggerPrefixes, maxMessageLength) with dedicated parseQQ function - Change QQ channel from unconditional startup to enabled-gate, eliminating the spurious "QQ_BOT_APPID not set" log when QQ is not configured - Add onStateChange callback to QQChannel for session state persistence - Add QQ hot-reload block in handleAdapterHotReload - Add extra channels (Telegram, Slack, Discord, etc.) hot-reload via loadEnabledChannels, closing the gap where config watcher detected adapter changes but only reloaded Feishu/Weixin/WeCom Closes OpenBMB#241, closes OpenBMB#242 Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
adapters.qqinpilotdeck.yamlwithenabled,appId,clientSecret,allowGroups,triggerPrefixes, andmaxMessageLength. Whenadapters.qqis not configured, the QQ channel is not started and no spurious log is emitted.loadEnabledChannelsto hot-start any enabled extra channel.Changes
src/pilot/config/types.tsqqfield toPilotAdaptersConfigsrc/pilot/config/parseGatewayConfig.tsparseQQ()parser foradapters.qqYAML sectionsrc/adapters/channel/qq/QQChannel.tsonStateChangecallback toQQChannelOptionsfor state persistencesrc/cli/pilotdeck.tsloadEnabledChannelsTest plan
adapters.qqconfig — noQQ_BOT_APPID or QQ_BOT_SECRET not setlogadapters.qq.enabled: truewith credentials — QQ channel startsadapters.telegramat runtime — hot-reload picks it upCloses #241
Closes #242
Made with Cursor