fix: read approvals.timeout from config in CLI approval callback

The _approval_callback method in HermesCLI hardcoded timeout=60
instead of reading the approvals.timeout config value. This meant
the config setting was silently ignored for CLI interactive prompts.

Other approval paths (callbacks.py, tools/approval.py) already read
the config correctly — only cli.py was missed.
This commit is contained in:
Arkmusn 2026-05-14 07:57:24 -07:00 committed by Teknium
parent d8fdec16d5
commit 8ae65d5c8c

2
cli.py
View file

@ -10064,7 +10064,7 @@ class HermesCLI:
import time as _time import time as _time
with self._approval_lock: with self._approval_lock:
timeout = 60 timeout = int(CLI_CONFIG.get("approvals", {}).get("timeout", 60))
response_queue = queue.Queue() response_queue = queue.Queue()
self._approval_state = { self._approval_state = {