[GH-ISSUE #7108] [Feature]: Gate NanoGPT usage pills behind Show subscription usage, and show them in the Connections menu #3974

Closed
opened 2026-10-21 06:09:12 +07:00 by bsakaguchi · 0 comments
Owner

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) renders
regardless 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=true models call, so
this needs no new request and no new state.

Alternatives considered

  • Always show the pills (the editor's current behavior). Simplest, but it is
    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.
  • Gate on a saved management token instead. Rejected: the multiplier comes
    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.
  • Fix only the editor and leave the picker alone. Rejected: the picker is now
    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:

Image hidden: Image

shown:

Image

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
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`) renders regardless 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=true` models call, so this needs no new request and no new state. ## Alternatives considered - **Always show the pills (the editor's current behavior).** Simplest, but it is 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. - **Gate on a saved management token instead.** Rejected: the multiplier comes 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. - **Fix only the editor and leave the picker alone.** Rejected: the picker is now 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: <img width="1295" height="757" alt="Image" src="https://github.com/user-attachments/assets/316fe842-a46e-4fca-91af-adecac371cf5" /> hidden: <img width="1341" height="786" alt="Image" src="https://github.com/user-attachments/assets/7e5e20b6-dd37-4c03-9892-d1420fb2f902" /> shown: <img width="1277" height="772" alt="Image" src="https://github.com/user-attachments/assets/d3fa0f60-7b60-4c8a-a0a3-2c46fba7fb44" /> ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 06:09:12 +07:00
  • closed this issue
  • added the
    in-pr
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#3974
No description provided.