mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #7108] [Feature]: Gate NanoGPT usage pills behind Show subscription usage, and show them in the Connections menu #3974
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#3974
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ylli-selmani on GitHub (Oct 5, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7108
Originally assigned to: @SpicyMarinara on GitHub.
What problem does this solve?
Two gaps in the NanoGPT subscription cost pills added in #6686.
1. Pay-as-you-go users see subscription pills they never asked for.
In the connection editor, a model's cost pill (
1x,2x,Paid) rendersregardless of the connection's Show subscription usage switch. That switch is
off by default, and it is the user's own statement of whether they want
subscription information for this connection. A pay-as-you-go user who has never
enabled it, and who has no subscription allowance to compare against, still gets
subscription cost markers on every model.
2. The pills are missing where models are now picked most often.
#7102 (implementing #7098) moved model selection into the Connections menu by
the chat input, with the same picker shared by the phone menu and Chat Settings.
That picker shows each model's name, ID, context and output limits, but not its
subscription cost, so the place a user now compares models is the one place the
cost is missing. The connection editor still shows them, which leaves the two
surfaces inconsistent.
Proposed solution
Gate the pills on the connection's own "Show subscription usage" switch, in
both the connection editor and the model picker. That switch already governs
whether subscription information is shown for a connection, so the pills should
ride on it rather than on a separate condition. With it off, no pills anywhere;
with it on, the same pills everywhere.
Render the pills in the model picker, which covers all three of its call
sites at once: the desktop Connections menu, the phone menu, and the
Connection section of Chat Settings. That keeps the picker in parity with the
connection editor.
The pill data already arrives from the existing
detailed=truemodels call, sothis needs no new request and no new state.
Alternatives considered
what produces the pay-as-you-go problem above, and it means the setting that
says "I care about subscription usage" does not actually control the
subscription information.
from the models call, not the usage endpoint, so a token is not what makes the
data available. Gating on it would hide information the app already has.
the primary place models are compared, so the inconsistency would remain where
it is most visible.
Additional context
Related: #6686 (the feature this follows up), #7098 and #7102 (the model picker
this extends).
Open question worth settling while implementing: with the switch off, should an
included model's cost be hidden entirely, or should the pill remain with a hint
that the connection is not tracking usage? Hiding it is the simpler reading of
"off" and is what the proposal above assumes.
Local Screenshots:
before:
shown:
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: