Skip to content

test(tui): cover last-message trailer dedup - #136

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

quickbeard merged 1 commit into
mainfrom
trailer-tests

Conversation

@quickbeard

Copy link
Copy Markdown
Owner

Summary

Adds a view test for the trailer dedup shipped in #135. It boots the full TUI (same harness as interrupt.view.test.tsx) on a session containing a completed assistant turn whose agent and model match the current footer selection, then asserts:

  • the trailer collapses to Baked for 1.6s — no ▣ marker, no Build · M1 copy
  • agent.cycle breaks the match and the full ▣ Build · M1 · 1.6s trailer reappears
  • cycling back to the original agent restores the suppression

Fork-only new test file, so no DIVERGENCES.md row per the divergence policy.

Testing

  • bun test test/message-trailer.view.test.tsx from packages/tui — 1 pass
  • bun typecheck from packages/tui

🤖 Generated with Claude Code

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>
@quickbeard
quickbeard merged commit 51a8d67 into main Jul 30, 2026
0 of 5 checks passed
@quickbeard
quickbeard deleted the trailer-tests branch July 30, 2026 07:11
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