yetone
b3a57b3d8f
codex: turning the takeover off restarts the Codex app, so its ChatGPT projects come back
...
Herzz____ on X, the Windows Codex app: with Codex through magpie the
sidebar's project list is empty; they use magpie only when their
subscription runs out, and want to switch between magpie and the native
sign-in with the projects whole each way.
What happens. When the ChatGPT account is used up, magpie becomes
Codex's provider (codex.out) without requires_openai_auth: on that
account the app's composer gate greys Send for every model, magpie's
too (#540 ). Checked again in ChatGPT.app 26.1029's bundle: the gate
picks the account's own snapshot (limitName null) whenever it is
blocked, before any per-model additional_rate_limits, so keeping the
account during the takeover would still grey Send. The app-server then
answers account/read with no account and the app hides its ChatGPT
projects and chats (72ca3d593 ). magpie never touches projects,
project_roots or a thread's cwd: its thread moves only rewrite
threads.model_provider (sessions/codex_provider.go), so path case or
backslashes on Windows play no part.
What was wrong. Turning the takeover off by hand (the takeover note's
Keep on ChatGPT, the sign-in's Always ChatGPT, or Disconnect) looked
the same to codexAppStep as the reset, magpie's own end of it: with
Restart the Codex app to follow off (the default) the app's app-server
was left running on no account, so the projects stayed gone after the
user switched back to have them, until they restarted the app (the
Windows app has no Restart of its own).
Now Agent.AppOutOff (Always ChatGPT, or Codex not routed through
magpie) reaches the step through provider.CodexTakeoverOff, asked only
as out goes false, and a takeover ended so counts as the user's change:
the app-server is restarted once no Codex turn runs, as for a Connect,
and the Windows app reopened if none comes back (existing path). The
reset itself still leaves the app running and says so (CodexAppBack);
that note now names the ChatGPT projects and chats it lacks (en, zh,
zh-TW, ja, de). agent-wiring.md says the same.
Switching back to native is already in magpie: Agents > Codex > sign-in
> Always ChatGPT (`magpie codex login chatgpt`), or Keep on ChatGPT on
the takeover note; ChatGPT (the default) lets magpie take over again.
Tests: TestCodexAppRestartedWhenTheTakeoverIsTurnedOff (turned off with
a request in flight: held, then restarted; CodexAppBack not said; the
hook asked once; the reset still left running and said);
TestCodexOwnModelOutThenKeptOnChatGPT and
TestCodexOwnModelGoesThroughMagpieWhileUsedUp assert AppOutOff for Keep
on ChatGPT, Disconnect and the reset; codex-app-back.test.cjs checks
the note names the projects in every language.
Broken by hand: offByHand out of byHand, the provider test red (ended
[], want [100]); the login half of AppOutOff false, the Keep on ChatGPT
test red; the routed half false, the Disconnect check red.
Run (mote-run at b87783fbb (this change's tree) on origin/main 547585cd9 ): gofmt -l clean;
go build ./...; go vet linux -tags nogui ./... and windows ./...,
darwin ./internal/agent ./internal/provider ./internal/gui;
go test -tags nogui ./internal/provider ./internal/agent ok;
GUI codex-app-back, codex-app-out, i18n-keys, i18n-en-no-cjk, gui-ja,
Chromium and WebKit, every language, 155 of 155 pass.
Windows (win-run on xiaomi-gpu): the provider and agent Codex app tests
ok; the box's running Windows Codex app (26.1029) app-server command
line has the shape TestCodexAppOwnServer already holds.
Not run: a real used-up ChatGPT account (none at hand), so the restart
after Keep on ChatGPT is tried with the stubbed step, not the real app;
the full go test ./... waits behind mote's suite lock and runs after the
push, any red filed.
2026-11-10 04:14:40 +08:00
..
2026-11-10 04:14:40 +08:00
2026-10-30 15:00:16 +08:00
2026-10-18 07:13:09 +08:00
2026-11-10 04:14:40 +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-11-03 14:09:42 +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-11-03 18:23:13 +08:00
2026-11-06 16:51:15 +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-11-06 16:02:04 +08:00
2026-10-14 17:00:34 +08:00
2026-11-07 04:03:01 +08:00
2026-11-09 22:31:16 +08:00
2026-11-10 03:25:45 +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-11-04 20:20:41 +08:00
2026-11-01 11:43:56 +08:00
2026-11-02 18:24:38 +08:00
2026-11-03 17:24:19 +08:00
2026-10-13 16:55:27 +08:00
2026-11-09 06:57:40 +08:00
2026-11-06 22:11:02 +08:00
2026-11-09 06:57:40 +08:00
2026-11-09 20:12:30 +08:00
2026-11-09 20:12:30 +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-07 03:21:57 +08:00
2026-11-02 13:53:19 +08:00
2026-11-05 18:28:38 +08:00
2026-11-07 03:21:57 +08:00
2026-10-13 14:40:11 +08:00
2026-11-07 05:16:53 +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-11-09 23:19:14 +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-11-03 13:34:35 +08:00
2026-11-03 13:34:35 +08:00
2026-11-07 04:03:01 +08:00
2026-11-07 20:10:28 +08:00
2026-11-07 20:10:28 +08:00
2026-10-30 16:05:58 +08:00
2026-11-08 18:13:30 +08:00
2026-10-22 19:03:32 +08:00
2026-11-08 22:25:58 +08:00
2026-11-10 00:16:39 +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-11-06 22:56:33 +08:00
2026-10-25 19:28:05 +08:00
2026-11-06 22:56:33 +08:00
2026-10-25 19:28:05 +08:00
2026-10-25 19:28:05 +08:00
2026-11-06 17:22:52 +08:00
2026-11-07 20:10:28 +08:00
2026-11-08 22:25:58 +08:00
2026-11-05 00:11:02 +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-11-04 04:47:02 +08:00
2026-11-04 04:47:02 +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-11-04 20:20:41 +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-11-04 23:55:14 +08:00
2026-11-04 23:55:14 +08:00
2026-10-15 23:08:05 +08:00
2026-11-04 20:20:41 +08:00
2026-11-06 12:12:20 +08:00
2026-11-03 02:37:56 +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-11-08 02:08:30 +08:00
2026-11-09 21:51:53 +08:00
2026-10-17 20:38:06 +08:00
2026-11-10 00:13:44 +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-11-10 03:48:24 +08:00
2026-11-04 05:00:18 +08:00
2026-11-10 02:01:37 +08:00
2026-11-10 00:13:44 +08:00
2026-10-31 15:56:40 +08:00
2026-11-03 11:16:02 +08:00
2026-11-03 11:16:02 +08:00
2026-10-31 12:44:16 +08:00
2026-11-08 15:54:52 +08:00
2026-11-06 15:24:18 +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-11-06 08:01:14 +08:00
2026-11-09 21:51:53 +08:00
2026-11-09 21:51:53 +08:00
2026-11-09 21:51:53 +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
2026-11-06 17:34:48 +08:00
2026-11-06 17:34:48 +08:00
2026-11-06 17:34:48 +08:00
2026-11-06 17:34:48 +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-11-08 15:27:14 +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-04 21:00:51 +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-10 03:25:45 +08:00
2026-11-04 16:32:55 +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-11-08 19:09:21 +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-11-07 23:27:42 +08:00
2026-11-07 23:27:42 +08:00
2026-11-10 03:25:45 +08:00
2026-11-10 03:25:45 +08:00
2026-11-10 03:25:44 +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-11-03 05:21:47 +08:00
2026-11-08 19:05:36 +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-11-04 20:20:41 +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-11-10 01:17:43 +08:00
2026-10-27 08:29:11 +08:00
2026-11-02 17:19:23 +08:00
2026-11-09 23:19:14 +08:00
2026-11-09 23:19:14 +08:00
2026-11-09 23:19:14 +08:00
2026-11-09 23:19:14 +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-11-04 00:22:54 +08:00
2026-11-04 00:22:54 +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-09 23:19:14 +08:00
2026-11-02 15:27:15 +08:00
2026-11-05 11:45:44 +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-07 20:14:49 +08:00
2026-10-05 17:25:15 +08:00
2026-11-04 23:55:14 +08:00
2026-10-30 18:55:51 +08:00
2026-11-04 20:20:41 +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-11-08 11:28:54 +08:00
2026-10-12 23:45:06 +08:00
2026-11-04 21:21:32 +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-11-05 18:31:22 +08:00
2026-10-06 16:02:03 +08:00
2026-11-06 05:21:05 +08:00
2026-11-08 11:28:54 +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-11-07 17:44:31 +08:00
2026-10-14 23:06:35 +08:00
2026-10-10 19:21:56 +08:00
2026-11-10 03:48:24 +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-11-08 02:13:14 +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-04 20:20:41 +08:00
2026-11-02 18:53:07 +08:00
2026-10-29 06:38:04 +08:00
2026-11-08 15:19:03 +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-11-03 02:25:23 +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-11-03 14:16:20 +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-11-07 21:21:48 +08:00
2026-11-05 12:40:35 +08:00
2026-11-01 14:43:18 +08:00
2026-11-04 19:43:00 +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-11-08 02:37:09 +08:00
2026-10-11 01:13:52 +08:00
2026-11-04 20:20:41 +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-11-09 18:55:01 +08:00
2026-10-15 09:40:51 +08:00
2026-10-29 23:56:05 +08:00
2026-11-04 20:20:41 +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-03 08:54:40 +08:00
2026-11-10 01:17:43 +08:00
2026-10-09 13:29:08 +08:00
2026-11-09 22:31:16 +08:00
2026-10-30 15:53:22 +08:00
2026-11-08 15:19:03 +08:00
2026-11-08 15:19:03 +08:00
2026-10-31 01:02:24 +08:00
2026-11-04 20:20:41 +08:00
2026-11-09 18:57:29 +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-11-03 05:21:47 +08:00
2026-11-01 09:14:11 +08:00
2026-11-01 05:12:20 +08:00
2026-11-09 19:57:10 +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-06 16:02:04 +08:00
2026-11-06 16:02:04 +08:00
2026-11-06 16:02:04 +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-11-07 15:04:26 +08:00
2026-11-07 15:04:26 +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-11-07 13:54:24 +08:00
2026-11-05 17:25:26 +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-11-09 21:47:24 +08:00
2026-10-12 05:21:23 +08:00
2026-10-12 05:21:23 +08:00
2026-11-03 20:54:01 +08:00
2026-11-03 20:54:01 +08:00
2026-11-01 11:02:56 +08:00
2026-11-01 11:02:56 +08:00
2026-11-03 10:14:23 +08:00
2026-10-03 19:01:13 +08:00
2026-10-31 22:29:48 +08:00
2026-11-06 10:44:24 +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-11-03 10:14:23 +08:00
2026-11-01 21:31:55 +08:00
2026-11-03 10:14:23 +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-11-06 22:56:33 +08:00
2026-10-31 16:53:00 +08:00
2026-10-15 23:08:01 +08:00
2026-11-03 10:14:23 +08:00
2026-10-15 05:30:58 +08:00
2026-10-15 23:08:01 +08:00
gui: Linux tray quotas reach the bar's tooltip (atie on Discord: on Omarchy, hovering magpie's tray icon showed no quota with 设置 › 用量 › 菜单栏显示额度 on, after opening the panel and restarting) — Wails v3.0.0-beta.24's Linux SetTooltip is a "TBD" no-op: the StatusNotifierItem's ToolTip stayed the {title: "magpie"} it was made with and no NewToolTip was ever sent, so every bar showed "magpie" (Omarchy's bar shows tooltipTitle before Title, waybar ToolTip before Title too, and waybar reads ToolTip again only on NewToolTip). magpie now sets the ToolTip itself after Wails' SetTooltip: through the prop.Properties Wails exported (reached by reflection, so the (sa(iiay)ss) type it was made with is kept and PropertiesChanged goes out), then sends org.kde.StatusNotifierItem.NewToolTip from the same session-bus connection. The quotas go in the title, the part both Omarchy's bar and waybar show; waybar reads it as Pango markup, so &, < and > become look-alikes (sniTip) rather than losing the whole tooltip. Until the tray is up (or should a Wails update move the field) the loop tries again next time. TestSNITipIsSafeMarkup covers the markup. In the omarchy VM (Omarchy 4, Quickshell bar), built there with -tags "production gtk3", in a sandbox HOME with the VM's DeepSeek and Kimi balance keys: the released magpie's item kept ToolTip "magpie" (Title "¥79.15 | $8.83"); this build's ToolTip is (sa(iiay)ss) "DeepSeek · ¥79.15\n\nKimi · $8.83", dbus-monitor shows PropertiesChanged then NewToolTip from the item's connection, and hovering its icon in Omarchy's bar shows both balances. Waybar itself wasn't run (the VM's Omarchy 4 has none); what it does is from its source (sni/item.cpp). go vet, builds (darwin, GOOS=linux, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass but TestProvidersAnswerWhileListsComeIn and TestClaudeSignedOut, timing tests that pass alone.
2026-10-03 20:57:39 +08:00
2026-11-03 15:21:17 +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-11-03 10:14:23 +08:00
2026-10-14 13:02:48 +08:00
2026-10-12 01:45:14 +08:00
2026-11-03 10:14:23 +08:00
2026-10-14 13:02:48 +08:00
2026-11-03 10:14:23 +08:00
2026-10-14 13:02:48 +08:00
2026-11-07 22:36:03 +08:00
2026-11-03 10:14:23 +08:00
2026-11-03 11:16:02 +08:00
2026-11-03 11:38:09 +08:00
2026-11-03 10:14:23 +08:00
2026-11-03 11:38:09 +08:00
2026-11-01 15:19:32 +08:00
2026-10-31 17:12:16 +08:00
2026-11-08 02:37:09 +08:00
2026-11-06 18:51:39 +08:00
2026-10-29 16:31:37 +08:00
2026-11-07 04:03:01 +08:00
2026-10-15 23:08:00 +08:00
2026-11-08 02:37:09 +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-11-06 23:11:43 +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-11-04 06:59:29 +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-11-04 06:59:29 +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-11-07 06:09:42 +08:00
2026-10-13 09:47:08 +08:00
2026-11-08 03:13:15 +08:00
2026-11-08 03:13:15 +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-11-04 06:59:29 +08:00
2026-11-08 03:13:15 +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-11-10 02:01:37 +08:00
2026-10-23 10:54:27 +08:00
2026-11-10 02:01:37 +08:00
2026-11-09 21:51:53 +08:00
2026-11-03 18:34:19 +08:00
2026-10-23 03:08:08 +08:00
2026-11-10 01:17:43 +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-11-04 20:20:41 +08:00
2026-11-04 20:20:41 +08:00
2026-10-28 19:54:53 +08:00
2026-10-27 15:15:29 +08:00
2026-11-06 22:17:04 +08:00
2026-10-14 05:29:30 +08:00
2026-11-06 22:17:04 +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-11-04 20:20:41 +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
site, gui: release notes survive GitHub limiting usemagpie.ai, and a failure to get them says so, apart from a release without any ( #661 ) — /api/notes answered 503 {"error":"no releases"} with Cache-Control public, max-age=300 whenever GitHub's API limited the worker's shared IP, and /api/latest fell back to the release page's redirect with notes "" (kept 300 s too), so the update window had nothing to show. The worker now: never keeps an error (503 is no-store); takes the notes from GitHub's releases feed (releases.atom, not API-limited) when the API says no, turning its HTML back into the markdown the app draws and putting back the <!-- lang:zh --> marker GitHub strips (before the first Chinese heading after an English one); keeps the last whole answer for 30 days in the edge cache and serves it (merged with the feed's newer releases) when GitHub fails; keeps a degraded answer 60 s instead of 300; and sends a GITHUB_TOKEN secret to the API where one is set (none is yet). In the app, /api/whatsnew says error (and the release page's url) when the notes couldn't be had, and Settings' What's new opens a dialog saying "Couldn't load the release notes" with Try again and "Open the release page" (through the app), or "No release notes provided." with the release page and no retry for a version with none, instead of a passing toast; en/zh. Tests that fail on the old code and pass: site/worker.test.mjs (API limited: notes from the feed in either language, briefly kept; all of GitHub down: 503 no-store, then the last whole answer; the token sent), TestWhatsNewTellsFailureFromNone, and whats-new-failed.test.cjs (WebKit, en/zh: failure with retry and link, retry showing the notes, none without retry, no click moves the page). The feed parser was tried on the real releases.atom (v0.1.730–739: English and Chinese split as the API's bodies are). go vet, builds (darwin, GOOS=linux, GOOS=windows), go test -tags nogui -count=1 ./... under a temp HOME, node --test site/ and whats-new.test.cjs pass.
2026-10-03 17:12:48 +08:00
2026-11-02 16:14:22 +08:00
2026-10-24 22:54:36 +08:00
2026-11-03 06:35:33 +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-08 14:13:34 +08:00
2026-11-01 17:28:30 +08:00
2026-11-04 16:32:55 +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-11-04 05:00:18 +08:00
2026-10-15 00:34:14 +08:00
2026-10-31 10:57:56 +08:00