Repository navigation
feat(site): clarify that chat costs are estimates - #32415
Merged
Merged
Conversation
Add an info or warning icon with a tooltip next to chat cost in the chat summary panel and the project chats list.
tracyjohnsonux
force-pushed
the
chat-cost-estimate-tooltip
branch
from
November 18, 2026 23:21
211e111 to
f9196cb
Compare
DanielleMaywood
approved these changes
Nov 19, 2026
jakehwll
reviewed
Nov 19, 2026
| export type InfoTooltipType = "info" | "warning"; | ||
|
|
||
| type InfoTooltipSize = "small" | "medium"; | ||
| type InfoTooltipSize = "xsmall" | "small" | "medium"; |
Collaborator
There was a problem hiding this comment.
nit: weird that this is xsmall instead of xs, small instead of sm, etc 🤨
Collaborator
Author
There was a problem hiding this comment.
Agreed, InfoTooltip is the only component using long names (Badge, Button, Loader use sm/md). I kept xsmall here to match its existing sizes and will rename all of them to xs/sm/md in a separate PR so this one stays focused.
Generated by Coder Agents on behalf of @tracyjohnsonux.
jakehwll
approved these changes
Nov 19, 2026
tracyjohnsonux
had a problem deploying
to
docs-preview
November 19, 2026 00:34 — with
GitHub Actions
Failure
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Removes any odd cost message that appears below the $. Adds an icon with a tooltip next to chat cost in the chat summary panel and the project chats list, so users know the figure is provisional while agents run (DES-22256). Also provides context if model costs aren't configured correctly.
In the project chats list, the cost badge and PR icon move out of the row link, because the tooltip trigger is a button and can't sit inside an anchor. The rest of the row still opens the chat.
Preview in Storybook:
ChatSummary> Cost Estimate Tooltip / Partial Cost Tooltip, andProjectChatsListView> Populated / Partial Cost.Decision log
ChatCostTooltipbuilt onInfoTooltip, used in both places. The warning variant replaces the info variant rather than appearing alongside it.xsmall(10px)InfoTooltipsize. Each message has a max width (max-w-48for the estimate,max-w-68for the warning, which stays on two lines for counts up to four digits) so it wraps into two even lines. Text style matches other tooltips (Geist 12px/500).top, matching the default and most common placement inAgentsPage.Badgegives svgspy-0.5atsize-icon-xs, which shrank the glyph and left extra space on the right. The badge now usessvgSize={null}and[&_svg]:p-0, so the icon renders at its own size and the padding is even on both sides.text-box: trim-both cap alphabeticsoitems-centercenters the digits instead of the font's line box. The digits sit 0.375px below center (previously 0.625px above). Chromium snaps baselines to whole pixels, so this is the closest it can get. Browsers withouttext-boxsupport render as before.Generated by Coder Agents on behalf of @tracyjohnsonux.