Add interactive recap TUI#1113
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds an interactive TUI mode for entire recap, building on the existing server-backed recap pipeline while keeping static rendering for non-interactive and accessible contexts.
Changes:
- Adds automatic TUI launch for interactive terminals plus a new
--staticescape hatch. - Introduces recap TUI state/model code with range, view, agent, refresh, scroll, and quit controls.
- Fixes static summary totals so agent-filtered recap headers use the selected agent’s aggregates.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
cmd/entire/cli/recap/static_server_test.go |
Adds regression coverage for agent-filtered static summary totals. |
cmd/entire/cli/recap/render_static.go |
Recomputes summary totals when an agent filter is active. |
cmd/entire/cli/recap.go |
Wires entire recap to auto-open the TUI and adds --static. |
cmd/entire/cli/recap_tui.go |
Adds the new Bubble Tea recap TUI model, fetching, viewport, and key handling. |
cmd/entire/cli/recap_tui_test.go |
Adds unit tests for basic TUI toggle and quit behavior. |
cmd/entire/cli/recap_test.go |
Extends recap flag tests for --static and TUI selection logic. |
cmd/entire/cli/activity_render_test.go |
Refactors repeated test literals into a shared constant. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 2a63c9f. Configure here.
pjbgf
previously approved these changes
May 5, 2026
Soph
approved these changes
May 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

https://entire.io/gh/entireio/cli/trails/297
Summary
Adds the interactive
entire recapTUI as a stacked follow-up to #1015.ACCESSIBLE=1, and--staticoutput on the existing static renderer.--agentand the TUI agent toggle summarize the selected agent instead of showing all-agent top totals.Validation
mise run checkmise run lintENTIRE_API_BASE_URL=https://partial.to go run ./cmd/entire recap --90 --view both --color never --staticENTIRE_API_BASE_URL=https://partial.to go run ./cmd/entire recap --90 --agent codex --view both --color never --staticENTIRE_API_BASE_URL=https://partial.to go run ./cmd/entire recap --90 --view both --color neveratoggle smoke against Partial staged dataNote
Medium Risk
Adds a new Bubble Tea TUI execution path for
entire recapand changes when output is interactive vs static, which could affect CLI behavior in terminals. Also adjusts recap summary aggregation when filtering by--agent, impacting displayed totals.Overview
entire recapnow opens an interactive Bubble Tea TUI by default when writing to a terminal (and not in accessible mode), with a new--staticflag to force the existing static output.The new TUI (
recap_tui.go) reuses the existing server fetch +RenderStaticRecapcontent inside a scrollable viewport and adds key controls for range/view/agent cycling, refresh, and quit. Static recap rendering is fixed so--agent(and the TUI agent toggle) recomputes the summary totals for the selected agent instead of showing the precomputed all-agent summary; tests were added/updated to cover the new flag, TUI behavior, and agent-filtered summaries.Reviewed by Cursor Bugbot for commit 2a63c9f. Configure here.