@ynhcj/xiaoyi-channel 0.0.135-next → 0.0.136-next
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/bot.js +4 -0
- package/package.json +1 -1
package/dist/src/bot.js
CHANGED
|
@@ -200,6 +200,10 @@ export async function handleXYMessage(params) {
|
|
|
200
200
|
// 🔑 Steer消息: 跳过旧路径直接进入 streaming-signal 队列
|
|
201
201
|
// /steer 前缀由 dispatchSteerWhenReady 内部添加
|
|
202
202
|
if (isUpdate) {
|
|
203
|
+
// 立即释放 init gate——steer 不走 withReplyDispatcher 的 run()
|
|
204
|
+
// 回调,onInitComplete 永远不会被触发。如果不释放,后续消息
|
|
205
|
+
// 会被 globalDispatchInitGate 永久阻塞。
|
|
206
|
+
params.onInitComplete?.();
|
|
203
207
|
logger.log(`[BOT] 🔄 Steer message — enqueuing to streaming-signal queue`);
|
|
204
208
|
await enqueueSteer({
|
|
205
209
|
sessionId: parsed.sessionId,
|