Commit Graph
1 Commits
Author SHA1 Message Date
yetone ad164b6311 providers: a provider can be duplicated, the signed-in account paused, and a Balance URL names each key with {key} (#268, #263, #266)
- #268: the editor's Duplicate opens Add filled in from the provider ("X copy", a new id, its URLs, models, headers, balance and proxy); AddCopy takes the source's keys, routing, balance token and Zhipu team unless a new key is pasted, the same-key refusal skipped for it. Signed-in accounts can't be copied.
- #263: unticking the account Codex or Claude Code is signed in to pauses it while another account is on (logins.json `paused`): the gateway passes over it and the agent stays signed in, so its remote control keeps working. With no other account on it is used again; switching accounts clears it. The row reads Paused, dimmed; ticking resumes it.
- #266: {key}, {apiKey} or {api_key} in the Balance URL or a header is each key's own (URL-escaped in the URL), so every key shows its own balance; a network error naming the key shows it masked.

Tested with TestAddCopy, TestCodexPausedOwnAccountPassedOver, TestBalanceURLNamesTheKey (each fails without its change) and duplicate-pause.test.cjs in Chromium and WebKit, English and Chinese (6 of 8 fail on the old app.js); balance-fix, add-sheet, click-scroll pass. go vet, go build -tags nogui (darwin, GOOS=linux, GOOS=windows), go test -tags nogui ./... pass. Not tried with real accounts.
2026-09-30 11:49:37 +08:00