• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rm-hull / git-commit-summary / 19185845416

08 Nov 2025 01:29AM UTC coverage: 21.355% (-9.7%) from 31.034%
19185845416

push

github

web-flow
refactor: Move app execution into TUI model (#15)

* refactor: Move app execution into TUI model

The core application runtime logic has been moved entirely into the
Bubble Tea (`github.com/charmbracelet/bubbletea`) UI component model.

This simplifies `app.Run` by delegating the entire workflow (Git
checks, LLM calling, spinner management, and commit message editing)
to the TUI state machine.

Other changes:
*   Replaced deprecated external spinner/color libraries with
    `lipgloss` and `bubbles/spinner`.
*   Introduced `internal/interfaces` for Git interaction definitions.

* refactor: Propagate context to UI and LLM calls

The `context.Context` is now propagated through the application layers,
ensuring that the UI and subsequent LLM API calls respect the context
used to invoke the application run function.

This change allows for proper cancellation and timeout handling for
long-running operations, such as LLM generation, within the TUI.

Minor changes include:
*   Standardizing the `llm_provider` import alias.
*   Improving error handling for `interfaces.ErrAborted` using
`errors.Is`.
*   Reducing the initial delay in `checkGitStatus`.

1 of 153 new or added lines in 5 files covered. (0.65%)

104 of 487 relevant lines covered (21.36%)

0.23 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/internal/ui/commit_view.go


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc