diff --git a/cli.py b/cli.py index bb11587562f..000778b750f 100644 --- a/cli.py +++ b/cli.py @@ -8850,7 +8850,7 @@ class HermesCLI: "The current conversation history will be discarded.", cmd_original=cmd_original, ) is None: - return + return True # confirmation cancelled — command handled, keep REPL alive self.new_session(silent=True) _clear_output_history() # Clear terminal screen. Inside the TUI, Rich's console.clear() @@ -8984,7 +8984,7 @@ class HermesCLI: "The current conversation history will be discarded.", cmd_original=cmd_original, ) is None: - return + return True # confirmation cancelled — command handled, keep REPL alive self.new_session(title=title) elif canonical == "resume": self._handle_resume_command(cmd_original) @@ -9027,7 +9027,7 @@ class HermesCLI: _undo_desc, cmd_original=cmd_original, ) is None: - return + return True # confirmation cancelled — command handled, keep REPL alive self.undo_last(_undo_n) elif canonical == "branch": self._handle_branch_command(cmd_original)