blun-king-cli 9.1.311 → 9.1.312

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.
Files changed (2) hide show
  1. package/blun.mjs +10 -0
  2. package/package.json +1 -1
package/blun.mjs CHANGED
@@ -517064,6 +517064,16 @@ var BlunTUI = class {
517064
517064
  channelAcknowledge: acknowledge,
517065
517065
  telegramCommandName: command.name
517066
517066
  };
517067
+ const phase = this.state.appState.streamingPhase;
517068
+ const activeTurn = this.streamingUI?.hasActiveTurn?.() === true || typeof phase === "string" && phase !== "idle" || this.state.appState.isCompacting === true;
517069
+ if (command.name === "reload" && activeTurn && !this.queueCommandRunning) {
517070
+ this.state.queuedMessages.unshift(item);
517071
+ this.session?.cancel();
517072
+ this.track("input_queue", { kind: "channel-command-preemptive" });
517073
+ this.updateQueueDisplay();
517074
+ this.state.ui.requestRender();
517075
+ return;
517076
+ }
517067
517077
  const busy = this.session === void 0 || this.state.appState.model.trim().length === 0 || 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;
517068
517078
  if (busy) {
517069
517079
  this.state.queuedMessages.push(item);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blun-king-cli",
3
- "version": "9.1.311",
3
+ "version": "9.1.312",
4
4
  "description": "BLUN CLI - your own AI agent with a Telegram channel. Get it done. With BLUN.",
5
5
  "license": "MIT",
6
6
  "bin": {