Uh oh!
There was an error while loading. Please reload this page.
feat(desktop): activate Pricing settings editor - #2291
Conversation
Astro-Han
commented
Aug 6, 2026
Thanks for this — the UI work is genuinely solid: the table, the add/edit form with the On the routing question, we'd like to keep the Host-backed port from #2218 as the activation path rather than the legacy
Suggested path, matching what you proposed: reshape the renderer work as a follow-up to #2218 (or rebase on top once #2218 lands), and drop the preload / bridge-contract / ipc-surface pieces. The UI itself is worth keeping — it covers the add/edit/delete flows cleanly. Happy to review either way. One more relevant piece: we just filed #2329 — the builtin price table should sync from models.dev instead of the hand-maintained snapshot. It makes the |
Astro-Han
commented
Aug 8, 2026
Thanks for moving the pricing editor onto the Host-backed pricing authority. The snapshot and mutation outcomes are a better fit than the old renderer bridge, but the production path is not wired yet. P1: The production Settings entry never receives |
Astro-Han
commented
Aug 9, 2026
Thank you for all the work you’ve put into this, especially for carrying the production wiring, reconciliation states, retry path, Storybook coverage, and the previous P1/P2/P3 feedback through several rounds. I rechecked the latest head, and those earlier issues have been addressed; CI is green as well. Unfortunately, I think the surrounding product facts have now changed enough that we should stop rather than ask you for another patch. After #2329, the built-in pricing catalog grew from a small hand-maintained set to 1,239 generated models.dev entries. This PR’s Host snapshot loads the complete effective catalog and the table renders every entry, so it now has the same product-shape problem that led us to close #2218. More importantly, pricing overrides look like one dimension of the broader model-facts problem in #2330, alongside context-window and capability overrides. A unified I therefore don’t think there is another actionable code-review round here. My recommendation is to close this PR and align #2175/#2330 with the unified override direction. If real demand later justifies a UI, the smaller shape would be an overrides-only list with a catalog-backed picker, rather than the complete built-in catalog. I’m sorry this conclusion comes after you invested so much care in addressing the earlier reviews. This is not a reflection on the implementation—the implementation responded well to the feedback. The premise changed underneath it after #2329, and continuing to patch the branch would ask you to spend more effort on a product path we no longer think should ship. |
Summary
Adds an editable Pricing override editor to Desktop Settings → Usage → Pricing.
settings.pricingpreload contract for listing, upserting, resetting, and change notifications.usage:pricing:*main-process handlers to the renderer.Why
Issue #2175 reports that the Usage → Pricing tab promises custom pricing overrides but provides no way to create, edit, or remove them. The backend handlers already exist, but the renderer could not reach them.
Current implementation note
This draft uses the existing main-side
usage:pricing:*handlers through a narrow preload bridge. PR #2218 defines the longer-term Host-backedDesktopPricingSettingsPortpath and intentionally avoids the legacy renderer bridge. That integration choice is left visible for review; this PR should be merged only if the maintainers accept this as the activation path. Otherwise, the renderer changes should be reshaped as a follow-up to #2218 before merge.Verification
git diff --checknpm --workspace @maka/desktop run typechecknpm --workspace @maka/desktop run test:checksnpm --workspace @maka/desktop run build:rendererThe full Desktop suite is not fully green on this worktree: three existing xAI OAuth tests fail with
ECONNRESETin the network path. Storybook browser interaction coverage for the new CRUD flow has not been run yet.Review focus
Part of #2015
Related to #2218
Closes#2175