Skip to content

feat(timing): add per-turn response timing instrumentation and dashboard statistics#232

Open
a-yeyang wants to merge 2 commits into
scitix:mainfrom
a-yeyang:yye-time
Open

feat(timing): add per-turn response timing instrumentation and dashboard statistics#232
a-yeyang wants to merge 2 commits into
scitix:mainfrom
a-yeyang:yye-time

Conversation

@a-yeyang
Copy link
Copy Markdown
Contributor

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

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