Skip to content

Add interactive recap TUI#1113

Merged
peyton-alt merged 2 commits into
mainfrom
recap-tui
May 5, 2026
Merged

Add interactive recap TUI#1113
peyton-alt merged 2 commits into
mainfrom
recap-tui

Conversation

@peyton-alt
Copy link
Copy Markdown
Contributor

@peyton-alt peyton-alt commented May 4, 2026

https://entire.io/gh/entireio/cli/trails/297

Summary

Adds the interactive entire recap TUI as a stacked follow-up to #1015.

  • Opens the recap TUI automatically when stdout is an interactive terminal and accessibility mode is not enabled.
  • Keeps non-TTY, ACCESSIBLE=1, and --static output on the existing static renderer.
  • Reuses the server-backed recap fetch and static renderer for the TUI content.
  • Adds range, view, agent, refresh, scroll, and quit controls.
  • Fixes agent-filtered static summaries so --agent and the TUI agent toggle summarize the selected agent instead of showing all-agent top totals.

Validation

  • mise run check
  • mise run lint
  • Partial staged API static smoke: ENTIRE_API_BASE_URL=https://partial.to go run ./cmd/entire recap --90 --view both --color never --static
  • Partial staged API agent smoke: ENTIRE_API_BASE_URL=https://partial.to go run ./cmd/entire recap --90 --agent codex --view both --color never --static
  • Partial staged API TUI smoke: ENTIRE_API_BASE_URL=https://partial.to go run ./cmd/entire recap --90 --view both --color never
  • Live TUI a toggle smoke against Partial staged data

Note

Medium Risk
Adds a new Bubble Tea TUI execution path for entire recap and 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 recap now opens an interactive Bubble Tea TUI by default when writing to a terminal (and not in accessible mode), with a new --static flag to force the existing static output.

The new TUI (recap_tui.go) reuses the existing server fetch + RenderStaticRecap content 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.

Copilot AI review requested due to automatic review settings May 4, 2026 23:49
@peyton-alt peyton-alt mentioned this pull request May 4, 2026
4 tasks
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 --static escape 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.

Comment thread cmd/entire/cli/recap_tui.go
Comment thread cmd/entire/cli/recap/render_static.go Outdated
Comment thread cmd/entire/cli/recap_tui_test.go
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ 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.

Comment thread cmd/entire/cli/recap.go Outdated
@peyton-alt peyton-alt marked this pull request as ready for review May 5, 2026 00:49
@peyton-alt peyton-alt requested a review from a team as a code owner May 5, 2026 00:49
pjbgf
pjbgf previously approved these changes May 5, 2026
Base automatically changed from entire-activity to main May 5, 2026 16:06
@peyton-alt peyton-alt dismissed pjbgf’s stale review May 5, 2026 16:06

The base branch was changed.

@peyton-alt peyton-alt requested a review from pjbgf May 5, 2026 16:32
@peyton-alt peyton-alt enabled auto-merge (squash) May 5, 2026 16:40
@peyton-alt peyton-alt merged commit ab842f6 into main May 5, 2026
9 checks passed
@peyton-alt peyton-alt deleted the recap-tui branch May 5, 2026 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants