Skip to content

fix(workbench): show partial totals for turn usage - #7155

Merged
M4n5ter merged 1 commit into
rust-previewfrom
codex/partial-turn-usage
Nov 22, 2026
Merged

M4n5ter merged 1 commit into
rust-previewfrom
codex/partial-turn-usage

Conversation

@M4n5ter

@M4n5ter M4n5ter commented Nov 22, 2026

Copy link
Copy Markdown
Member

Summary

A provider failure can leave one attempt without usage even when later requests report it. The main-model usage dialog now totals each token field and recorded cost independently. Partial totals show how many requests contributed. A reported zero counts, and a field missing from every request stays unavailable.

Verification

  • The new dialog regression failed on the base branch and passed with this change. Three requests exercise a partial input total, a complete output total, zero cached reads, missing counters, and partial cost. The coverage label survives switching from compact to exact counts.
  • The existing request-metrics toggle test, workbench typecheck, Biome checks and Rust format check passed locally.
  • The screenshot shows the production dialog rendered on macOS with the regression fixture.

Main model usage for three requests

AI use

  • Generative tooling made a substantive contribution

Codex implemented and tested the change.

Checklist

  • Tests cover the change and fail without it
  • Format, typecheck and the affected checks pass locally
  • No breaking change or persisted-data migration
  • User-visible behavior is described above

@M4n5ter
M4n5ter merged commit 7637070 into rust-preview Nov 22, 2026
1 check passed
@M4n5ter
M4n5ter deleted the codex/partial-turn-usage branch November 22, 2026 05:50
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