Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
fix: Refine pace status logic in MetricLineRenderer
- Updated the condition for determining pace status to include a check for periodDurationMs, ensuring "ahead" is only shown when usage is zero and a valid period duration exists.

Co-authored-by: Cursor <cursoragent@cursor.com>
  • Loading branch information
robinebers and cursoragent committed Feb 5, 2026
commit 822debe79c69fd81371c183fe2f9fedd050288fd
2 changes: 1 addition & 1 deletion src/components/provider-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ function MetricLineRenderer({
)
: null
const paceStatus: PaceStatus | null =
line.used === 0 ? "ahead" : (paceResult?.status ?? null)
line.used === 0 && line.periodDurationMs ? "ahead" : (paceResult?.status ?? null)

return (
<div>
Expand Down