feat(timing): add per-turn response timing instrumentation and dashboard statistics#232
Open
a-yeyang wants to merge 2 commits into
Open
feat(timing): add per-turn response timing instrumentation and dashboard statistics#232a-yeyang wants to merge 2 commits into
a-yeyang wants to merge 2 commits into
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.
Track three timing metrics per agent turn: TTFT(time from last anchor event to first LLM token), LLM Thinking (message_start → message_end via performance.now()), and Tool Execution (tool_execution_start → tool_execution_end)
Display ⏳ TTFT and 💭 thinking duration as inline chips on assistant message headers; tool execution time shown in each tool bubble
Persist all timing values and toolStatus to DB metadata via message.updateMeta RPC so they survive page navigation and session reload
Add TimingStatsPanel to the Dashboard: a bar chart comparing average TTFT / Thinking / Tool Exec, paired with a MIN / AVG / P95 / P99 / MAX percentile table; samples stored in localStorage (capped at 200 per metric), updated live via siclaw_timing_update CustomEvent