Skip to content

feat(tui): dedup agent/model trailer on last message - #135

Merged
quickbeard merged 1 commit into
mainfrom
trailer-dedup
Jul 30, 2026
Merged

quickbeard merged 1 commit into
mainfrom
trailer-dedup

Conversation

@quickbeard

Copy link
Copy Markdown
Owner

Summary

The trailer under the last assistant reply (▣ Build · MiniMax/MiniMax-M2.7 · 3m) repeated the agent and model the prompt footer already shows one line below. Now, when the last message's agent and model match the current footer selection:

  • the ▣ marker and the Agent · Model text are hidden
  • the elapsed time still renders, as Baked for 3m
  • the trailer line is skipped entirely when nothing is left to show (e.g. while streaming, before a duration exists); aborted messages still show interrupted

Older transcript messages, and the last message after switching agent or model, keep the full trailer (the suppression is reactive — cycling agents with tab brings it back instantly).

Includes the required DIVERGENCES.md row (upstream-file edit) and a CHANGELOG.md entry under Unreleased.

Testing

  • bun typecheck in packages/tui
  • Verified live in the TUI (tmux): a real turn showed only Baked for 1.6s above the footer; pressing tab to switch to the Plan agent restored the full ▣ Build · MiniMax/MiniMax-M2.7 · 1.6s trailer.

🤖 Generated with Claude Code

The trailer under the last assistant reply repeated the agent and model
the prompt footer already shows one line below. When they match the
current selection, hide the marker and agent/model text and render the
elapsed time as "Baked for <duration>" instead; skip the line entirely
when nothing is left to show. Older messages and mismatched selections
keep the full trailer.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@quickbeard
quickbeard merged commit 371aed3 into main Jul 30, 2026
0 of 5 checks passed
@quickbeard
quickbeard deleted the trailer-dedup branch July 30, 2026 07:03
quickbeard added a commit that referenced this pull request Jul 30, 2026
View test for the trailer suppression added in #135: the last assistant
message shows only "Baked for <duration>" when its agent and model match
the current selection, the full trailer returns after agent.cycle, and
cycling back restores the suppression.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
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.

1 participant