Skip to content

fix(cli): read approvals.timeout from config in CLI approval callback#25609

Closed
alaamohanad169-ship-it wants to merge 1 commit into
NousResearch:mainfrom
alaamohanad169-ship-it:fix/approvals-timeout-config
Closed

fix(cli): read approvals.timeout from config in CLI approval callback#25609
alaamohanad169-ship-it wants to merge 1 commit into
NousResearch:mainfrom
alaamohanad169-ship-it:fix/approvals-timeout-config

Conversation

@alaamohanad169-ship-it

Copy link
Copy Markdown
Contributor

Summary

The _approval_callback method in HermesCLI hardcodes timeout = 60 instead of reading the approvals.timeout config value. One-line change to read from CLI_CONFIG.

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

One-line change: replace timeout = 60 with
timeout = int(CLI_CONFIG.get("approvals", {}).get("timeout", 60)).

Other approval paths (tools/approval.py and hermes_cli/callbacks.py) already
read the config correctly.
@alt-glitch alt-glitch added type/bug Something isn't working P3 Low — cosmetic, nice to have comp/cli CLI entry point, hermes_cli/, setup wizard duplicate This issue or pull request already exists labels May 14, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Duplicate of #25559 — same one-line fix for hardcoded approval timeout in CLI _approval_callback. Also related to #13088 (broader approval timeout fix).

@teknium1

Copy link
Copy Markdown
Contributor

Thanks — closing as a duplicate. The same one-line fix at cli.py:10067 is already up in #25559 (Arkmusn), submitted earlier with a more detailed root-cause writeup. Both PRs make exactly the same change; we're going with #25559. Crediting both contributors in the salvage commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cli CLI entry point, hermes_cli/, setup wizard duplicate This issue or pull request already exists P3 Low — cosmetic, nice to have type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants