Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/use-cache-hit-metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,10 @@ export function useCacheHitMetrics(props: {
})

const mainHasStats = createMemo(() => mainSessionHasStats(main()))
const hasData = createMemo(() => lineages().length > 0 || subs().length > 0)
// Session aggregates are authoritative and may be available before the separate
// history request completes or when that request fails. Do not hide valid cache
// metrics merely because per-turn history is unavailable.
const hasData = createMemo(() => mainSessionHasStats(main()) || lineages().length > 0 || subs().length > 0)
// No interactive messages in the main session: show an empty Hit row, not "0.0% warming".
const noMainData = createMemo(() => lineages().length === 0)

Expand Down
Loading