Skip to content

feat(providers): refresh available Codex models, add refresh button, and add Astra pricing - #6251

Merged
atomantic merged 1 commit into
mainfrom
cos/task-mtndgckq/agent-401acf52
Sep 4, 2026
Merged

feat(providers): refresh available Codex models, add refresh button, and add Astra pricing#6251
atomantic merged 1 commit into
mainfrom
cos/task-mtndgckq/agent-401acf52

Conversation

@atomantic

Copy link
Copy Markdown
Owner

Summary

  • Refreshes available models for Codex CLI and Codex TUI to include GPT-6 Astra, GPT-5.6 Sol/Terra/Luna, GPT-5.5, GPT-5.4, GPT-5.4 Mini, and GPT-5.3 Codex Spark.
  • Implements _fetchCodexModels via codex app-server stdio JSON-RPC (initialize -> model/list) and wires Codex in MODEL_FETCHERS to expose canRefreshModels: true, lighting up the "Refresh Models" button on Codex provider cards.
  • Preserves prior catalogs in PRIOR_CODEX_MODEL_CATALOGS for safe auto-migration of existing installs.
  • Updates shipped defaults in data.reference/providers.json and server/lib/aiToolkit/defaults/providers.sample.json, as well as the active instance.
  • Adds GPT-6 Astra pricing data ($10/1M in, $50/1M out, $1/1M cache read, $12.50/1M cache write) in server/lib/modelPricing.js for usage estimates.
  • Adds comprehensive unit and integration tests across client and server.

Test Plan

  • server/lib/aiToolkit/providers.test.js: Verified auto-migration for sentinel-only and prior catalogs, as well as refreshProviderModels with codex app-server.
  • server/lib/aiToolkit/internal/codex.test.js & server/lib/aiToolkit/internal/modelFetchers.test.js: Verified helper and model fetcher mappings.
  • server/lib/modelPricing.test.js: Verified GPT-6 Astra exact and family resolution rates.
  • client/src/components/providers/ProviderCard.test.jsx: Verified "Refresh Models" button renders on Codex card.
  • Full server test suite passes (npm test in server).

@atomantic
atomantic merged commit 30a8e56 into main Sep 4, 2026
12 checks passed
@atomantic
atomantic deleted the cos/task-mtndgckq/agent-401acf52 branch September 4, 2026 20:18
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