You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maka.apache.org by "liuxiaocs7 (via GitHub)" <gi...@apache.org> on 2026/08/29 10:35:37 UTC

[I] Usage → Pricing tab is read-only: no UI to add/edit/reset custom pricing overrides [maka]

liuxiaocs7 opened a new issue, #4163:
URL: https://github.com/apache/maka/issues/4163

   ## Problem
   
   The Usage statistics surface has a **Pricing** tab (`定价配置`) that is display-only. The Runtime Host side of pricing overrides is fully built — `pricing.query` / `pricing.mutate` (upsert + delete) in `HostUsagePricingCoordinator`, `PricingStore` in `@maka/storage`, and the `usage:pricing:list` / `usage:pricing:put` / `usage:pricing:reset` IPC handlers in the Desktop main process — but none of it is reachable from the UI:
   
   - The preload bridge never exposes the pricing mutation channels, so the renderer cannot call them.
   - `UsagePricingPanel` only renders a table of existing custom overrides; it has no add / edit / reset affordance.
   
   So the tab always shows "No pricing overrides", and a user cannot register a custom price for a model whose built-in pricing is missing or wrong — that model's cost then reads as unavailable in the summary.
   
   ## Desired outcome
   
   From the Pricing tab I can:
   
   - add a custom per-model price (provider + model, input/output rate, optional cache read/write rates);
   - edit an existing override;
   - reset (remove) an override so the model falls back to the built-in pricing table.
   
   ## Alternatives or workarounds
   
   None from the UI today — the only way to populate an override is to drive the IPC/store directly, which isn't user-accessible.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org


Re: [I] Usage → Pricing tab is read-only: no UI to add/edit/reset custom pricing overrides [maka]

Posted by "liuxiaocs7 (via GitHub)" <gi...@apache.org>.
liuxiaocs7 commented on issue #4163:
URL: https://github.com/apache/maka/issues/4163#issuecomment-5461856056

   take


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org


Re: [I] Usage → Pricing tab is read-only: no UI to add/edit/reset custom pricing overrides [maka]

Posted by "Astro-Han (via GitHub)" <gi...@apache.org>.
Astro-Han closed issue #4163: Usage → Pricing tab is read-only: no UI to add/edit/reset custom pricing overrides
URL: https://github.com/apache/maka/issues/4163


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org


Re: [I] Usage → Pricing tab is read-only: no UI to add/edit/reset custom pricing overrides [maka]

Posted by "Astro-Han (via GitHub)" <gi...@apache.org>.
Astro-Han commented on issue #4163:
URL: https://github.com/apache/maka/issues/4163#issuecomment-5717632896

   Duplicate of #2015, which asks for the same editable Runtime Host-backed pricing overrides and is the older thread.
   
   The mechanism described here still holds on current `main` — the preload bridge exposes no pricing mutation channel, and `UsagePricingPanel` (`apps/desktop/src/renderer/features/usage/ui/usage-settings-view.tsx:501`) only renders existing overrides — so it is worth carrying into #2015 rather than losing. Closing here to keep the work on one thread.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org