Skip to content

Improve token cost freshness#170

Merged
Finesssee merged 6 commits into
mainfrom
finesssee-port-cost-freshness
Jul 12, 2026
Merged

Improve token cost freshness#170
Finesssee merged 6 commits into
mainfrom
finesssee-port-cost-freshness

Conversation

@Finesssee

Copy link
Copy Markdown
Collaborator

Summary

  • track local token-cost freshness independently from provider quota age and expose the cost timestamp
  • retry fast cost failures while preserving timeout suppression
  • coalesce bounded models.dev refreshes for unknown OpenAI/Anthropic models, retain cached priceable entries, and rescan once after successful refresh

Validation

  • cargo test --manifest-path rust/Cargo.toml (563 + 1 passed)
  • cargo test --manifest-path apps/desktop-tauri/src-tauri/Cargo.toml (306 passed)
  • both cargo fmt checks
  • both cargo clippy --all-targets -- -D warnings
  • npm run build and locale parity (572 keys)
  • git diff origin/main...HEAD --check

Finesssee and others added 6 commits July 12, 2026 06:04
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@Finesssee
Finesssee merged commit 0a6d4b0 into main Jul 12, 2026
2 of 3 checks passed
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