fix(gateway): coerce tool_progress_command as a real boolean
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user