mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-08 13:12:08 +00:00
fix: preserve log tool-progress mode with status phrases
This commit is contained in:
parent
d111faa3a7
commit
b9de7044aa
2 changed files with 6 additions and 2 deletions
|
|
@ -239,7 +239,7 @@ def _normalise(setting: str, value: Any) -> Any:
|
|||
if value is True:
|
||||
return "all"
|
||||
val = str(value).strip().lower()
|
||||
return val if val in {"off", "new", "all", "verbose"} else "all"
|
||||
return val if val in {"off", "new", "all", "verbose", "log"} else "all"
|
||||
if setting in {
|
||||
"show_reasoning",
|
||||
"streaming",
|
||||
|
|
|
|||
|
|
@ -266,8 +266,12 @@ class TestBusySessionAck:
|
|||
adapter._send_with_retry.assert_not_called()
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_steer_mode_calls_agent_steer_no_interrupt_no_queue(self):
|
||||
async def test_steer_mode_calls_agent_steer_no_interrupt_no_queue(self, monkeypatch):
|
||||
"""busy_input_mode='steer' injects via agent.steer() and skips queueing."""
|
||||
import gateway.run as _gr
|
||||
|
||||
monkeypatch.delenv("HERMES_GATEWAY_BUSY_STEER_ACK_ENABLED", raising=False)
|
||||
monkeypatch.setattr(_gr, "_load_gateway_config", lambda: {})
|
||||
runner, sentinel = _make_runner()
|
||||
runner._busy_input_mode = "steer"
|
||||
adapter = _make_adapter()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue