Skip to content

Conversation

@ethanndickson
Copy link
Member

When a conversation includes models with unknown pricing, show the partial cost (from known models) with a ? indicator and tooltip explaining the cost may be incomplete.

Before

If any model had unknown pricing → all costs became undefined → UI showed "??"

After

Known costs are summed → UI shows $X.XX ? with tooltip: "Cost may be incomplete—some models in this session have unknown pricing"

Changes

  • Added hasUnknownCosts flag to ChatUsageDisplay interface
  • Modified sumUsageHistory to keep partial costs instead of wiping to undefined
  • Added tooltip indicator in CostsTab when flag is set
  • Added tests for multi-model cost calculation

Generated with mux

@chatgpt-codex-connector
Copy link

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@ethanndickson ethanndickson force-pushed the multi-model-cost-calculation branch 2 times, most recently from efbcd29 to df34aef Compare December 9, 2025 00:53
When a conversation includes models with unknown pricing, show the
partial cost (from known models) with a ? indicator and tooltip
explaining the cost may be incomplete.

Previously, if any model had unknown pricing, all costs became undefined
and displayed as '??'. Now we sum known costs and flag hasUnknownCosts
for the UI to show a warning.

_Generated with mux_
@ethanndickson ethanndickson force-pushed the multi-model-cost-calculation branch from df34aef to f19a7d8 Compare December 9, 2025 00:53
@ethanndickson ethanndickson added this pull request to the merge queue Dec 9, 2025
Merged via the queue into main with commit 53f5ee8 Dec 9, 2025
19 checks passed
@ethanndickson ethanndickson deleted the multi-model-cost-calculation branch December 9, 2025 01:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant