From a9ac9d089411c5478c1eb0ddb2dd9a8bf0fd65bd Mon Sep 17 00:00:00 2001 From: phact Date: Tue, 28 Oct 2025 14:02:13 -0400 Subject: [PATCH] message --- src/tui/main.py | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/tui/main.py b/src/tui/main.py index 417279c9..e0f60df2 100644 --- a/src/tui/main.py +++ b/src/tui/main.py @@ -368,16 +368,6 @@ class OpenRAGTUI(App): def on_mount(self) -> None: """Initialize the application.""" - # Check if running on native Windows and exit - if self.platform_detector.is_native_windows(): - print("\n" + "=" * 60) - print("⚠️ Native Windows Not Supported") - print("=" * 60) - print(self.platform_detector.get_wsl_recommendation()) - print("=" * 60 + "\n") - self.exit(1) - return - # Check for runtime availability and show appropriate screen if not self.container_manager.is_available(): notify_with_diagnostics( @@ -507,6 +497,18 @@ def copy_compose_files(*, force: bool = False) -> None: def run_tui(): """Run the OpenRAG TUI application.""" + # Check for native Windows before launching TUI + from .utils.platform import PlatformDetector + platform_detector = PlatformDetector() + + if platform_detector.is_native_windows(): + print("\n" + "=" * 60) + print("⚠️ Native Windows Not Supported") + print("=" * 60) + print(platform_detector.get_wsl_recommendation()) + print("=" * 60 + "\n") + sys.exit(1) + app = None try: # Keep bundled assets aligned with the packaged versions