Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
fix(hub): initialize channelManager before restoreAgents
Jiayuan Zhang0c6cdb0d3ab4
diff --git a/packages/core/src/hub/hub.ts b/packages/core/src/hub/hub.tsindex d55f482b31..30d58cfb55 100644--- a/packages/core/src/hub/hub.ts+++ b/packages/core/src/hub/hub.ts@@ -152,14 +152,16 @@ export class Hub {this.initCronService();this.initHeartbeatService();+ // Initialize channel plugin system (before restoreAgents so channelManager is available)+ console.log("[Hub] Initializing channel system...");+ initChannels();+ this.channelManager = new ChannelManager(this);+this.client = this.createClient(this.url);this.client.connect();this.restoreAgents();- // Initialize channel plugin system- console.log("[Hub] Initializing channel system...");- initChannels();- this.channelManager = new ChannelManager(this);+ // Start channel accounts (async — bot connections happen in background)void this.channelManager.startAll().then(() => {console.log("[Hub] Channel system started");}).catch((err) => {