The best way to control Claude Code, Codex and more from any computer or phone
fix(web): prevent usage summary shift for unpriced records (#13991)
Tristan Knight committed
Sep 28, 2026 at 00:23 UTC
d15210cd3da79f9a1a495a6309d912d76362a046
1 file changed
+27
-7
apps/web/src/components/usage/UsagePage.tsx
+27
-7
@@ -10,6 +10,7 @@ import {
10
CircleAlertIcon,
11
ChevronDownIcon,
12
CircleDashedIcon,
13
+ InfoIcon,
14
SlidersHorizontalIcon,
15
} from "lucide-react";
16
import { useEffect, useEffectEvent, useMemo, useRef, useState } from "react";
@@ -64,6 +65,7 @@ import { SidebarInset } from "../ui/sidebar";
65
import { Skeleton } from "../ui/skeleton";
66
import { Toggle, ToggleGroup } from "../ui/toggle-group";
67
import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
68
+import { Popover, PopoverPopup, PopoverTrigger } from "../ui/popover";
69
import {
70
WorkspaceBreadcrumb,
71
WorkspaceBreadcrumbItem,
@@ -486,13 +488,31 @@ export function UsagePage() {
488
: formatTokens(merged.totalTokens)}
489
</span>
490
<span className="text-xs text-muted-foreground">
489
- {metric !== "cost"
490
- ? `${formatCount(merged.sessions)} sessions`
491
- : merged.costQuality.unpricedShare > 0
492
- ? `${formatCount(merged.sessions)} sessions · API estimate excludes ${formatPercent(
493
- merged.costQuality.unpricedShare,
494
- )} unpriced records`
495
- : `${formatCount(merged.sessions)} sessions · API estimate`}
491
+ {formatCount(merged.sessions)} sessions
492
+ {metric === "cost" && (
493
+ <>
494
+ {" · API estimate"}
495
+ {merged.costQuality.unpricedShare > 0 && (
496
+ <>
497
+ {" "}
498
+ <Popover>
499
+ <PopoverTrigger
500
+ openOnHover
501
+ render={<InlineButton tone="muted" />}
502
+ aria-label="Unpriced usage details"
503
+ >
504
+ <InfoIcon className="size-3" aria-hidden />
505
+ </PopoverTrigger>
506
+ <PopoverPopup side="top" tooltipStyle>
507
+ API estimate excludes{" "}
508
+ {formatPercent(merged.costQuality.unpricedShare)} unpriced
509
+ records.
510
+ </PopoverPopup>
511
+ </Popover>
512
+ </>
513
+ )}
514
+ </>
515
+ )}
516
</span>
517
</div>
518