Switching models in the pricing editor kept the previous model's tiers and prices in the expression panel: TieredPricingEditor seeds its internal visual/raw state only on mount, and the initRef guard never re-ran on prop changes, so only the model name updated. Bump a reload token in the same effect that seeds billingExpr and use it as the editor's key, so a freshly loaded model remounts the editor and re-parses its expression. The token changes in lockstep with billingExpr, and user edits (which only touch state) do not trigger it. Closes #5750
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| channel-selector-dialog.tsx | Loading commit data... | |
| claude-settings-card.tsx | Loading commit data... | |
| conflict-confirm-dialog.tsx | Loading commit data... | |
| constants.ts | Loading commit data... | |
| gemini-settings-card.tsx | Loading commit data... | |
| global-settings-card.tsx | Loading commit data... | |
| grok-settings-card.tsx | Loading commit data... | |
| group-ratio-form.tsx | Loading commit data... | |
| group-ratio-visual-editor.tsx | Loading commit data... | |
| group-special-usable-editor.tsx | Loading commit data... | |
| index.tsx | Loading commit data... | |
| model-pricing-core.ts | Loading commit data... | |
| model-pricing-inputs.tsx | Loading commit data... | |
| model-pricing-sheet.tsx | Loading commit data... | |
| model-pricing-snapshots.ts | Loading commit data... | |
| model-ratio-form.tsx | Loading commit data... | |
| model-ratio-table-columns.tsx | Loading commit data... | |
| model-ratio-visual-editor.tsx | Loading commit data... | |
| pricing-format.ts | Loading commit data... | |
| ratio-settings-card.tsx | Loading commit data... | |
| routing-reliability-section.tsx | Loading commit data... | |
| section-registry.tsx | Loading commit data... | |
| tiered-pricing-editor.tsx | Loading commit data... | |
| tool-price-settings.tsx | Loading commit data... | |
| upstream-ratio-sync-columns.tsx | Loading commit data... | |
| upstream-ratio-sync-helpers.ts | Loading commit data... | |
| upstream-ratio-sync-table.tsx | Loading commit data... | |
| upstream-ratio-sync.tsx | Loading commit data... | |
| utils.ts | Loading commit data... |