Skip to content

Conversation

Copy link

Copilot AI commented Nov 25, 2025

Investigation of migrating the TUI from Python/Textual to Go/Bubble Tea, prompted by PR #2's hybrid implementation.

Findings

  • Current state: 526 LOC Textual TUI, 24% test coverage, known bugs (duplicate on_button_pressed, missing main())
  • Performance gap: Textual startup 2-5s (ML imports), Bubble Tea <100ms; memory 500MB+ vs ~50MB

Recommendation

Proceed with hybrid approach from PR #2:

  • Go/Bubble Tea frontend for rendering and input
  • Python CLI backend (src/cli.py) for Reddit API and ML features via subprocess + JSON

Deliverable

docs/BUBBLE_TEA_MIGRATION_INVESTIGATION.md covers:

  • Current architecture analysis
  • Framework comparison (Textual vs Bubble Tea)
  • Three migration options evaluated
  • PR Add Bubble Tea TUI and CLI bridge #2 implementation review
  • Risk analysis and mitigation
  • Phased implementation roadmap (2-4 days estimated)

Key Tradeoffs

Approach Startup Memory Complexity
Keep Textual 2-5s 500MB+ Low
Hybrid (PR #2) <100ms 50MB Medium
Full Go rewrite <100ms 50MB High (loses Python ML)
Original prompt

INVESTIGATION of a bubble tea migration for the TUI


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: Camier <8348793+Camier@users.noreply.github.com>
Copilot AI changed the title [WIP] Investigate bubble tea migration for TUI Add Bubble Tea TUI migration investigation document Nov 25, 2025
Copilot AI requested a review from Camier November 25, 2025 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants