def __exit__()

in src/nova_act/impl/keyboard_event_watcher.py [0:0]


    def __exit__(self, exc_type, exc_val, exc_tb):
        """Clean up the watcher thread and reset terminal when exiting the context."""
        if self.terminal_manager:
            self.terminal_manager.__exit__(exc_type, exc_val, exc_tb)

        self.final_stop = True
        if self.watcher_thread and self.watcher_thread.is_alive():
            self.watcher_thread.join()
        return False  # Don't suppress any exceptions