fix: preserve log tool-progress mode with status phrases

This commit is contained in:
devatnull 2026-07-05 10:12:01 +03:00 committed by Teknium
parent d111faa3a7
commit b9de7044aa
2 changed files with 6 additions and 2 deletions

View file

@ -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",

View file

@ -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()