feat(ux): turn-meta footer (* Took N.Ns)#261
Draft
Zbrooklyn wants to merge 1 commit intoRAIT-09:masterfrom
Draft
feat(ux): turn-meta footer (* Took N.Ns)#261Zbrooklyn wants to merge 1 commit intoRAIT-09:masterfrom
Zbrooklyn wants to merge 1 commit intoRAIT-09:masterfrom
Conversation
Personality moment matching Claudian's "* Crunched for 32s" convention. Stamps Date.now() when isSending flips false->true, computes the delta when it flips back, and renders an italic muted line below the message list. Cleared when the next turn starts. Hidden for sub-100ms turns to avoid noise on cached/instant resumes. Fades in via the same keyframe the collapsibles use. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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 a small italic muted line that appears below the message list when a turn completes:
Hidden during streaming (so it never flickers mid-response). Cleared when the next turn starts.
Why
Personality moment that matches the Claude Code CLI / Claudian convention (
* Crunched for 32s/* Smoked for 31s). Helps the user understand pacing — was that "this was a quick one-shot" or "the agent really chewed on this"?Implementation
ChatPanel:turnStartedAtRef(timestamp at turn-start),lastTurnDuration(delta on turn-end)prevIsSendingReflifecycle effect — adds the start-stamp onfalse → truetransition and the duration-compute ontrue → falseformatDurationhelper renders sub-second / seconds / minutes with sensible labels (0.4s,12s,1m 23s)Files changed
src/ui/ChatPanel.tsx— state + render slot in both variantsstyles.css—.agent-client-turn-metarule + self-contained fade-in keyframeNotes
Self-contained — does not depend on any other in-flight UX work. Animation keyframe is uniquely named so it won't collide with future fade-ins.