Merge PR #603: fix: return deny on approval callback timeout instead of None
Authored by 0xbyt4. _approval_callback() had no return statement after the timeout break, causing it to return None instead of 'deny'. Callers in approval.py expect one of 'once', 'session', 'always', or 'deny'. This matches the existing timeout behavior in approval.py:209.
This commit is contained in:
commit
695c017411
1 changed files with 2 additions and 0 deletions
2
cli.py
2
cli.py
|
|
@ -3181,6 +3181,8 @@ class HermesCLI:
|
|||
self._approval_state = None
|
||||
self._approval_deadline = 0
|
||||
self._invalidate()
|
||||
return "deny"
|
||||
|
||||
def chat(self, message, images: list = None) -> Optional[str]:
|
||||
"""
|
||||
Send a message to the agent and get a response.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue