feat(tui): add turn summary flash experiment - #42629
Open
kitlangton wants to merge 2 commits into
Open
Conversation
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.
What
Adds an opt-in Turn summary flash TUI experiment. When a live turn completes, the agent, model, and duration summary brightens toward the default text color, then fades over 800ms to each segment's semantic resting color.
The experiment is disabled by default and can be toggled from DevTools → Experiments.
How
packages/tui/src/component/assistant-summary.tsxowns the production summary rendering and bright-to-rest animation.packages/tui/src/routes/session/rows.tsdistinguishes live terminal completions from hydrated history, so old turns do not replay the flash when a session opens.packages/tui/src/routes/session/index.tsxenables the selected Lingering treatment (800ms at 70% brightness) only whenexperimental.turn_summary_flashand global animations are enabled.packages/tui/src/component/dialog-experiments.tsxregisters the experiment in the existing picker.packages/tui/AGENTS.mdrecords the local story-first and simulated verification workflow for future TUI experiments, including removing tuning-only scaffolding before commit.flowchart LR A[Live terminal step ends] --> B[Append footer with flash marker] B --> C{Experiment enabled?} C -- No --> D[Render resting semantic colors] C -- Yes --> E[Brighten summary] E --> F[Fade for 800ms] F --> D G[Hydrated session history] --> DScope
Testing
bun typecheckinpackages/tuibun turbo typecheck --concurrency=3(33 packages passed)experimental.turn_summary_flash: trueDemo
Prototype-only tuning story using the production component. The story is not included in this PR, and no real model or session data is involved.
turn-summary-pr.mp4