From 8ae65d5c8cf13047a4c2723d5eb44a2391b3c932 Mon Sep 17 00:00:00 2001 From: Arkmusn <16034932+Arkmusn@users.noreply.github.com> Date: Thu, 14 May 2026 07:57:24 -0700 Subject: [PATCH] fix: read approvals.timeout from config in CLI approval callback MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli.py b/cli.py index 5a0b9fbdf2f..f84161dd456 100644 --- a/cli.py +++ b/cli.py @@ -10064,7 +10064,7 @@ class HermesCLI: import time as _time with self._approval_lock: - timeout = 60 + timeout = int(CLI_CONFIG.get("approvals", {}).get("timeout", 60)) response_queue = queue.Queue() self._approval_state = {