From 253dce89fe7500b49699e939ea219389713b229c Mon Sep 17 00:00:00 2001 From: Gnanasaikiran Date: Sat, 15 Nov 2025 14:11:22 +0530 Subject: [PATCH] fix: Implement --no-mouse flag for TUI command - Pass mouse parameter from CLI args to run_tui() - Update run_tui() to accept and forward mouse flag to app.run() - Resolves CodeRabbit review comment --- cognee/cli/commands/tui_command.py | 2 +- cognee/cli/tui/app.py | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/cognee/cli/commands/tui_command.py b/cognee/cli/commands/tui_command.py index 5ae2c11c1..26b69d4c5 100644 --- a/cognee/cli/commands/tui_command.py +++ b/cognee/cli/commands/tui_command.py @@ -43,7 +43,7 @@ Perfect for managing Cognee from the terminal or SSH sessions! # Import and run TUI from cognee.cli.tui import run_tui - run_tui() + run_tui(mouse=not args.no_mouse) except KeyboardInterrupt: fmt.note("\nTUI closed by user") diff --git a/cognee/cli/tui/app.py b/cognee/cli/tui/app.py index b0c034055..4d8ac5949 100644 --- a/cognee/cli/tui/app.py +++ b/cognee/cli/tui/app.py @@ -119,6 +119,11 @@ class HelpScreen(Screen): def run_tui(): - """Entry point to run the TUI application""" + """Entry point to run the TUI application + + + Args: + mouse: Enable mouse support (default: True) +""" app = CogneeTUI() - app.run() + app.run(mouse=mouse)