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:
teknium1
2026-03-10 04:15:31 -07:00

2
cli.py
View File

@@ -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.