diff --git a/cli.py b/cli.py index f49fa2261..48e494728 100644 --- a/cli.py +++ b/cli.py @@ -2881,7 +2881,7 @@ class HermesCLI: if self.agent and self.conversation_history: try: self.agent.flush_memories(self.conversation_history) - except Exception: + except (Exception, KeyboardInterrupt): pass old_session_id = self.session_id @@ -7206,7 +7206,7 @@ class HermesCLI: if self.agent and self.conversation_history: try: self.agent.flush_memories(self.conversation_history) - except Exception: + except (Exception, KeyboardInterrupt): pass # Shut down voice recorder (release persistent audio stream) if hasattr(self, '_voice_recorder') and self._voice_recorder: