Skip to content

The agent that grows with you

Merge pull request #141501 from NousResearch/fix/pkg13-cli-queue

Tekniumc0015464f0f4
diff --cc hermes_cli/cli_tui_mixin.py
index 33bf90805a4,b199f656036..5b2addaf4bd
--- a/hermes_cli/cli_tui_mixin.py
+++ b/hermes_cli/cli_tui_mixin.py
@@@ -1480,16 -1501,14 +1480,14 @@@ class CLITuiMixin
event.app.invalidate()
return True
- def _tui_enter_while_busy(self, text: str, images: list, payload) -> None:
+ def _tui_enter_while_busy(self, text: str, images: list, payload, mode: str | None = None) -> None:
"""Route a submission typed while the agent runs, per ``busy_input_mode``.
- steer → agent.steer(text) mid-run (images can't ride along and a missing/rejecting
- steer() falls back to queue so nothing is lost). interrupt → agent.redirect() when the
- agent supports active-turn redirect, else the legacy interrupt queue (older agents,
- multimodal follow-ups, or a turn that finished in the race). queue → next turn.
- """
+ steer → agent.steer(text) mid-run (images can't ride along; a missing/rejecting steer() falls back
+ to queue). interrupt → agent.redirect() when supported, else the legacy interrupt queue. queue →
+ next turn: text-only on the gateway's session is a ``/queue`` FIFO admission (#134889 N5)."""
from cli import CLI_CONFIG, _ACCENT, _DIM, _RST, _cprint, _hermes_home
- _effective_mode = self.busy_input_mode
+ _effective_mode = mode or self.busy_input_mode
redirected = False
if _effective_mode == "steer":
if images or not text: