blun-king-cli 9.1.72 → 9.1.73
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/blun.mjs +5 -5
- package/package.json +1 -1
package/blun.mjs
CHANGED
|
@@ -502426,7 +502426,7 @@ var EditorKeyboardController = class {
|
|
|
502426
502426
|
this.clearPendingExit();
|
|
502427
502427
|
return;
|
|
502428
502428
|
}
|
|
502429
|
-
if (host.state.appState.streamingPhase !== "idle") {
|
|
502429
|
+
if (host.streamingUI.hasActiveTurn() || host.state.appState.streamingPhase !== "idle") {
|
|
502430
502430
|
this.clearPendingExit();
|
|
502431
502431
|
this.cancelCurrentStream();
|
|
502432
502432
|
return;
|
|
@@ -502475,7 +502475,7 @@ var EditorKeyboardController = class {
|
|
|
502475
502475
|
this.clearPendingUndoEsc();
|
|
502476
502476
|
return;
|
|
502477
502477
|
}
|
|
502478
|
-
if (host.state.appState.streamingPhase !== "idle") {
|
|
502478
|
+
if (host.streamingUI.hasActiveTurn() || host.state.appState.streamingPhase !== "idle") {
|
|
502479
502479
|
this.cancelCurrentStream();
|
|
502480
502480
|
this.clearPendingUndoEsc();
|
|
502481
502481
|
return;
|
|
@@ -514511,7 +514511,7 @@ var BlunTUI = class {
|
|
|
514511
514511
|
this.channelQueueDeadline.requestDeliveryAtSafePoint();
|
|
514512
514512
|
}
|
|
514513
514513
|
canDrainQueue() {
|
|
514514
|
-
return !this.isShuttingDown && !this.queueCommandRunning && this.queueSteerInFlight === void 0 && !this.editorReplacementActive && !this.deferUserMessages && this.state.appState.streamingPhase === "idle" && !this.state.appState.isCompacting;
|
|
514514
|
+
return !this.isShuttingDown && !this.queueCommandRunning && this.queueSteerInFlight === void 0 && !this.editorReplacementActive && !this.deferUserMessages && !this.streamingUI.hasActiveTurn() && this.state.appState.streamingPhase === "idle" && !this.state.appState.isCompacting;
|
|
514515
514515
|
}
|
|
514516
514516
|
scheduleQueueDrain() {
|
|
514517
514517
|
if (this.queueDrainTimer !== void 0 || !this.canDrainQueue()) return;
|
|
@@ -514640,7 +514640,7 @@ var BlunTUI = class {
|
|
|
514640
514640
|
}
|
|
514641
514641
|
injectChannelEnvelope({
|
|
514642
514642
|
canDeliver: () => this.session !== void 0 && this.state.appState.model.trim().length > 0,
|
|
514643
|
-
isBusy: () => this.state.queuedMessages.length > 0 || this.queueSteerInFlight !== void 0 || this.deferUserMessages || this.state.appState.streamingPhase !== "idle" || this.state.appState.isCompacting,
|
|
514643
|
+
isBusy: () => this.state.queuedMessages.length > 0 || this.queueSteerInFlight !== void 0 || this.deferUserMessages || this.streamingUI.hasActiveTurn() || this.state.appState.streamingPhase !== "idle" || this.state.appState.isCompacting,
|
|
514644
514644
|
deliverNow: (modelInput, displayText, origin, contextOnly) => {
|
|
514645
514645
|
this.sendChannelMessageInternal(this.requireSession(), modelInput, displayText, origin, envelope.meta.chat_id, envelope.meta["image_path"], contextOnly, false, acknowledge);
|
|
514646
514646
|
},
|
|
@@ -514694,7 +514694,7 @@ var BlunTUI = class {
|
|
|
514694
514694
|
channelAcknowledge: acknowledge,
|
|
514695
514695
|
telegramCommandName: command.name
|
|
514696
514696
|
};
|
|
514697
|
-
const busy = this.state.queuedMessages.length > 0 || this.queueSteerInFlight !== void 0 || this.pendingChannelReplyGuard !== void 0 || this.deferUserMessages || this.state.appState.streamingPhase !== "idle" || this.state.appState.isCompacting;
|
|
514697
|
+
const busy = this.state.queuedMessages.length > 0 || this.queueSteerInFlight !== void 0 || this.pendingChannelReplyGuard !== void 0 || this.deferUserMessages || this.streamingUI.hasActiveTurn() || this.state.appState.streamingPhase !== "idle" || this.state.appState.isCompacting;
|
|
514698
514698
|
if (busy) {
|
|
514699
514699
|
this.state.queuedMessages.push(item);
|
|
514700
514700
|
this.track("input_queue", { kind: "channel-command" });
|