Skip to content

feat(approvals): make dangerous command approval timeout configurable#3886

Merged
teknium1 merged 2 commits intomainfrom
hermes/hermes-b2abefdf
Mar 30, 2026
Merged

feat(approvals): make dangerous command approval timeout configurable#3886
teknium1 merged 2 commits intomainfrom
hermes/hermes-b2abefdf

Conversation

@teknium1
Copy link
Copy Markdown
Contributor

Replaces hardcoded 60s approval timeout with a configurable approvals.timeout setting. When running complex delegated workflows, the 60s default can expire before the user responds.

approvals:
  mode: smart
  timeout: 120  # seconds, default 60

E2E verified:

  • Default (no config): 60s ✅
  • Custom value (120): reads correctly ✅
  • Invalid value: falls back to 60 ✅
  • approval mode resolution unaffected by refactor ✅
  • 116 approval tests pass ✅

Cherry-picked from PR #3766 by @acsezen with authorship preserved. Follow-up: added timeout: 60 to DEFAULT_CONFIG for discoverability. Closes #3765.

acsezen and others added 2 commits March 29, 2026 22:49
Read `approvals.timeout` from config.yaml (default 60s) instead of
hardcoding 60 seconds in both the fallback CLI prompt and the TUI
prompt_toolkit callback.

Follows the same pattern as `clarify.timeout` which is already
configurable via CLI_CONFIG.

Closes #3765
@teknium1 teknium1 merged commit 947faed into main Mar 30, 2026
4 of 5 checks passed
itsXactlY pushed a commit to itsXactlY/hermes-agent that referenced this pull request Mar 30, 2026
…NousResearch#3886)

* feat(approvals): make dangerous command approval timeout configurable

Read `approvals.timeout` from config.yaml (default 60s) instead of
hardcoding 60 seconds in both the fallback CLI prompt and the TUI
prompt_toolkit callback.

Follows the same pattern as `clarify.timeout` which is already
configurable via CLI_CONFIG.

Closes NousResearch#3765

* fix: add timeout default to approvals section in DEFAULT_CONFIG

---------

Co-authored-by: acsezen <asezen@icloud.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants