fix(gateway): coerce tool_progress_command as a real boolean

This commit is contained in:
johnncenae
2026-04-27 14:58:56 +03:00
committed by Teknium
parent a94841eaa0
commit bb706c3f38
4 changed files with 45 additions and 3 deletions

View File

@@ -8351,7 +8351,10 @@ class GatewayRunner:
# --- check config gate ------------------------------------------------
try:
user_config = _load_gateway_config()
gate_enabled = cfg_get(user_config, "display", "tool_progress_command", default=False)
gate_enabled = is_truthy_value(
cfg_get(user_config, "display", "tool_progress_command"),
default=False,
)
except Exception:
gate_enabled = False
@@ -11302,7 +11305,10 @@ class GatewayRunner:
tool_progress_hint_gateway,
)
_cfg = _load_gateway_config()
gate_on = bool(cfg_get(_cfg, "display", "tool_progress_command", default=False))
gate_on = is_truthy_value(
cfg_get(_cfg, "display", "tool_progress_command"),
default=False,
)
if gate_on and not is_seen(_cfg, TOOL_PROGRESS_FLAG):
long_tool_hint_fired[0] = True
progress_queue.put(tool_progress_hint_gateway())