yetone
b0174e7615
usage: a ChatGPT card says why its allowance can't be read, and a ChatGPT API account says where it shows
...
hmy on Discord: five ChatGPT accounts each said only "暂时无法获取额度"
(Allowance unavailable). danzi002 on Discord: accounts added through the
API never show usage, ones added as ChatGPT do.
What changed:
- Codex's usage read (codexWindows) now words its failure
(codex_usage_words.go): a Cloudflare challenge names the proxy/VPN
address as the usual cause; any other HTTP answer names its status and
what ChatGPT said; a network error says chatgpt.com couldn't be
reached; a reply magpie can't decode says so. The error still unwraps
to accountStatusError, so expiry and passing logic is unchanged.
- A ChatGPT API account (chatgpt-api) was read as a Codex account: a
saved one said "chatgpt-api accounts can't be used side by side", the
one in use read Codex's own sign-in ("Codex is signed out", or another
account's allowance under its name). OpenAI's API tells no plan usage,
so its row now says so, names chatgpt.com/settings/usage (SeeAt) and
says the same account added as ChatGPT shows it here.
- GUI quotaError translates each of these (en, zh, zh-TW, ja, de), and
"not read yet" (errNotAsked) gets its own words. The generic fallback
now reads "Allowance unavailable — hover for why"; the row's tooltip
has always been the raw error. Comments in app.js were shortened to
stay under TestCoreScriptBudget, which is not raised.
- docs/subsystems/providers-accounts.md describes the words.
Endpoint: the real wham/usage read of the owner's accounts in a sandbox
HOME copy (read-only, ~/.codex untouched) answered 200 and parsed, so
the endpoint itself is not broken; the "error decoding response body"
work is another session's and is not touched here.
Run (on mote; provider and gui again at the pushed head, rebased on
18c69aa46; 2251ca1ce , new under it, changed app.js and the budget):
- gofmt -l clean; GOOS=linux -tags nogui and GOOS=windows go vet of
provider and gui clean.
- go test -timeout 45m ./...: ok except TestEveryRouteHasACommandOrIsNamed
(#4826 , red on origin/main 2251ca1ce too), TestMainWindowCorners (#3949 ,
red on main too) and TestCodexPoolSaysTheClientsVersion (#4807 , red in
the full run, ok alone here and on main). At the pushed head:
provider ok, gui ok but TestMainWindowCorners (#3949 ), core budget ok.
- GUI: chatgpt-usage-why.test.cjs (new; chromium and webkit, 560 and
390, en/zh/zh-TW/ja/de, each row's words, its status code, the raw
tooltip, no overflow) and the six tests whose generic line changed.
The whole GUI suite was not run before this push: another session's
full suite held mote. The change adds no API call and no layout, only
words; the whole suite runs after the push and its reds get issues.
Broken by hand:
- codexWindows returning the bare err: TestCodexUsageSaysWhy and
TestCodexLoginUsageSaysCloudflare red.
- the GUI ChatGPT patterns removed: chatgpt-usage-why 0/2.
- the chatgpt-api branch off: TestChatGPTAPIUsageSaysWhere red, the
row read "Codex is signed out; run codex login".
Not tried: a real Cloudflare challenge (the fixture is the start of its
page as Cloudflare serves it, not hmy's bytes, which magpie hasn't got); a real ChatGPT API account (none signed in here); making a
ChatGPT API account's usage readable, since its token is for
api.openai.com and OpenAI shows plan usage only on chatgpt.com.
2026-11-02 20:04:32 +08:00
..
2026-11-02 20:04:32 +08:00
2026-10-30 15:00:16 +08:00
2026-10-18 07:13:09 +08:00
2026-11-02 20:04:32 +08:00
2026-10-13 09:55:23 +08:00
2026-11-01 03:49:03 +08:00
2026-10-04 23:30:56 +08:00
2026-10-08 19:22:14 +08:00
2026-10-30 18:03:55 +08:00
2026-10-07 03:34:05 +08:00
2026-10-30 15:38:06 +08:00
2026-10-12 01:29:57 +08:00
2026-10-09 08:50:14 +08:00
2026-10-06 00:31:46 +08:00
2026-10-11 02:34:30 +08:00
2026-11-01 01:56:48 +08:00
2026-10-14 20:01:06 +08:00
2026-10-31 19:35:16 +08:00
2026-10-14 17:00:34 +08:00
2026-10-31 10:33:50 +08:00
2026-11-02 18:53:07 +08:00
2026-11-02 20:00:54 +08:00
2026-10-13 09:55:23 +08:00
2026-10-27 18:58:16 +08:00
2026-10-27 18:58:16 +08:00
2026-10-24 21:01:18 +08:00
2026-10-24 21:01:18 +08:00
2026-10-05 14:37:44 +08:00
2026-10-05 14:37:44 +08:00
2026-10-15 01:32:12 +08:00
2026-11-01 11:43:56 +08:00
2026-11-02 18:24:38 +08:00
2026-11-02 18:24:38 +08:00
2026-10-13 16:55:27 +08:00
2026-11-01 17:28:15 +08:00
2026-10-28 22:26:02 +08:00
2026-10-17 22:54:38 +08:00
2026-10-25 05:54:07 +08:00
2026-10-16 00:16:43 +08:00
2026-10-25 01:23:42 +08:00
2026-11-02 13:53:19 +08:00
2026-11-02 13:53:19 +08:00
2026-10-13 14:40:11 +08:00
2026-11-02 05:37:32 +08:00
2026-10-14 09:15:21 +08:00
2026-10-14 09:15:21 +08:00
2026-10-14 09:15:21 +08:00
2026-10-13 11:13:24 +08:00
2026-10-13 11:13:24 +08:00
2026-10-13 11:13:24 +08:00
2026-10-04 22:45:28 +08:00
2026-10-04 22:45:28 +08:00
2026-10-13 12:11:23 +08:00
2026-10-26 15:35:12 +08:00
2026-11-01 21:19:22 +08:00
2026-10-10 22:36:28 +08:00
2026-10-27 15:30:31 +08:00
2026-10-31 09:17:24 +08:00
2026-10-29 22:10:21 +08:00
2026-10-29 22:10:21 +08:00
2026-10-30 13:23:19 +08:00
2026-10-30 16:05:58 +08:00
2026-10-22 19:03:32 +08:00
2026-10-30 16:05:58 +08:00
2026-11-02 19:41:05 +08:00
2026-10-07 03:34:05 +08:00
2026-10-31 04:21:21 +08:00
2026-10-13 07:14:22 +08:00
2026-11-01 16:43:21 +08:00
2026-10-17 05:33:18 +08:00
2026-10-14 08:36:07 +08:00
2026-10-13 05:34:13 +08:00
2026-10-12 22:51:53 +08:00
2026-10-29 20:53:36 +08:00
2026-10-12 00:57:27 +08:00
2026-10-12 00:57:27 +08:00
2026-10-25 19:28:05 +08:00
2026-10-25 19:28:05 +08:00
2026-10-25 19:28:05 +08:00
2026-10-25 19:28:05 +08:00
2026-10-14 13:31:10 +08:00
2026-11-01 17:28:15 +08:00
2026-11-01 17:28:15 +08:00
2026-10-25 19:28:05 +08:00
2026-10-09 12:10:04 +08:00
2026-10-09 12:10:04 +08:00
2026-10-09 12:10:04 +08:00
2026-10-09 12:10:04 +08:00
2026-10-06 19:32:56 +08:00
2026-10-28 12:25:39 +08:00
2026-10-28 12:25:39 +08:00
gui, proc: the Gateway card quits an older magpie serving the gateway and takes it over, or restarts the gateway (leslie_luo on Discord) — the card said an older magpie served the gateway and to quit it, with no way to tell which process that was. With an older magpie on the port it now has "Quit magpie {v} and take over": the process listening on the gateway's port is found (lsof on a Mac, /proc on Linux, Get-NetTCPConnection on Windows), its program path checked to be magpie's (magpie, magpie-*, dial, .exe/.old), asked to quit (SIGTERM, then SIGKILL after 5 s; TerminateProcess on Windows) and this magpie serves the gateway at once instead of within 15 s. Otherwise the card has "Restart gateway" ("Start gateway" when none runs); a magpie of this version or newer gets no button. Anything else on the port is never ended: a program that isn't magpie, one of another user or an administrator, one that won't quit, or a magpie a LaunchAgent/systemd unit/scheduled task starts again is said under the button with its path and pid, in en/zh/ja/de. TestGatewayFixQuitsOnlyAMagpie (copies of the test binary on a port of its own: one named other-server answering as magpie is left running, one named magpie is quit and the gateway is served here, then restarted) and gateway-takeover.test.cjs (WebKit and Chromium, en and zh, no scroll, no left border) fail without the change; TestListeningOn/TestIsMagpie pass on macOS and in a Linux container. go vet, go build (darwin, GOOS=linux nogui, GOOS=windows) and go test -tags nogui ./... under a temp HOME pass.
2026-10-05 15:05:31 +08:00
2026-10-17 17:45:57 +08:00
2026-10-05 22:20:45 +08:00
2026-10-31 09:41:13 +08:00
gui: the Gateway's models say what they take — reasoning levels, images, context at each row's end, in full in a tooltip — and the search finds a group by its models (ARNO on Discord: 希望网关里的模型列表支持搜索查找,支持显示模型或者模型组更多的信息,比如该支持的推理强度,是否支持图像等) — each model row on the Gateway page now ends, before its copy button, with small muted chips: the reasoning levels agents are offered ("low–xhigh", or "low / medium" for two; the levels kept, not all it has, and none for a model whose levels aren't known), a picture glyph when it accepts images, and its context ("400K", "1M"; the 1M badge after the name moved there). Their tooltip says it in full: "Reasoning: low, medium, high, xhigh", "Accepts images" or "Text only", "Context: 400,000 tokens". A routing group's are what agents are told of it, as of a model: /api/providers' gateway.groups now carry the catalog entry's efforts, images, context and output, and members (provider/model, in its order); its tooltip says images are every model's, the context the least of its models', its output, and names its models. The search (already there, shown from 8 models) shows from 5, has a tooltip saying what it matches, and also matches a group's models, so "kimi" finds the group sending to it. Strings in zh. TestGatewayGroupsSayWhatTheyTake checks a group's listed members and that its efforts, images, context and output are the catalog's; gateway-model-info.test.cjs (webkit) checks the chips and tooltips of models and a group, the search by id, name, provider and a group's models, Escape, and that a click on the chips picks the model without moving the row. Related GUI tests (gateway-*, click-scroll, list-sort, public-url, request-archive, sse-body, web-page, api-key-theme) pass; go vet, go build -tags nogui ./... and go test -tags nogui -count=1 ./... under a temp HOME pass but TestProvidersAnswerWhileListsComeIn, a timing test that passes alone.
2026-10-03 22:34:36 +08:00
2026-10-30 19:12:35 +08:00
2026-11-01 11:43:56 +08:00
2026-11-01 11:43:56 +08:00
2026-11-01 11:43:56 +08:00
2026-11-01 11:43:56 +08:00
2026-10-05 22:20:45 +08:00
2026-10-15 23:08:05 +08:00
2026-10-13 20:39:39 +08:00
2026-10-10 04:24:18 +08:00
2026-10-28 03:50:46 +08:00
2026-10-15 00:34:14 +08:00
2026-10-15 00:34:14 +08:00
2026-10-10 15:08:14 +08:00
2026-10-17 20:38:06 +08:00
2026-11-02 14:13:52 +08:00
2026-10-28 17:34:16 +08:00
2026-10-11 18:57:48 +08:00
2026-10-09 11:10:12 +08:00
2026-10-11 10:33:45 +08:00
2026-10-29 23:36:58 +08:00
2026-10-13 01:41:50 +08:00
2026-10-31 00:57:21 +08:00
2026-11-02 14:13:52 +08:00
2026-10-31 15:56:40 +08:00
2026-10-31 15:56:40 +08:00
2026-10-31 15:56:40 +08:00
2026-10-31 12:44:16 +08:00
2026-11-01 14:33:24 +08:00
2026-10-17 05:33:18 +08:00
2026-11-01 11:02:56 +08:00
2026-10-13 04:27:40 +08:00
2026-10-29 15:50:37 +08:00
2026-10-29 15:50:37 +08:00
2026-10-15 19:20:09 +08:00
2026-11-02 11:09:11 +08:00
2026-10-15 23:08:05 +08:00
gui: every installed magpie on a config is one at a time, so a Mac restart can't put two birds in the menu bar (inaction on Discord) — the lock that keeps a second magpie from running (v0.1.879) was keyed by the config dir and the resolved executable, so two copies of the app each took their own: Open at login starting the copy it was turned on for while the Mac reopened the one last run (another magpie.app, or one run translocated from Downloads, whose path changes each launch), or Homebrew's, whose path has its version in it. Every magpie.app and Homebrew copy now shares the lock; a bare binary elsewhere (the owner's magpie-dev) still has its own. A second launch for the window opens the app by its bundle id (com.yetone.magpie) rather than its own path, so it reaches the running copy. TestOneMagpieAtATime fails without the change (the translocated and Homebrew copies had locks of their own). go vet, go build (darwin, GOOS=linux nogui, GOOS=windows) and go test -tags nogui ./... under a temp HOME pass (TestProvidersAnswerWhileListsComeIn and TestUserPath timed out under load and pass alone).
2026-10-05 16:59:33 +08:00
gui: one magpie at a time on the Mac, so one started at login twice (its own open at login and a Login Item the user added, or the Mac reopening it after a shutdown it wasn't quit for) ends instead of putting a second bird in the menu bar (Crispin on Discord) — Wails has no single instance on the Mac, and magpie's LaunchAgent runs the binary itself, past the Mac's one-copy-of-an-app, so both starts ran: the second found the gateway served and only watched it, with its own tray icon. A magpie now takes a flock in its config dir, keyed by the config dir and its resolved executable (a sandboxed HOME, and a copy elsewhere such as the owner's magpie-dev, each run on their own); a second one that finds it held ends: a start at login quietly, one for the window or the panel opens the .app, which has the running magpie show its window (the Dock's reopen; at most once in 10 s, so it can't go on), and a magpie:// link is opened, which the Mac hands to the running one. The system lets a flock go when its holder ends however it ends, so a shutdown leaves nothing held behind. Restart to update relaunches only once the old process has gone, so it is unaffected. TestOneMagpieAtATime (a second process holds the lock, this one is refused, the holder is killed, the lock is free) fails on the old code. Two GUI launches on the real Mac weren't tried, since a GUI magpie registers its magpie:// handler with the system. go vet, builds (darwin gui and nogui, GOOS=linux nogui, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass.
2026-10-04 23:43:34 +08:00
gui: every installed magpie on a config is one at a time, so a Mac restart can't put two birds in the menu bar (inaction on Discord) — the lock that keeps a second magpie from running (v0.1.879) was keyed by the config dir and the resolved executable, so two copies of the app each took their own: Open at login starting the copy it was turned on for while the Mac reopened the one last run (another magpie.app, or one run translocated from Downloads, whose path changes each launch), or Homebrew's, whose path has its version in it. Every magpie.app and Homebrew copy now shares the lock; a bare binary elsewhere (the owner's magpie-dev) still has its own. A second launch for the window opens the app by its bundle id (com.yetone.magpie) rather than its own path, so it reaches the running copy. TestOneMagpieAtATime fails without the change (the translocated and Homebrew copies had locks of their own). go vet, go build (darwin, GOOS=linux nogui, GOOS=windows) and go test -tags nogui ./... under a temp HOME pass (TestProvidersAnswerWhileListsComeIn and TestUserPath timed out under load and pass alone).
2026-10-05 16:59:33 +08:00
2026-10-24 02:20:38 +08:00
2026-10-24 02:20:38 +08:00
2026-10-13 02:14:10 +08:00
2026-11-01 04:46:38 +08:00
2026-10-13 07:30:06 +08:00
2026-10-13 07:30:06 +08:00
2026-10-10 20:00:38 +08:00
gui: many keys are added to a provider at once, and a key the gateway rests says why and until when on its row (361 on Discord: 密钥比较多的话,需要批量导入的话就不方便了) — a provider with several keys took them one at a time, each pasted into Add another key's field. Add another key now has Paste several, a box that takes any number of keys, one a line or separated by commas, semicolons or spaces (full-width ones too), quotes trimmed, repeats counted once, and says how many it holds; Add (or Cmd/Ctrl+Enter) posts keys/import, which adds the ones the provider hasn't got in order (the first becomes its key when it has none) and saves once, and the note says N keys added, M already there. Pasting several keys into the one key's field opens the box with them. Each key's row in the editor, when the gateway is passing it over (rate limited, out of credit, refused…), says Resting · 429 rate limited · back at 14:05, from the same rests the Routing page counts; rotation order and failover were there already (routing modes, rests). zh, ja, de strings. TestSplitKeys, TestAddKeys, TestKeysImportAndRest (no raw key in the reply) fail on the old code (don't build); key-import.test.cjs (WebKit, en and zh: the box, its count, the post, the note, a paste opening it, the rest line, no scroll on a click) fails 4 of 4 on the old assets. account-models, account-arrange, account-return and click-scroll pass on WebKit. go vet, builds (darwin, GOOS=linux nogui, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass (TestDevinSignedInOnlyInMagpie and TestClientGoneRecordedAsCanceled timed out once each under load and pass on their own).
2026-10-05 07:54:16 +08:00
2026-10-05 21:44:15 +08:00
2026-11-01 07:39:08 +08:00
2026-10-30 15:26:03 +08:00
2026-11-01 09:04:26 +08:00
2026-11-01 01:28:58 +08:00
2026-10-11 01:49:47 +08:00
2026-11-01 11:43:56 +08:00
2026-11-01 15:23:15 +08:00
2026-10-29 03:17:58 +08:00
2026-10-12 00:10:59 +08:00
2026-10-11 20:10:05 +08:00
2026-11-01 15:23:15 +08:00
2026-11-01 17:28:30 +08:00
2026-10-25 14:00:59 +08:00
2026-10-17 05:33:18 +08:00
2026-10-20 01:25:47 +08:00
2026-10-31 00:44:59 +08:00
2026-10-29 09:24:31 +08:00
2026-10-20 02:29:39 +08:00
2026-11-01 17:28:30 +08:00
2026-11-01 17:28:30 +08:00
2026-10-16 08:43:02 +08:00
2026-10-29 06:38:04 +08:00
2026-10-29 06:38:04 +08:00
2026-10-26 22:50:37 +08:00
2026-10-26 22:50:37 +08:00
2026-10-31 10:57:56 +08:00
2026-10-31 10:57:56 +08:00
2026-11-01 01:56:48 +08:00
2026-11-02 03:40:03 +08:00
2026-10-10 01:30:29 +08:00
2026-10-15 23:08:03 +08:00
providers: a provider's model list says the context window agents are told — the one set on it, else models.dev's for a prefixed id — not only its vendor's list's (Discord, ARNO on v0.1.815: provider的上下文窗口覆盖功能好像失效了。cline插件的模型都没有默认的上下文窗口大小 … 如zai/glm-5.3-flash,cline-free/mimo-v2.6-flash) — the Providers page's models (providerInfo's modelJSON.Context) took catalog.Model.Context as the vendor's list or the plugin gave it, while the catalog's entries (entryFor: /v1/models, every agent's config, routing) take the window the user set (Provider.ContextOf) over it, and models.dev's for the id (catalog.ContextOf, which already reads zai/glm-5.3-flash as glm-5.3-flash) where the list says none. So a window set in the editor or with magpie model context reached agents but not the page, the agents' model pickers (which read the same list) or a chip's 1M tag, and a model listed with no window — Cline's plugin gives every model 0 (fixed in its 0.1.2), a relay's prefixed ids — showed none. The window is now one function, Provider.WindowOf (the user's, else ListedWindow: the list's, else models.dev's), which entryFor and providerInfo both read; the page is also told the window before the user's (listed), which the context field's "Each model's most" pick compares against, so a model set to its most still offers it. Lookups by a prefixed id were not broken: in the owner's config 14 of 794 models had no window on the page and one from models.dev for agents (Gemini's, Kiro's auto), the same split. TestProviderModelWindowSaid (a relay serving zai/glm-5.3-flash and own-model: the page says 1M before a window is set and 200K/64K after, as Served does) fails on the old code (the page said 0 where agents were told 1000000); TestPluginModelWindow (Cline's plugin with cline-pass/glm-5.3-flash, cline-free/mimo-v2.6-flash: models.dev's window, then the one set) guards the plugin path, which was already right for agents. go vet, builds (darwin, GOOS=linux, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass; model-rate and editor-short-window pass in WebKit. Not tried with the reporter's Cline account; an agent already running keeps the window it started with until it rereads its config.
2026-10-04 13:36:54 +08:00
2026-10-24 05:31:59 +08:00
2026-10-28 15:25:53 +08:00
2026-10-07 03:00:47 +08:00
2026-10-07 00:16:02 +08:00
2026-10-30 11:54:46 +08:00
2026-10-27 08:29:11 +08:00
2026-11-02 17:19:23 +08:00
2026-10-31 22:39:37 +08:00
2026-11-02 15:27:15 +08:00
2026-11-02 15:27:15 +08:00
2026-10-12 01:45:14 +08:00
2026-10-15 23:08:00 +08:00
2026-10-16 15:40:38 +08:00
2026-10-30 12:06:33 +08:00
2026-10-30 12:06:33 +08:00
2026-10-30 12:06:33 +08:00
2026-10-22 20:50:59 +08:00
2026-10-14 08:50:41 +08:00
2026-10-19 12:42:48 +08:00
2026-11-02 15:27:15 +08:00
2026-10-18 07:13:09 +08:00
2026-11-02 15:27:15 +08:00
2026-11-02 15:27:15 +08:00
2026-11-02 15:27:15 +08:00
2026-10-28 22:34:52 +08:00
2026-10-13 14:29:52 +08:00
2026-11-01 22:14:19 +08:00
2026-10-24 22:31:59 +08:00
2026-10-13 14:29:52 +08:00
2026-10-14 04:22:19 +08:00
2026-10-12 19:38:20 +08:00
2026-10-31 18:30:39 +08:00
2026-10-10 23:57:56 +08:00
2026-10-30 15:42:29 +08:00
2026-10-27 23:37:46 +08:00
2026-11-02 14:12:20 +08:00
2026-10-05 17:25:15 +08:00
2026-10-21 09:13:30 +08:00
2026-10-30 18:55:51 +08:00
2026-10-28 16:55:24 +08:00
2026-10-28 16:55:24 +08:00
2026-10-12 19:14:54 +08:00
2026-11-02 18:37:25 +08:00
2026-10-14 16:40:23 +08:00
2026-10-07 06:14:20 +08:00
2026-10-11 22:41:11 +08:00
2026-11-01 09:14:11 +08:00
2026-11-01 06:01:05 +08:00
2026-10-15 05:20:17 +08:00
2026-10-27 02:26:27 +08:00
2026-10-30 04:48:17 +08:00
2026-10-07 06:14:20 +08:00
2026-10-12 23:45:06 +08:00
2026-10-11 13:06:28 +08:00
2026-10-12 23:45:06 +08:00
2026-10-17 13:11:43 +08:00
2026-10-25 04:12:06 +08:00
2026-10-09 02:20:30 +08:00
2026-10-06 16:02:03 +08:00
2026-10-16 22:58:40 +08:00
2026-10-23 03:35:27 +08:00
gui: a provider's editor has a Max output beside its Context window, so a model whose reply limit magpie has wrong can be set right there (ARNO on Discord: 上下文长度有问题还可以手动覆盖,maxtoken错了如何解决呢) — the reply limits the user sets (ModelOutputs, "provider/model" or "provider/*") could only be set with magpie model output; the editor now shows them in a Max output box written as the Context window box is (32k for all its models, or gpt-6=128k, comma separated), and a Save sends them: the limits not in the box are dropped, a model the provider doesn't list is refused, and the catalog is touched so /v1/models, the agents' max tokens and the gateway's per-member clamp take the new limit. zh and ja strings added. TestModelOutputsSetFromTheEditor, TestProviderSaveOutputs and provider-max-output.test.cjs (WebKit, en and zh) fail on the old code. go vet, builds (darwin, GOOS=linux nogui, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass (TestClientGoneRecordedAsCanceled flaked once under load, passes alone).
2026-10-04 23:37:35 +08:00
2026-11-01 03:07:06 +08:00
2026-10-15 23:08:02 +08:00
2026-10-14 23:06:35 +08:00
2026-10-10 19:21:56 +08:00
2026-11-02 14:30:45 +08:00
2026-11-01 09:14:11 +08:00
2026-11-01 09:04:26 +08:00
2026-10-23 02:39:33 +08:00
2026-10-15 23:08:05 +08:00
2026-10-15 23:08:05 +08:00
2026-10-11 11:04:21 +08:00
2026-10-05 14:26:23 +08:00
2026-10-31 15:56:40 +08:00
2026-10-31 15:56:40 +08:00
2026-11-02 18:53:07 +08:00
2026-11-01 21:16:35 +08:00
2026-11-02 18:53:07 +08:00
2026-11-02 18:53:07 +08:00
2026-10-29 06:38:04 +08:00
2026-10-29 06:38:04 +08:00
2026-10-08 05:00:55 +08:00
2026-10-31 01:01:49 +08:00
2026-10-15 23:08:00 +08:00
2026-10-14 05:22:40 +08:00
2026-11-01 09:14:11 +08:00
2026-11-01 09:14:11 +08:00
2026-10-11 03:12:46 +08:00
2026-10-10 11:29:03 +08:00
2026-10-30 00:46:45 +08:00
2026-10-11 12:41:00 +08:00
2026-10-29 17:02:24 +08:00
2026-11-01 17:28:15 +08:00
2026-11-01 17:28:15 +08:00
2026-11-01 17:28:15 +08:00
2026-10-16 07:23:55 +08:00
2026-10-05 21:42:15 +08:00
2026-10-17 05:33:18 +08:00
2026-10-17 05:33:18 +08:00
2026-10-17 05:33:18 +08:00
2026-10-17 05:33:18 +08:00
2026-11-02 20:00:54 +08:00
2026-11-02 20:00:54 +08:00
2026-11-02 20:00:54 +08:00
2026-11-02 20:00:54 +08:00
2026-11-02 20:00:54 +08:00
2026-10-15 23:08:00 +08:00
2026-11-01 14:43:18 +08:00
2026-10-08 18:49:16 +08:00
2026-10-28 22:48:07 +08:00
2026-10-14 22:45:40 +08:00
2026-10-15 05:10:28 +08:00
2026-10-29 06:30:58 +08:00
2026-10-14 22:45:40 +08:00
2026-10-16 05:10:43 +08:00
2026-10-10 09:53:38 +08:00
2026-10-11 01:13:52 +08:00
2026-11-02 17:19:23 +08:00
2026-11-01 15:27:49 +08:00
2026-10-07 00:16:13 +08:00
2026-10-19 03:57:52 +08:00
gui: one list of sessions — the Sessions page shows what each session spent, and Usage → Sessions' latest sessions open there ( #752 , hisiling on v0.1.814: the top bar's 会话 listed every session by agent and folder with resume, delete and the trash but no tokens or cost, while 用量 → 会话's 最近的会话 had folder, model, tokens and cost and resumed too but couldn't delete or group by folder; both opened to the same time, folder, session id and resume command, so the same list was drawn twice with half missing from each). /api/sessions/manage already carried each session's tokens, cost and models (sessions.Managed embeds Session, and ListAgent assembles it priced), the page just never drew them; its rows now end in the same two columns Usage's list has (sessSpent: tokens with in/out/cached under them, ≈cost, "—" with its reason where there is no known price), the sub line names the models and the gateway's route (sessModelsText, shared with Usage), the details gain the per-model breakdown and the Routed lines (sessUsageDetail, which sessionDetail now uses too, so the top-sessions card is as before), and its filter also matches a model. manage now also sends each session's via (usage.Vias since the agent's oldest session, as /api/sessions does), so routing isn't lost; a null models list is read as empty. Usage → Sessions keeps its statistics, charts, top sessions and its latest-sessions list, as that list follows the range, agent, model and folder filters the Sessions page doesn't have: its rows keep title, folder, models, tokens and cost, lose Resume, Open in session terminal and the in-place details, and open on the Sessions page instead (role=link, Enter/Space too, a chevron, title "Open in Sessions" / 在会话页打开): the session's agent is picked, its folder unfolded, the row opened, and once the list is drawn the row is brought into sight — a scroll the reader's click asked for (scrollOnPurpose(e) at the click, then readerScrolls and readerLeaves when the row arrives, as the quota cards' focus does). An All sessions / 全部会话 button by the list's search opens the page on the agent picked there. At 560px and below a Sessions page row drops its tokens column, keeping the cost, so the title keeps room beside Resume, terminal and delete. The other way round (deleting and the trash moved into Usage) was not taken: the Sessions page's per-agent, per-folder tree with picking and the trash is the page made for it, and Usage's list is a drill-down of its filters. No <select>, no left-border accent, no click scrolls on its own, the Agents grip untouched. The GUI has en and zh tables only; both have the new strings. TestSessionsManageCarriesUsage (a Claude session from testdata plus a gateway record: tokens, models and via in sessions/manage) fails on the old handler; sessions-usage-open.test.cjs (WebKit, en and zh) fails on the old assets and passes, and sessions-*, click-scroll, usage-fold and routing-sessions pass; Chromium doesn't launch on this machine. go vet, builds (darwin, GOOS=linux, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass. Not tried with real session files beyond the fixtures.
2026-10-04 14:14:43 +08:00
2026-10-29 23:56:05 +08:00
2026-10-15 09:40:51 +08:00
2026-10-29 23:56:05 +08:00
2026-10-29 23:56:05 +08:00
2026-10-13 13:02:09 +08:00
2026-10-27 06:18:24 +08:00
2026-10-12 22:29:46 +08:00
2026-10-12 23:33:56 +08:00
2026-10-30 08:32:57 +08:00
2026-10-15 08:23:54 +08:00
2026-10-22 00:04:28 +08:00
2026-11-02 17:19:23 +08:00
2026-10-09 13:29:08 +08:00
2026-11-01 21:19:22 +08:00
2026-10-30 15:53:22 +08:00
2026-10-31 01:02:24 +08:00
2026-10-14 08:36:07 +08:00
2026-10-08 16:38:14 +08:00
2026-10-16 15:40:38 +08:00
2026-10-09 12:59:29 +08:00
2026-10-29 17:09:13 +08:00
2026-10-29 17:09:13 +08:00
2026-11-01 09:14:11 +08:00
2026-11-01 05:12:20 +08:00
2026-11-01 09:14:11 +08:00
2026-10-15 23:08:04 +08:00
2026-10-14 08:32:40 +08:00
2026-10-31 21:38:56 +08:00
2026-10-31 19:35:16 +08:00
2026-11-01 14:39:13 +08:00
2026-11-01 14:39:13 +08:00
2026-10-31 00:08:29 +08:00
2026-10-04 18:56:31 +08:00
2026-10-13 09:55:23 +08:00
2026-10-13 09:55:23 +08:00
2026-10-13 09:55:23 +08:00
2026-10-08 18:16:03 +08:00
2026-10-13 09:55:23 +08:00
2026-10-19 23:19:24 +08:00
2026-10-30 13:23:19 +08:00
2026-10-31 11:29:38 +08:00
2026-10-30 15:53:22 +08:00
2026-10-31 11:29:38 +08:00
2026-10-12 05:21:23 +08:00
2026-10-12 05:21:23 +08:00
2026-11-01 11:02:56 +08:00
2026-11-01 11:02:56 +08:00
2026-10-15 23:08:01 +08:00
2026-10-31 22:29:48 +08:00
2026-10-31 22:29:48 +08:00
2026-10-14 13:02:48 +08:00
2026-10-15 23:08:01 +08:00
2026-10-14 13:02:48 +08:00
2026-10-08 05:00:55 +08:00
2026-10-08 05:00:55 +08:00
2026-11-01 21:31:55 +08:00
2026-11-01 21:31:55 +08:00
2026-11-01 21:31:55 +08:00
2026-11-01 21:31:55 +08:00
2026-10-31 16:53:00 +08:00
2026-10-24 15:20:37 +08:00
2026-10-31 16:53:00 +08:00
2026-10-31 16:53:00 +08:00
2026-10-15 23:08:01 +08:00
2026-10-15 05:30:58 +08:00
2026-10-15 23:08:01 +08:00
2026-10-14 13:02:48 +08:00
2026-10-14 13:02:48 +08:00
2026-10-14 13:02:48 +08:00
2026-10-15 23:08:01 +08:00
2026-10-14 13:02:48 +08:00
2026-10-12 01:45:14 +08:00
2026-11-01 21:10:48 +08:00
2026-10-14 13:02:48 +08:00
2026-11-01 21:10:48 +08:00
2026-10-14 13:02:48 +08:00
2026-11-01 17:50:59 +08:00
2026-11-01 21:31:55 +08:00
2026-11-01 21:10:48 +08:00
2026-10-30 23:14:08 +08:00
2026-11-01 15:19:32 +08:00
2026-10-31 17:12:16 +08:00
2026-10-29 16:31:37 +08:00
2026-10-15 23:08:00 +08:00
2026-11-01 15:19:32 +08:00
2026-10-11 21:59:10 +08:00
2026-10-11 21:59:10 +08:00
2026-10-29 17:47:30 +08:00
2026-10-29 17:47:30 +08:00
2026-10-31 21:00:55 +08:00
2026-10-31 00:44:59 +08:00
2026-10-14 15:19:14 +08:00
2026-11-01 09:14:11 +08:00
2026-10-31 11:39:04 +08:00
update, gui: a new version Windows won't start is never left in place — tried before it goes in, and a restart into one that doesn't say it is up puts the running one back; that version isn't downloaded again by the clock, and Settings › About › Version says why ( #894 , hisiling) — on Windows 11 with Smart App Control on, the update put the new unsigned exe in place of the running one and restarted into it; CodeIntegrity (3033/3077) refused it, magpie never started again and the working version sat in .old. Now, on Windows, the downloaded exe is first started suspended with no window and ended at once (Windows checks a program when its process is created), and one refused stays out: the running exe isn't moved. At the restart the new process is given MAGPIE_STARTED, a file it writes first thing (AwaitPredecessor); the old one waits up to 20s for it and, if the start fails (ERROR_SYSTEM_INTEGRITY_POLICY_VIOLATION 4551, 1260 or any other), the new process quits before saying so, or it says nothing in time (then it is ended), puts the running exe back over the new one (the new one renamed .blocked if it can't go) and keeps running instead of quitting; nothing notes it as updated in the app. The version is noted in the config folder (update-blocked.json, this machine's only, never synced; gone once a version at least as new runs); the clock's checks leave it alone and show why, a Check clicked downloads and tries it once more. Settings › About › Version: for an application control policy, "0.1.x didn't start on this computer: Windows' Smart App Control (or another app control policy) blocked the new version, which isn't signed. magpie stays on 0.1.y. Download it and run it yourself, or turn Smart App Control off and check again", else the reason, with Download and Check; the error in full on hover. en/zh/ja/de. A user who double-clicks the refused exe is refused by Windows before magpie runs; only signing helps there. TestRelaunchRefusedPutsBack (4551 at the start), TestRelaunchSilentPutsBack (no word in time, killed; quit at once), TestRelaunchReportedStays, TestReportStarted, TestBlockedNote and TestUpdateThatWontStart (the restart doesn't quit, the note, the clock not downloading it again, a Check that does) are new and fail without the change; on Windows TestInstallBinaryRefusedStaysOut, TestTrialStart and TestStartCheckedPutsBackForReal (real processes: not a program, quits at once, runs on silent) pass on the Windows 11 test box with the whole internal/update package (Smart App Control itself isn't on there, so the refusal is simulated). update-blocked.test.cjs (Chromium and WebKit, en and zh: the reason and both versions, full error on hover, Download opens the release, Check downloads, the other reason, no select, no scroll, no left border) fails without the change; update-check, update-mirror, update-auto, update-wait and update-download-percent pass in WebKit; click-scroll's request-list case fails now and then the same on main. go vet, go build (darwin, GOOS=linux nogui, GOOS=windows) and go test -tags nogui ./... under a temp HOME pass.
2026-10-05 19:43:31 +08:00
2026-10-29 18:55:42 +08:00
2026-10-09 10:43:14 +08:00
2026-10-15 23:08:03 +08:00
2026-10-28 23:22:14 +08:00
2026-10-27 01:37:04 +08:00
2026-10-28 23:22:14 +08:00
2026-10-31 17:28:37 +08:00
2026-10-09 10:43:14 +08:00
2026-10-13 09:47:08 +08:00
2026-10-25 18:22:13 +08:00
2026-10-08 17:35:30 +08:00
2026-10-28 23:22:14 +08:00
2026-10-28 23:22:14 +08:00
2026-10-28 23:22:14 +08:00
2026-10-31 17:28:37 +08:00
upstream: the vendors' own status pages say when their API is down ( #971 , emo172: an Anthropic or OpenAI outage looked like a sign-in or quota problem) — a provider that calls Anthropic's, OpenAI's or Moonshot's API (by its base URL's host: api.anthropic.com, which the Claude subscription calls too; api.openai.com and chatgpt.com, Codex's; api.moonshot.cn/.ai) carries "API outage" (red), "API degraded" or "API maintenance" beside its name on its Providers row and its Usage card while the vendor's page says so; its title names the parts and the open incidents, and a click opens the incident (or the page), not the row. internal/upstream reads each page's Statuspage-style summary.json (status.claude.com; status.openai.com, incident.io's; status.moonshot.cn), checked by hand on 2026-10-06, and only the API's own parts (Claude API and Claude Code, not claude.ai; Chat Completions, Responses, Codex, Codex CLI, not "Codex in ChatGPT Desktop", which was degraded that day); an incident naming no parts (OpenAI's) counts only while those parts are affected. Pages are read only when the Providers or Usage page asks (GET /api/upstream), at most once in five minutes, never on a request's way; a page that fails, isn't JSON or no longer lists the API's parts is unknown and marks nothing. A relay serving the same models is never marked. DeepSeek's page (Flashduty) has nothing readable and is only known for its link; OpenRouter, xAI, Mistral and z.ai have no page read. The gateway's failure messages, TUI, CLI and tray aren't changed. zh/ja/de added. upstream_test (fake pages from the real summaries: API down, claude.ai down isn't the API, Claude Code degraded, OpenAI's app isn't the API, 503/HTML/changed page unknown, read once in Fresh and Of never waits, hosts; -race -count=5) and gui's TestUpstreamRoute pass; upstream-status (Anthropic down: its provider and the Claude subscription marked, relay/OpenAI/unread Moonshot not, click opens the incident not the row, all well marks nothing; 900 and 440px, the badge whole, the name giving way) passes in Chromium and WebKit, en and zh, and fails 8/8 without the app.js change. i18n-keys, gui-ja, gui-de, click-scroll, account-return, account-models, usage-keys-fold, deprecated-subscriptions and add-sheet pass; go vet, go test ./internal/gui/, linux/windows/nogui builds pass.
2026-10-06 12:36:05 +08:00
2026-10-29 18:52:05 +08:00
2026-10-28 21:13:09 +08:00
2026-10-15 04:21:31 +08:00
2026-10-28 11:15:57 +08:00
2026-10-07 02:14:29 +08:00
2026-10-14 15:26:28 +08:00
2026-10-23 10:54:27 +08:00
2026-11-02 05:22:12 +08:00
2026-10-23 03:08:08 +08:00
2026-11-01 08:49:18 +08:00
2026-10-28 13:51:37 +08:00
2026-10-29 15:39:31 +08:00
2026-11-01 15:33:35 +08:00
2026-10-27 14:27:12 +08:00
2026-10-15 01:32:12 +08:00
2026-10-28 19:54:53 +08:00
2026-10-27 15:15:29 +08:00
2026-10-14 05:29:30 +08:00
2026-10-29 14:28:24 +08:00
2026-10-28 07:31:02 +08:00
2026-10-28 07:31:02 +08:00
2026-10-28 15:25:53 +08:00
2026-10-19 07:23:04 +08:00
2026-10-12 22:03:29 +08:00
2026-10-13 09:50:04 +08:00
2026-10-12 22:03:29 +08:00
2026-10-12 22:03:29 +08:00
2026-10-19 07:23:04 +08:00
2026-10-25 01:46:55 +08:00
2026-11-02 16:14:22 +08:00
2026-10-24 22:54:36 +08:00
2026-11-02 16:14:22 +08:00
2026-10-16 20:05:11 +08:00
2026-10-30 21:56:29 +08:00
2026-10-30 21:56:29 +08:00
2026-10-09 23:07:44 +08:00
2026-11-01 17:28:30 +08:00
2026-11-01 17:28:30 +08:00
2026-11-01 17:28:30 +08:00
2026-11-01 11:02:56 +08:00
2026-11-01 14:26:03 +08:00
2026-10-12 23:16:54 +08:00
2026-10-15 00:34:14 +08:00
2026-10-31 10:57:56 +08:00