Skip to content

feat: make Token Cost settings read-only and refresh from models.json#944

Merged
stephanj merged 1 commit intomasterfrom
feat/token-cost-cloud-models
Feb 19, 2026
Merged

feat: make Token Cost settings read-only and refresh from models.json#944
stephanj merged 1 commit intomasterfrom
feat/token-cost-cloud-models

Conversation

@stephanj
Copy link
Copy Markdown
Collaborator

Summary

  • Make the Token Cost settings table fully read-only since model costs are now driven by the remote models.json
  • Trigger a background refresh of models.json when opening the settings page so newly added models (e.g. Gemini 3.1 Pro Preview) appear immediately
  • Previously, the table had editable cost/context columns but edits were never persisted — this removes the misleading editability

Depends on #943

Test plan

  • Open Settings > LLM Costs, verify table is not editable
  • Verify all models from models.json appear in the table (including Gemini 3.1 Pro Preview)
  • Verify table sorts correctly by provider/model/cost columns

🤖 Generated with Claude Code

The cost table is now read-only since model costs are driven by the
remote models.json. Opening the settings page triggers a background
refresh so newly added models (e.g. Gemini 3.1 Pro Preview) appear
immediately.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@stephanj stephanj merged commit 68f0ace into master Feb 19, 2026
5 of 6 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