Repository navigation
feat(proxies): allow manual account plans - #810
Merged
Merged
Conversation
nixuuu
enabled auto-merge (squash)
November 15, 2026 08:59
nixuuu
disabled auto-merge
November 15, 2026 09:00
Persist owner-scoped account plan choices and apply them to weighted capacity across web and mobile. Related: #763
nixuuu
force-pushed
the
feat/proxy-account-plan-picker
branch
from
November 15, 2026 09:08
17a1c24 to
d8a8a37
Compare
nixuuu
enabled auto-merge (squash)
November 15, 2026 09:08
nixuuu
disabled auto-merge
November 15, 2026 09:08
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change
Proxy accounts with undetectable plans can now use a manual plan in Settings → Proxies → Accounts on web and mobile. For example, Claude Ultra counts as ×10 and Team as ×5. Automatic keeps detection as the default; a manual choice takes precedence over later detection until reset, with a subtle “Set manually” hint.
Verification
Local checks passed:
bun run gen.bun run check:tmpfortests/integration/proxy-account-plans.test.ts,tests/integration/proxy-accounts.test.ts, gatewaymanagement-plan.test.tsandmanagement.test.ts, domainproxy-capacity.test.ts, and DBschema.test.ts: 48 tests passed across the focused runs, with no temporary files left. The new integration test covers set/clear, later detection precedence, weighted capacity, foreign-owner read/write refusal, refresh with changed email/runtime index, and removed accounts.Rebased onto current dev after #803, #804, #806 and #807. Renumbered the migration to 0149 and regenerated the combined proto. Focused tests and affected typechecks were repeated. The web row keeps the provider mark, blurred identity and status on its first line. A muted, borderless kit trigger occupies one 20 px plan line below, followed inline by “· Set manually”. There is no empty hint line. Switching to Automatic leaves row height unchanged on desktop and at 320 px. Browser shots were refreshed at desktop, 390 px and 320 px in light/dark with short and long identities. The final visual-only change passed web typecheck and edited-file lint/format; the 48 focused backend tests remain valid for unchanged backend inputs.
Full frozen install, gen:check, repository-wide typecheck/lint/format, complete check:tmp suite and selected builds remain with CI. No UI test suite was added. Native mobile was typechecked but not run on an iOS/Android device.
Copy audit — docs/copy.md §8
Checklist 1–10 passed: short active sentences, sentence case and punctuation; existing plan/account glossary; menu entries are selection values, not commands; errors end with an action; no new empty states, duplicate facts, jargon, or “soul” copy. Automatic preserves honest unknown detection. Short/typical/long identities checked at desktop and phone widths with blur intact. Accessible “Account plan”, status text and numbers carry meaning without colour or position. No failing items.
Related: #763