fix(trajectory): show exact millisecond durations consistently
Drop the details-panel Duration toggle: Duration rows always show integer milliseconds, matching the cell time column. Timeline labels (Total/TTFT/Decoding) and step-group descriptions previously fell back to second labels at or above one second; they now also show exact milliseconds via the shared formatDurationMillis formatter.
This commit is contained in:
@@ -97,7 +97,7 @@ describe('TrajectoryTable', () => {
|
||||
expect(screen.getByText('20.0 tok/s')).toBeTruthy()
|
||||
})
|
||||
|
||||
it('toggles a tool record Duration between readable and exact milliseconds', () => {
|
||||
it('shows a tool record Duration as exact milliseconds', () => {
|
||||
const turns: readonly TrajectoryTurnModel[] = [{
|
||||
turn: 1,
|
||||
groups: [{
|
||||
@@ -115,11 +115,7 @@ describe('TrajectoryTable', () => {
|
||||
render(<TrajectoryTable turns={turns} {...FOLD_PROPS} />)
|
||||
fireEvent.click(screen.getByRole('row', { name: /TOOL/ }))
|
||||
|
||||
const readable = screen.getByRole('button', { name: '1.5 s' })
|
||||
fireEvent.click(readable)
|
||||
expect(screen.getByRole('button', { name: '1500 ms' })).toBeTruthy()
|
||||
fireEvent.click(screen.getByRole('button', { name: '1500 ms' }))
|
||||
expect(screen.getByRole('button', { name: '1.5 s' })).toBeTruthy()
|
||||
expect(screen.getByText('1,500 ms', { selector: 'dd' })).toBeTruthy()
|
||||
})
|
||||
|
||||
it('breaks output tokens into labeled reasoning and content rows', () => {
|
||||
|
||||
Reference in New Issue
Block a user