Skip to content

fix: correct model pricing and usage statistics for v1.2.1 - #13

Merged
Gnonymous merged 1 commit into
mainfrom
codex/release-1.2.1
Oct 11, 2026
Merged

Gnonymous merged 1 commit into
mainfrom
codex/release-1.2.1

Conversation

@Gnonymous

Copy link
Copy Markdown
Owner

Correct API estimates for GPT-6.1 Sol, Claude Sonnet 5.5, and Claude Haiku 5.5, including cache prices and Haiku's 100K prompt threshold. Preserve older model rates and update the current Sonnet/Haiku aliases.

Include every project in the Cost tab, follow Codex working-directory changes per turn, and apply one snapshot cutoff to usage totals and trends. Invalidate old parser caches so existing logs are reattributed on upgrade. Stamp version 1.2.1 and include its release notes.

Validation: swift build and make test passed locally. Six regression tests cover pricing, prompt boundaries, project totals/details, snapshot cutoffs, and modern/legacy Codex directory changes. Their assertion bodies produced 49 failures before the fixes and zero afterward using a local Command Line Tools runner; the full XCTest suite runs in CI.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-11T03:13:56.640456Z e683411 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Gnonymous
Gnonymous merged commit c5fc07e into main Oct 11, 2026
1 check passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e6834116ea

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +58 to +60
"anthropic/claude-haiku-5-5": ModelPrice(input: 0.1, output: 0.5, cacheRead: 0.01, cacheWrite5m: 0.125, cacheWrite1h: 0.2,
longContextThreshold: 100_000,
longContextInputMultiplier: 5, longContextOutputMultiplier: 5),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Retarget the Haiku family fallback to 5.5

When a log contains an unrecognized Haiku version such as claude-haiku-5-6, exactCanonicalKey preserves the unknown ID and price(forCanonicalKey:) still routes every claude-haiku-* ID to Haiku 4.5. After making 5.5 the current Haiku tier here, these approximate rows use 4.5's $1/$5 rates instead of 5.5's $0.10/$0.50 rates and miss the new 100K threshold, overestimating a short request by 10×. The family fallback should be advanced to the newly current tier as well.

Useful? React with 👍 / 👎.

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