Skip to content

[feat] agent: add per-turn timing overview to conversation Trace (#468 Slice B) - #550

Draft
yefuyou wants to merge 4 commits into
ThinkFlowLab:mainfrom
yefuyou:feat/468-slice-b-trace-timing-overview
Draft

yefuyou wants to merge 4 commits into
ThinkFlowLab:mainfrom
yefuyou:feat/468-slice-b-trace-timing-overview

Conversation

@yefuyou

@yefuyou yefuyou commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Slice B of #468, following merged Slice A in #476.

Add a compact, interactive Timing Overview above the existing conversation Trace turn navigation. Each turn is represented by an accessible row containing its number, status, persisted duration, and a proportional bar. The slowest measured turn is highlighted. Selecting a row reuses the existing reveal(turnId) flow to select, expand, lazy-load, and scroll to the corresponding Trace detail.

Behavior and boundaries

Screenshots

English

English Trace Timing Overview

中文

中文轮次耗时概览

360px narrow-layout screenshot · 50-turn overview screenshot

Validation reported by the implementation worktree

  • Unit tests: 29/29 (overview and existing Slice A/Trace tests).
  • Browser tests: new overview browser flow passed twice, covering selection, lazy detail, keyboard, bilingual and narrow-screen behavior, and missing/partial data. Baseline red/green comparison reported.
  • Python Trace API tests: 34 passed.
  • tsc, build, i18n, browser locale and manifest checks: passed.
  • Full npm test: 1,034 passed, 2 failed; the two failures were also observed on clean main in the local sandbox.
  • Recorded 10/50/100-turn fixture checks: overview displayed in ~258–400 ms; click-to-expanded-detail ~9–40 ms; /traces and /jobs request counts stayed at 6 → 12 across all three sizes.
  • Independent review was reported as passing. These are local results; upstream GitHub CI has not yet run on this PR.

Review notes before Ready

Please verify the new GitHub CI. In addition, cross-check the English and Chinese timing docs' introductory statement against the now-implemented Slice B, and check whether a running row duplicates the word “Running” in its badge and duration value. These two presentation details should be resolved before marking Ready for Review.

Refs #468. Depends on merged #476; unrelated to #449.

This branch has not been deployed

No deployments
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.

2 participants