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
This commit is contained in:
Gnanasaikiran 2025-11-15 14:11:22 +05:30
parent 2db9d1ee03
commit 253dce89fe
2 changed files with 8 additions and 3 deletions

View file

@ -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")

View file

@ -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)