mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-18 04:41:56 +00:00
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:
parent
d8fdec16d5
commit
8ae65d5c8c
1 changed files with 1 additions and 1 deletions
2
cli.py
2
cli.py
|
|
@ -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 = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue