yetone
5754fea435
gateway: a saved Claude account's run in the caller's folder starts with it trusted in that account's file (@ahz2ygnhjmIJ0E0 on X)
...
The reporter's own ~/.claude.json trusts the folders they work in, while
magpie's saved accounts' .claude.json files had them only here and there.
A run of an account without the entry was asked about the caller's folder
in the interactive mode, and 2.1.329's question went unread (70a881071 ),
so each account in turn waited out 45s. claude -p asks nothing, which is
why claudePrintMode answered 200.
Before an interactive run of a saved account in the caller's folder,
trustCaller now records the folder in that account's .claude.json, under
the keys Claude Code looks it up by (claudeTrustKeys: the path and its
resolved one, /private/tmp/... on a Mac), through the same
provider.ClaudeTrustFolder that trusts magpie's own folder (#4830 ). Every
caller's folder is recorded, not only those the user's own file trusts:
the shim answers yes for a saved account all the same (TrustEnv), and
Claude Code then writes just this entry, so the file ends as it would,
without the question. The signed-in account's own ~/.claude.json is
never written (configDir ""), and its untrusted folders still go to
magpie's folder (startTrusted).
Run:
- mote: go test -tags nogui -count=1 -run 'TestClaudeBridgeTrusts|TestClaudeTrust|TestClaudeOneOff|TestClaudeTUI' ./internal/gateway ok (67s).
- Broken by hand: with claude_subscription.go from 70a881071 ,
TestClaudeBridgeTrustsCallersFolderForSavedAccount fails ("the run
started with [/elsewhere] trusted, want the caller's ..."); green with
the change.
- Real Claude Code 2.1.329 on mote, sandbox HOME and CLAUDE_CONFIG_DIR,
the account file holding the folder under /tmp/... and /private/tmp/...
as trustCaller writes it, and MAGPIE_CLAUDE_TUI_TRUST not set: the
helper wrote init and the message was sent (authentication_failed,
no sign-in in the sandbox); nothing asked about trust.
- mote: go vet (darwin, GOOS=windows, GOOS=linux) of internal/gateway and
internal/provider clean; gofmt clean.
Not tried: a signed-in saved account sending a real message; Windows and
WSL runs (WSL runs never use the caller's folder, binary.wsl).
2026-11-20 16:42:52 +08:00
..
2026-11-14 23:50:45 +08:00
2026-11-19 18:40:18 +08:00
2026-10-25 11:55:16 +08:00
2026-11-09 18:19:02 +08:00
2026-10-26 17:19:00 +08:00
2026-10-04 23:30:56 +08:00
2026-11-12 12:28:56 +08:00
2026-10-08 16:17:23 +08:00
2026-11-12 12:28:56 +08:00
2026-11-01 02:19:26 +08:00
2026-10-31 11:03:35 +08:00
2026-11-01 07:39:08 +08:00
2026-11-10 20:22:17 +08:00
2026-10-24 23:27:25 +08:00
2026-10-10 17:58:27 +08:00
2026-10-10 17:58:36 +08:00
2026-11-01 22:44:23 +08:00
2026-11-14 05:51:42 +08:00
2026-11-12 17:47:11 +08:00
2026-11-12 17:47:11 +08:00
2026-11-13 15:54:06 +08:00
2026-11-16 14:35:47 +08:00
2026-11-17 21:48:13 +08:00
2026-11-17 21:48:13 +08:00
2026-11-18 00:38:36 +08:00
2026-11-18 00:38:36 +08:00
2026-11-17 21:48:13 +08:00
2026-10-15 23:07:59 +08:00
2026-11-01 01:59:59 +08:00
2026-11-01 05:59:05 +08:00
2026-11-04 19:24:12 +08:00
2026-11-12 18:58:25 +08:00
2026-10-15 03:34:58 +08:00
2026-10-19 15:19:31 +08:00
2026-11-20 16:01:53 +08:00
2026-11-07 04:03:01 +08:00
2026-10-14 19:46:29 +08:00
agent, gateway: Cursor Private Inference's row has an effort, which magpie's gateway asks its requests for ( #1003 , gjf7) — other agents' rows pick a reasoning effort that magpie writes into their config, but Cursor Private Inference reads only its base URL and key from the environment, and its app offers no Reasoning control for most of magpie's models, so there was no way to set one short of a routing group with a member fixed at a level, which the reporter used as a workaround. Its row now has an effort field like the others': the default (as Cursor asks) first, then every level the models it lists have (cursorLocalEfforts: their levels in MemberEfforts order, low/medium/high where a model reasons with levels unknown, none at all when nothing it lists reasons or it isn't connected). The pick is kept in magpie, settings' agentEfforts by agent (provider.AgentEffort / SetAgentEffort, a level of MemberEfforts or "" for none), and the gateway's candidate loop asks a cursor-local request for it with withFixedEffort, fitted to the model's levels and bounded by a group's, on a model that reasons (the new Provider.Thinks: levels, its list's Reasoning, or models.dev's). Precedence: a group member's fixed effort, then a :effort suffix, then a routing rule's turn pick, then the agent's pick, then the request's own; the pick wins over a level Cursor sent, as Cursor sends its own default as often as a choice, and Default hands the choice back to Cursor. A model that doesn't reason and every other agent's requests go as they came. The Settings page's save carries agentEfforts over as it does fastPicks (TestSettingsSaveKeepsWhatItDoesNotSend's fixture names it). In the window the field sits under "Settings" rather than "New sessions" for this agent alone, as it applies to every request from then on, not to what a session starts on; no new t() strings (Settings, effort and default are translated in zh, ja and de already). TestAgentEffortOnCursorLocal (Chat and Responses with and without a level of their own, Claude on Messages made to think, OpenCode's request untouched, a non-reasoning model untouched, a member fixed at low kept, the pick taken off) fails without the gateway change and passes; TestCursorLocalEffort covers the options (none with no reasoning model, the union of levels, the low/medium/high fallback, none while disconnected), Apply and a bad level refused; both pass -race (-count=20 gateway, -count=10 agent). cursor-local-effort.test.cjs (the window at 560px and the tray panel at 440px: the field under Settings, the slider's five stops with Default first, a pick posting the field, no sideways scroll) passes on Chromium and WebKit in en, zh, ja and de; claude-effort, subagent-effort, agent-field-names, agent-connect, agent-layout, agent-tweak-fold, agent-models, cursor-local-launch and i18n pass on both. go test -tags nogui ./internal/..., go vet, gofmt -l, linux (nogui) and windows builds pass. Not tried with the real Cursor Private Inference: whether it sends a reasoning level of its own on models it shows a Reasoning control for is unverified, which the precedence makes moot. docs/subsystems/gateway-routing.md and agent-wiring.md say it.
2026-10-06 17:29:28 +08:00
2026-11-10 15:56:21 +08:00
2026-11-10 15:56:21 +08:00
2026-11-15 12:14:48 +08:00
2026-11-16 21:10:12 +08:00
2026-10-13 07:07:18 +08:00
2026-11-17 16:48:21 +08:00
2026-11-17 11:00:09 +08:00
2026-11-06 10:04:22 +08:00
2026-10-12 23:38:50 +08:00
2026-11-10 08:50:13 +08:00
2026-10-08 08:23:20 +08:00
2026-10-05 21:56:59 +08:00
2026-10-17 23:11:01 +08:00
2026-10-28 13:12:00 +08:00
2026-10-03 22:33:43 +08:00
2026-10-17 23:10:59 +08:00
2026-10-03 15:02:58 +08:00
2026-10-09 22:14:45 +08:00
2026-11-16 08:58:28 +08:00
2026-11-07 04:03:01 +08:00
2026-10-13 06:43:00 +08:00
2026-10-10 21:44:10 +08:00
2026-11-19 01:13:33 +08:00
2026-11-15 12:14:48 +08:00
2026-11-15 12:14:48 +08:00
2026-11-15 12:14:48 +08:00
2026-11-15 12:14:48 +08:00
2026-11-15 12:14:48 +08:00
2026-11-15 12:14:48 +08:00
2026-11-15 12:14:48 +08:00
2026-11-15 12:14:48 +08:00
2026-11-15 12:14:48 +08:00
2026-11-10 18:57:16 +08:00
2026-11-15 12:14:48 +08:00
2026-11-15 12:14:48 +08:00
2026-11-15 12:14:48 +08:00
2026-11-15 12:14:48 +08:00
antigravity: its 429 to Claude Code's system prompt says it isn't a quota ( #666 : Claude Desktop 调用 antigravity 恒定报 429) — Antigravity answers "Resource has been exhausted (e.g. check quota)" to any request whose systemInstruction holds Claude Code's billing line (x-anthropic-billing-header: …) or the Agent SDK's identity line (You are a Claude agent, built on Anthropic's Claude Agent SDK.), on every model (gemini-3.8/3.7 flash, 3.5 flash lite, 2.5 flash, claude-sonnet-4-6, gpt-oss), whatever the quota left, while the same words in a message go through. Claude Desktop's chats run the Agent SDK and carry both, so they always failed, while its title requests (no system prompt) and Codex on the same account answered. Not the session id (magpie already sends request.sessionId as -<uint63>), thinking signatures (never sent back) or the User-Agent. magpie doesn't hide the lines from Google; the gateway now adds to such a 429 that it is no quota and that Antigravity turns away Claude Code's and the Agent SDK's system prompt, so no one chases a quota. Reproduced on the owner's real Antigravity account with Claude Code 2.1.288 through a sandbox gateway (11/11 429; system field removed 200; either line alone 429). TestAntigravityTurnsAwayClaudeCodesSystemPrompt. go vet, builds (darwin, GOOS=linux, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass.
2026-10-03 18:39:29 +08:00
2026-11-15 12:14:48 +08:00
2026-11-16 11:25:30 +08:00
2026-11-16 16:08:45 +08:00
2026-11-03 02:25:23 +08:00
2026-11-14 14:02:49 +08:00
2026-11-02 16:21:58 +08:00
2026-11-01 04:51:17 +08:00
2026-11-16 11:25:30 +08:00
2026-11-03 18:46:55 +08:00
2026-11-04 22:05:21 +08:00
2026-11-03 18:46:54 +08:00
2026-11-13 18:57:10 +08:00
2026-11-15 03:09:03 +08:00
2026-10-12 20:18:31 +08:00
2026-10-11 23:14:44 +08:00
2026-10-11 23:14:44 +08:00
2026-11-18 20:27:20 +08:00
2026-11-18 20:27:20 +08:00
2026-11-10 22:35:57 +08:00
2026-11-03 13:23:49 +08:00
2026-11-14 05:51:42 +08:00
2026-10-20 00:18:51 +08:00
gateway: reasoning magpie made isn't relayed to Azure OpenAI or OpenAI's API, and a summary request refused for an item not found is asked again as text ( #1008 , zhouxiong100: Codex on an Azure OpenAI deployment failed every compaction with "Azure OpenAI: Item with id 'rs_18dbe693b3dce4800000003c' not found", Reconnecting 5/5, store=true by a middleware no help) — Codex offers web search on every turn, so its turns on Azure went out translated, and the translated replies gave Codex reasoning items magpie made: rs_ and newID (the reporter's id is one, a UnixNano in hex and a counter), a summary and nothing sealed. Codex hands them back on every turn. buildResponses replays no reasoning to Azure, so the turns worked; Codex's compaction offers no tools, so it isn't translated but relayed as it is, and Azure, with store false, looked rs_… up among stored items, found none and answered 400 for the whole request. codexCompact asked again as text only on a 404 ( #866 ), so the 400 went back to Codex. passthrough now drops reasoning with no encrypted_content from a Responses request to OpenAI's API or Azure OpenAI unless store is true (withoutBareReasoning): both look such an item up and can't have it, its summary being the model's notes no model reads back; their own sealed reasoning still goes, and every other host gets the request as before (a relay may read the summary for a vendor that wants reasoning back). The same holds for any turn relayed as it is, Codex's with web search off for one. codexCompact's fallback also takes a 400 naming an item not found (itemNotFound: unreadableItem and "not found"), as a relay in front of either passes on; any other 400 still goes back as it came, and the local summary names the status it got. TestAzureCompactionWithoutMagpiesReasoning (the Azure preset at a fake /openai/v1/responses answering a storeless request with a bare reasoning item Azure's 400 word for word; the compaction and a relayed turn, each asking Azure once with the sealed reasoning kept and magpie's dropped) fails without the passthrough change (the turn 400 with the reporter's exact message, the compaction asking twice) and passes; TestCodexCompactItemNotFoundAsksAgainAsText fails without the codexCompact change (400 to Codex) and passes; TestCodexCompactOther400Stays guards other 400s. -race -count=10 on them, TestCodexCompact* and TestAzureRoutes. go test -tags nogui ./internal/gateway ./internal/provider, go vet, gofmt -l, linux and windows (nogui) builds pass. Not tried with a real Azure OpenAI resource (none on this machine); the 400's text is from the reporter's screenshot and issue. docs/subsystems/gateway-routing.md says it.
2026-10-06 17:53:18 +08:00
2026-11-19 19:38:31 +08:00
2026-11-19 19:38:31 +08:00
2026-10-29 22:19:49 +08:00
2026-11-17 22:34:51 +08:00
2026-11-14 21:05:50 +08:00
2026-11-03 02:27:57 +08:00
2026-10-10 05:56:07 +08:00
2026-11-08 20:53:19 +08:00
2026-11-14 05:51:42 +08:00
2026-10-28 03:14:05 +08:00
2026-11-13 19:36:33 +08:00
2026-11-14 05:51:42 +08:00
2026-11-01 10:22:57 +08:00
2026-11-19 14:52:25 +08:00
2026-11-19 14:52:25 +08:00
2026-11-08 03:10:47 +08:00
2026-11-05 03:07:43 +08:00
2026-11-16 14:51:54 +08:00
2026-11-14 05:51:42 +08:00
2026-11-14 06:54:01 +08:00
2026-11-05 03:37:43 +08:00
2026-10-28 19:31:56 +08:00
2026-11-05 00:57:55 +08:00
2026-11-10 12:57:48 +08:00
2026-11-10 12:57:48 +08:00
2026-11-10 11:13:58 +08:00
2026-11-08 05:59:31 +08:00
2026-11-06 22:11:02 +08:00
2026-11-09 06:57:40 +08:00
2026-11-04 00:10:50 +08:00
2026-11-10 12:34:14 +08:00
2026-11-09 06:03:39 +08:00
2026-11-09 06:03:39 +08:00
2026-11-09 06:57:40 +08:00
2026-11-06 18:41:38 +08:00
2026-11-09 06:57:40 +08:00
2026-11-18 14:32:44 +08:00
2026-11-06 07:05:37 +08:00
2026-11-06 07:05:37 +08:00
2026-11-10 22:57:20 +08:00
2026-10-27 15:57:41 +08:00
2026-11-10 20:22:17 +08:00
2026-10-31 20:35:12 +08:00
2026-10-19 00:33:29 +08:00
2026-11-14 08:18:37 +08:00
2026-10-13 14:14:59 +08:00
2026-11-03 20:17:00 +08:00
2026-10-10 09:26:23 +08:00
2026-10-29 05:19:28 +08:00
2026-11-13 13:02:05 +08:00
2026-11-10 18:04:25 +08:00
2026-11-17 14:54:11 +08:00
2026-11-17 20:31:59 +08:00
2026-11-17 20:31:59 +08:00
2026-10-28 09:29:44 +08:00
2026-10-21 19:17:09 +08:00
2026-11-04 19:39:08 +08:00
2026-10-28 10:48:38 +08:00
2026-11-05 18:31:16 +08:00
2026-10-17 03:53:40 +08:00
2026-11-14 08:18:37 +08:00
2026-10-31 09:33:09 +08:00
2026-10-28 20:24:00 +08:00
gateway tests: a Chat client's reply translated from Anthropic's Messages streams as the vendor sends it — the first chunk when its first event comes, each word as it is written, never the whole reply held to the stream's end — and now a test holds it to that. A reporter's OpenAI-format client on Z.ai's GLM saw the opposite for a while (every event of a reply in one burst once the stream ended, while the same provider's Messages replies streamed fine), and it measured out to be the vendor's doing, not the gateway's: the reporter's own request bodies, replayed at full size against the vendor's chat and Messages endpoints through the gateway's build and beside it, streamed both ways on the day. Nothing locked the translation's pacing, though, so a future hold would read as the vendor's again. TestChatFromAnthropicStreamsAsItComes paces a Messages upstream at 200ms a word — glm-5.3 at an Anthropic-only provider, and a Claude model where Chat and Anthropic URLs both sit, which the Messages redirect takes there anyway — and wants the client's first chunk before the upstream has written its last word (relative to the upstream, not the wall clock, so a loaded runner's setup time is not held against it), at least two of the five pauses reaching it, and one ask on /v1/messages; holding every event of the chat encoder until finish (as the report read) fails it on both branches with the first chunk at the stream's end. And the keepalive table that walks every protocol's quiet stream (TestQuietStreamsKeptAliveEveryProtocol) had responses, anthropic, chat and anthropic from chat; chat from anthropic, the path a chat client on a Messages-only provider takes, was the row missing, and it keeps alive the same as the rest. go test -race -count=2 on the two tests, go vet and the nogui build pass. ( #1310 )
2026-10-14 15:28:27 +08:00
2026-10-13 09:41:46 +08:00
2026-11-12 17:37:04 +08:00
2026-10-15 13:40:27 +08:00
2026-10-26 22:40:48 +08:00
2026-10-28 20:24:00 +08:00
2026-11-14 06:54:01 +08:00
2026-10-17 05:15:16 +08:00
2026-10-26 19:43:24 +08:00
2026-10-17 04:07:25 +08:00
2026-11-14 05:51:42 +08:00
2026-11-12 14:17:12 +08:00
2026-11-18 18:40:49 +08:00
2026-10-06 01:22:44 +08:00
2026-11-10 22:57:20 +08:00
2026-10-30 11:55:36 +08:00
2026-11-14 23:50:45 +08:00
2026-11-14 23:50:45 +08:00
2026-11-15 01:41:12 +08:00
2026-11-05 18:31:16 +08:00
2026-11-12 21:51:07 +08:00
2026-11-14 08:18:37 +08:00
2026-11-01 19:02:59 +08:00
2026-11-19 02:47:38 +08:00
2026-11-03 07:43:18 +08:00
2026-11-15 16:45:06 +08:00
2026-11-15 00:17:59 +08:00
2026-11-15 16:45:06 +08:00
2026-10-29 23:36:58 +08:00
2026-11-15 16:45:06 +08:00
2026-11-02 05:38:10 +08:00
2026-11-17 13:31:08 +08:00
2026-10-31 16:38:58 +08:00
2026-11-17 13:31:08 +08:00
2026-10-15 01:22:13 +08:00
2026-10-26 01:59:38 +08:00
2026-11-18 17:09:18 +08:00
2026-10-07 03:00:47 +08:00
2026-11-03 17:36:51 +08:00
2026-11-14 14:17:52 +08:00
2026-11-05 18:31:17 +08:00
2026-10-26 02:21:36 +08:00
2026-11-14 06:54:01 +08:00
2026-10-11 05:50:04 +08:00
2026-10-08 15:28:52 +08:00
2026-10-23 01:58:00 +08:00
2026-10-30 22:48:39 +08:00
2026-10-30 01:23:03 +08:00
2026-11-07 18:40:57 +08:00
2026-10-18 02:17:02 +08:00
2026-11-02 04:38:57 +08:00
2026-11-07 10:03:52 +08:00
2026-10-10 19:44:26 +08:00
2026-11-06 09:54:51 +08:00
2026-11-14 11:43:27 +08:00
2026-11-14 11:43:27 +08:00
2026-10-10 14:44:57 +08:00
2026-11-03 02:27:57 +08:00
claude: a reply that fills its segment before the request reads it doesn't hold the run's lock (CI Test 37434913069 on 8fbd39f8: TestClaudeLastWordsAreRead hung 20m on macOS -race) — emit sent each event to the segment, a 64-event channel, with r.mu held, and the request calls run.heard, which takes r.mu, before it starts reading the segment. A Claude Code that wrote more than 64 events first (the test's 300 deltas, or a quick long reply) left emit blocked on the send holding the lock and heard waiting on it: the run hung for good, and abort, stderr and every other r.mu user with it. emit now takes the segment and updates shown under r.mu, lets it go, and sends under a lock of its own (sending); the two places that close a segment (endSegment, finish) take that lock first, so a send never meets a closed channel. Events keep their order, emit being serialised by sending. TestEmitOnFullSegmentLeavesTheRunFree (200 events emitted before anyone reads, then heard) fails on the old code (heard waits) and passes; it, TestClaudeLastWordsAreRead, TestClientGoneRecordedAsCanceled and Keepalive pass -race -count=20; the whole gateway package passes -race; go vet, linux(nogui)/windows builds pass. The other sends in the file (answered, the MCP waiter) already send after unlocking.
2026-10-06 17:06:38 +08:00
2026-10-09 22:29:41 +08:00
2026-11-13 20:04:42 +08:00
2026-11-13 20:04:42 +08:00
2026-11-11 20:57:10 +08:00
2026-11-11 20:57:10 +08:00
2026-11-13 23:42:57 +08:00
2026-11-12 08:27:46 +08:00
2026-11-02 03:38:42 +08:00
2026-11-05 01:37:56 +08:00
2026-11-18 23:06:38 +08:00
2026-11-01 15:25:56 +08:00
2026-10-14 09:32:21 +08:00
2026-10-26 01:59:38 +08:00
2026-11-16 20:39:45 +08:00
2026-11-02 16:01:44 +08:00
2026-11-02 16:01:44 +08:00
2026-11-04 12:00:01 +08:00
2026-10-31 19:25:17 +08:00
2026-11-10 19:55:26 +08:00
2026-11-16 13:20:43 +08:00
2026-11-16 20:39:45 +08:00
2026-11-15 08:45:42 +08:00
2026-11-02 00:35:21 +08:00
2026-11-18 23:39:19 +08:00
2026-11-12 16:15:49 +08:00
2026-11-12 18:34:34 +08:00
2026-11-07 11:52:30 +08:00
2026-10-08 09:49:04 +08:00
2026-11-20 14:29:12 +08:00
2026-11-12 16:25:28 +08:00
2026-11-18 23:06:38 +08:00
2026-11-08 02:10:17 +08:00
2026-11-04 00:14:37 +08:00
2026-11-13 16:36:09 +08:00
2026-10-26 01:59:38 +08:00
2026-11-18 23:06:38 +08:00
2026-11-01 16:19:01 +08:00
2026-11-12 12:45:39 +08:00
2026-11-01 07:06:19 +08:00
2026-11-15 19:23:19 +08:00
2026-11-14 14:17:52 +08:00
2026-11-12 16:25:28 +08:00
2026-10-15 23:08:03 +08:00
2026-11-13 19:07:33 +08:00
2026-11-14 14:02:49 +08:00
2026-10-25 17:41:41 +08:00
2026-11-05 00:57:55 +08:00
2026-10-29 00:19:58 +08:00
2026-10-27 18:22:01 +08:00
2026-11-14 05:51:42 +08:00
2026-10-30 22:55:21 +08:00
2026-10-30 14:50:44 +08:00
2026-10-12 19:59:58 +08:00
2026-10-08 08:58:21 +08:00
2026-11-14 06:54:01 +08:00
2026-11-08 17:05:09 +08:00
2026-11-09 08:38:02 +08:00
2026-10-17 19:55:49 +08:00
2026-11-08 22:01:34 +08:00
2026-11-16 19:18:49 +08:00
2026-11-16 15:22:32 +08:00
2026-11-08 02:03:17 +08:00
2026-10-13 07:44:34 +08:00
2026-10-07 07:29:10 +08:00
2026-11-08 02:03:17 +08:00
2026-10-13 07:44:34 +08:00
2026-11-07 19:29:43 +08:00
2026-11-08 02:03:17 +08:00
2026-10-05 11:52:23 +08:00
2026-10-07 03:00:47 +08:00
2026-11-17 17:26:13 +08:00
2026-10-10 19:39:19 +08:00
2026-10-08 10:37:02 +08:00
2026-11-12 02:14:08 +08:00
2026-11-17 17:26:13 +08:00
2026-10-16 02:51:37 +08:00
2026-11-20 14:29:12 +08:00
2026-10-05 11:52:23 +08:00
2026-11-20 16:42:52 +08:00
2026-10-29 04:15:56 +08:00
2026-11-12 14:24:40 +08:00
2026-11-01 15:08:24 +08:00
2026-11-01 15:08:24 +08:00
2026-11-06 10:09:31 +08:00
2026-11-10 22:44:04 +08:00
2026-10-15 01:56:35 +08:00
2026-11-01 18:56:25 +08:00
2026-10-13 07:44:34 +08:00
2026-11-18 11:32:58 +08:00
2026-11-11 11:41:40 +08:00
2026-11-20 16:42:52 +08:00
2026-11-06 04:35:12 +08:00
2026-11-06 04:35:12 +08:00
2026-11-03 12:40:21 +08:00
2026-11-01 22:43:52 +08:00
2026-11-12 06:43:10 +08:00
2026-11-10 18:57:44 +08:00
2026-11-08 11:39:44 +08:00
2026-11-10 18:57:44 +08:00
2026-11-20 14:29:12 +08:00
2026-11-11 20:23:13 +08:00
2026-11-04 14:26:27 +08:00
2026-11-10 13:16:59 +08:00
2026-11-02 00:35:21 +08:00
2026-11-07 21:47:24 +08:00
2026-11-20 16:08:30 +08:00
2026-11-02 00:35:21 +08:00
2026-11-14 10:48:55 +08:00
2026-11-07 11:52:30 +08:00
2026-11-08 16:05:42 +08:00
2026-11-09 12:56:42 +08:00
2026-11-20 14:29:12 +08:00
2026-11-20 16:42:52 +08:00
claude: Claude Code runs share a folder only the user owns, the caller's system prompt is cached apart, and auto memory is off ( #626 , yg3415) — main already ran every Claude Code run in one $TMPDIR/magpie-claude so Anthropic's prompt cache is read again; this takes yg3415's version of that: the folder is magpie-claude-work-<uid> (the uid where the temp folder is shared, as /tmp is on Linux), made 0700 and used only when it is a real folder the user owns that no one else can write to (else the run works in a folder of its own, as before), so nobody else can put a CLAUDE.md in front of every run; the caller's system prompt goes to Claude Code as a block of its own with a 1h cache_control breakpoint (CLAUDE_CODE_PROMPT_CACHE_TTL=1h, since Anthropic refuses a 1h breakpoint after a 5m one), so requests with one system prompt and different conversations share its cache entry; and CLAUDE_CODE_DISABLE_AUTO_MEMORY=1, so a memory Claude Code writes in one caller's conversation doesn't show up in every other one in the shared folder. Merged onto main by hand: the run still starts through binary.command/binary.env, so a Claude Code in WSL works in the shared folder too; on Windows the folder is in the user's own %TEMP% and Go reports every folder there as 0777, so the mode check is skipped there (it refused every run before). Tests from the PR (TestClaudeRunsShareAWorkDir with a home kept in git, TestClaudeWorkDirOthersCanWriteIsAvoided, TestClaudeInstructionsCachedApart) pass; go vet (darwin, GOOS=windows), builds (darwin, GOOS=linux, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass.
2026-10-04 18:25:44 +08:00
claude: Claude Code runs share a folder only the user owns, the caller's system prompt is cached apart, and auto memory is off ( #626 , yg3415) — main already ran every Claude Code run in one $TMPDIR/magpie-claude so Anthropic's prompt cache is read again; this takes yg3415's version of that: the folder is magpie-claude-work-<uid> (the uid where the temp folder is shared, as /tmp is on Linux), made 0700 and used only when it is a real folder the user owns that no one else can write to (else the run works in a folder of its own, as before), so nobody else can put a CLAUDE.md in front of every run; the caller's system prompt goes to Claude Code as a block of its own with a 1h cache_control breakpoint (CLAUDE_CODE_PROMPT_CACHE_TTL=1h, since Anthropic refuses a 1h breakpoint after a 5m one), so requests with one system prompt and different conversations share its cache entry; and CLAUDE_CODE_DISABLE_AUTO_MEMORY=1, so a memory Claude Code writes in one caller's conversation doesn't show up in every other one in the shared folder. Merged onto main by hand: the run still starts through binary.command/binary.env, so a Claude Code in WSL works in the shared folder too; on Windows the folder is in the user's own %TEMP% and Go reports every folder there as 0777, so the mode check is skipped there (it refused every run before). Tests from the PR (TestClaudeRunsShareAWorkDir with a home kept in git, TestClaudeWorkDirOthersCanWriteIsAvoided, TestClaudeInstructionsCachedApart) pass; go vet (darwin, GOOS=windows), builds (darwin, GOOS=linux, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass.
2026-10-04 18:25:44 +08:00
2026-11-14 15:01:56 +08:00
2026-11-10 04:44:07 +08:00
2026-11-10 04:44:07 +08:00
2026-11-07 15:27:29 +08:00
gateway: a Cline reply that is not streamed reaches the agent as the completion itself, not in Cline's {success, data} envelope (6094S on Discord) — Cline's API answers a request with "stream": false as {"success":true,"data":{chat.completion}}, and magpie passed that on byte for byte to an agent asking the Chat API of ClinePass (cline-pass/deepseek-v4.1-flash): a client looking for choices at the top failed, Alma's tool-model calls with "Invalid JSON response". Streams were fine, and a translated request is asked of Cline as a stream, so only the Chat API's whole replies were hit. forwardOnce now takes the envelope off a Cline provider's (IsCline: the ClinePass preset or a cline.bot host) JSON reply (clineUnwrapped): success true with an object data goes on as data, so chatWhole, the usage sniffer and the agent see the completion; success false goes on as {"error":{"message":…}}, a 502 when it came with a 2xx, which writeError puts in the agent's API's shape. A stream, a compressed reply, a body without success and another provider's replies pass as they came. The community plugin @magpie-community/opencode-cline-auth already unwraps it (unwrapped in index.mjs) and needs nothing. TestClineEnvelopeUnwrapped (the completion on the Chat API, another provider's body untouched, a refusal as an error, a stream untouched) fails without the change. No Cline account to test with; Cline's real API answers a request without a key with a plain {"error":…} 401, which is unchanged. go vet, go build (darwin, GOOS=linux nogui, GOOS=windows) and go test -tags nogui ./... under a temp HOME pass.
2026-10-05 21:01:28 +08:00
gateway: a Cline reply that is not streamed reaches the agent as the completion itself, not in Cline's {success, data} envelope (6094S on Discord) — Cline's API answers a request with "stream": false as {"success":true,"data":{chat.completion}}, and magpie passed that on byte for byte to an agent asking the Chat API of ClinePass (cline-pass/deepseek-v4.1-flash): a client looking for choices at the top failed, Alma's tool-model calls with "Invalid JSON response". Streams were fine, and a translated request is asked of Cline as a stream, so only the Chat API's whole replies were hit. forwardOnce now takes the envelope off a Cline provider's (IsCline: the ClinePass preset or a cline.bot host) JSON reply (clineUnwrapped): success true with an object data goes on as data, so chatWhole, the usage sniffer and the agent see the completion; success false goes on as {"error":{"message":…}}, a 502 when it came with a 2xx, which writeError puts in the agent's API's shape. A stream, a compressed reply, a body without success and another provider's replies pass as they came. The community plugin @magpie-community/opencode-cline-auth already unwraps it (unwrapped in index.mjs) and needs nothing. TestClineEnvelopeUnwrapped (the completion on the Chat API, another provider's body untouched, a refusal as an error, a stream untouched) fails without the change. No Cline account to test with; Cline's real API answers a request without a key with a plain {"error":…} 401, which is unchanged. go vet, go build (darwin, GOOS=linux nogui, GOOS=windows) and go test -tags nogui ./... under a temp HOME pass.
2026-10-05 21:01:28 +08:00
2026-11-11 10:31:29 +08:00
2026-11-07 15:27:29 +08:00
2026-11-07 15:27:29 +08:00
2026-11-12 22:53:32 +08:00
2026-11-15 12:14:48 +08:00
2026-11-12 23:17:51 +08:00
2026-10-04 23:30:56 +08:00
2026-11-15 07:30:18 +08:00
2026-11-15 07:30:18 +08:00
2026-11-01 14:59:44 +08:00
2026-11-18 09:14:17 +08:00
codex: a Settings switch has Codex's OpenAI models say multi-agent V1, so a GPT lead's subagents can run on magpie's other models ( #141 , congee949: with "v1" in the entry and multi_agent_v2 off, the Codex App's GPT lead spawned V1 subagents on Opus/Grok groups and they ran there) — Settings › "Codex subagents on any model", off by default. On, the ChatGPT backend's /models list magpie passes Codex (and the cached one it falls back to), the codex/ entries and the GPT routing groups (the Fast ones) in model_catalog_json say multi_agent_version "v1"; nothing else in an entry changes, base_instructions untouched. The setting is in CodexListTag as a "v1." prefix (so neither tag is found inside the other), so ETag and X-Models-Etag change and Codex asks again; catalog.Touched rewrites the catalog. Codex keeps the stamped list in models_cache.json, so the backend's own versions are kept in codex-agent-versions.json (from each fresh list, and from an unstamped cache) and CacheEntries puts them back when the cache's ETag is a stamped one: turned off, gpt-6 is "v2" again and a model the backend gave none has none. Codex's features.multi_agent_v2=true still wins, and a thread keeps its version. TestCodexAgentsV1Entries, TestCodexAgentsV1CacheRestores, TestCodexModelsAgentsV1 cover on/off/revert and the ETag; go vet, builds (darwin, linux, windows) and go test ./... under a temp HOME pass. Not tried in the Codex App.
2026-10-03 14:35:38 +08:00
2026-11-01 22:30:51 +08:00
2026-10-29 15:14:02 +08:00
2026-10-27 03:30:57 +08:00
2026-10-06 01:58:42 +08:00
2026-11-15 13:28:34 +08:00
2026-11-09 18:19:02 +08:00
2026-11-19 01:02:38 +08:00
2026-11-20 15:28:24 +08:00
2026-10-30 04:48:17 +08:00
2026-11-06 10:44:24 +08:00
codex: a cached entry keeps the cache's own max when magpie's list has none, and Codex's models_cache.json is read under CODEX_HOME everywhere (follow-up to #674 , from reviewing #679 ) — restoring a cached native entry (backend away) set max_context_window to max(MaxContext, Context) from magpie's live list, so a list saved without the max (before magpie kept it) wrote the window over the cache's own (872000 became 272000); now a list with no max leaves the cache's, and codexcat.Window still raises it to a window past it. codexcat.CacheEntries and catalog.Codex read ~/.codex/models_cache.json even with CODEX_HOME set, while codexVersion and codexInstructions followed it; all four now take catalog.CodexModelsCache() (CODEX_HOME, else ~/.codex), and provider's codexCLIHome and the copy in codexInstructions are gone. TestCodexReadsCacheUnderCodexHome, TestCodexCachedListUnderCodexHomeKeepsItsMax and TestCodexCatalogEntryFromCodexHome fail on the old code (the ~/.codex cache read, none listed from CODEX_HOME); TestCodexNativeModelsTakeSetWindows now wants a cached gpt-5.5 with no live max to keep the cache's 400000 (old code: 272000). go vet, builds (darwin, GOOS=linux, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass but TestProvidersAnswerWhileListsComeIn, a timing test that passes alone.
2026-10-03 21:39:13 +08:00
codex: a call id longer than 64 characters goes as one the backend takes on Codex's own ChatGPT sign-in too, and tool_search ids with it ( #732 , congee949) — #732 bounded them where magpie writes the request (codexBody: Chat and Anthropic clients on a Codex model, Codex App with spare accounts), but Codex on one ChatGPT account is relayed as it came (codexUpstream), so a conversation with a foreign provider's tool calls (two ids joined, 86 or 87 characters) still got 400 "input[7].call_id … maximum length 64" there: 30 in a week in the report, 29 of them thread_description on gpt-6-luna, on v0.1.869. The relay now gives every call_id over 64 characters as provider.BoundCallID has it (the sha256 of the trimmed id, so a call and its output, paired by the trimmed id, get the same one on every request), the rest of the request byte for byte; codexBody uses the same helper and covers tool_search_call / tool_search_output as well. TestCodexRelayBoundsLongCallIDs (single-account relay: function and tool_search ids bounded, paired and stable across requests, a 64-character id kept) fails 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.
2026-10-05 00:31:36 +08:00
2026-11-05 11:13:43 +08:00
2026-11-01 22:30:51 +08:00
2026-11-20 00:12:59 +08:00
2026-11-14 16:59:45 +08:00
2026-11-07 18:40:57 +08:00
2026-11-11 17:08:15 +08:00
2026-10-11 21:05:45 +08:00
2026-11-01 06:38:00 +08:00
2026-11-16 13:49:16 +08:00
2026-11-06 16:04:03 +08:00
2026-11-05 01:26:12 +08:00
2026-10-23 09:20:23 +08:00
2026-11-11 20:57:11 +08:00
2026-11-11 20:57:11 +08:00
2026-10-11 21:05:45 +08:00
2026-10-26 17:19:00 +08:00
2026-11-10 17:13:15 +08:00
2026-11-07 06:13:32 +08:00
2026-10-28 15:14:31 +08:00
2026-10-08 19:16:29 +08:00
2026-11-12 16:37:49 +08:00
2026-10-15 23:08:03 +08:00
2026-10-15 23:08:04 +08:00
2026-11-01 21:19:22 +08:00
2026-11-15 13:28:34 +08:00
2026-11-10 22:57:20 +08:00
2026-10-23 20:11:17 +08:00
2026-11-18 18:23:25 +08:00
2026-11-18 17:43:17 +08:00
2026-11-18 17:43:17 +08:00
2026-10-07 05:59:51 +08:00
2026-10-14 05:37:00 +08:00
2026-11-14 05:51:42 +08:00
2026-11-01 06:38:00 +08:00
2026-11-02 17:10:02 +08:00
2026-10-26 23:25:36 +08:00
2026-11-17 16:56:29 +08:00
2026-11-08 02:16:48 +08:00
2026-11-08 02:16:48 +08:00
2026-11-15 13:28:34 +08:00
2026-10-11 19:38:33 +08:00
2026-11-13 12:38:22 +08:00
2026-11-13 12:38:22 +08:00
2026-11-12 11:55:26 +08:00
2026-11-01 16:43:21 +08:00
2026-10-19 00:26:39 +08:00
2026-11-14 05:51:42 +08:00
2026-11-10 00:58:01 +08:00
2026-10-08 19:14:17 +08:00
2026-11-15 13:28:34 +08:00
2026-11-01 22:30:51 +08:00
2026-11-02 14:06:01 +08:00
2026-10-25 03:11:28 +08:00
2026-11-06 15:17:30 +08:00
2026-11-07 04:03:01 +08:00
agents: Codex's /model lists its models in the order dragged on the Agents page (M3chD09, #855 ) — Codex lists the models by the priority magpie gives them: a ChatGPT account's own first, as the backend has them, then magpie's in the catalog's order, with no way to change it. Codex's model list (Pick on its row) now has a third view, Order: the models shown as Codex lists them, numbered, each dragged elsewhere (its grip shows on hover) or moved with Alt+↑/↓; it is saved at once (settings orderedModels, by agent and entry id), and the account's own models and magpie's go in one order. A model not in the order (one added later) goes after those that are, as it stood; the hidden stay hidden and out of the order view, hiding keeps the order, and a provider renamed renames its ids in the order too. Default order puts magpie's back. Codex gets it at once: signed in to ChatGPT, the gateway's /models gives the backend's and magpie's models priorities 1..n in that order and the list's ETag carries the order so Codex asks again; not signed in, the catalog file magpie writes for Codex (ListedFor → InOrder) is rewritten in it. Only Codex's list can be ordered; base_instructions are untouched. zh, ja, de strings. TestCodexModelListInUsersOrder (gateway: default order, an order across the account's and magpie's, the ETag changing, CatalogFor, opencode's untouched, none restoring it) and TestAgentModelOrderAPI (gui: orderable, an order read back, a new model last, hidden kept, hiding keeping it, reset, opencode refused) fail on the old code (no SetModelOrder/ModelOrder); codex-model-order.test.cjs (WebKit, en and zh: Order lists the own first and leaves the hidden out, Alt+↓ and a drag post the order, Default order posts none, nothing scrolls; a list that can't be ordered has no Order) fails on the old code (no Order). agent-models, agent-models-all-hidden, agent-models-loading, agent-model-groups, click-scroll, gui-ja and gui-de pass on WebKit. go vet, builds (darwin, GOOS=linux nogui, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass.
2026-10-05 11:52:34 +08:00
2026-11-14 19:46:12 +08:00
2026-10-26 23:41:35 +08:00
2026-10-13 09:52:14 +08:00
2026-11-02 15:15:21 +08:00
2026-10-26 23:41:35 +08:00
2026-10-17 16:37:09 +08:00
2026-11-03 12:41:12 +08:00
2026-11-09 12:31:00 +08:00
2026-11-01 06:38:00 +08:00
2026-10-17 23:11:00 +08:00
2026-11-06 19:15:35 +08:00
2026-11-06 19:15:35 +08:00
2026-11-01 06:38:00 +08:00
2026-11-12 00:42:05 +08:00
2026-11-02 18:50:12 +08:00
2026-10-31 11:55:55 +08:00
2026-11-01 22:44:23 +08:00
2026-11-16 18:59:40 +08:00
2026-10-25 23:02:33 +08:00
2026-11-04 22:00:42 +08:00
2026-10-21 03:05:24 +08:00
2026-10-25 12:06:13 +08:00
2026-11-19 14:21:43 +08:00
2026-10-15 23:08:03 +08:00
2026-10-23 18:15:15 +08:00
2026-11-15 06:27:36 +08:00
2026-11-15 06:27:36 +08:00
2026-11-03 17:12:25 +08:00
2026-10-29 08:17:12 +08:00
2026-11-06 22:36:23 +08:00
2026-11-06 22:36:23 +08:00
2026-11-10 16:43:25 +08:00
2026-10-30 01:40:48 +08:00
2026-11-06 00:07:18 +08:00
2026-11-17 23:50:29 +08:00
2026-10-13 16:49:29 +08:00
2026-11-20 16:01:53 +08:00
2026-10-26 22:55:29 +08:00
2026-11-08 02:16:48 +08:00
2026-11-10 03:44:19 +08:00
2026-11-18 23:50:16 +08:00
2026-11-15 22:43:30 +08:00
2026-11-18 23:50:16 +08:00
2026-11-14 20:23:28 +08:00
2026-11-14 18:00:13 +08:00
2026-11-14 18:00:13 +08:00
2026-11-01 06:38:01 +08:00
2026-11-03 23:12:33 +08:00
2026-11-03 23:12:33 +08:00
2026-11-10 00:13:44 +08:00
2026-11-16 18:59:40 +08:00
2026-11-16 18:59:40 +08:00
2026-11-10 15:24:40 +08:00
2026-11-17 16:56:29 +08:00
2026-10-10 14:14:47 +08:00
2026-10-27 15:30:31 +08:00
2026-11-14 14:02:49 +08:00
2026-11-02 15:15:21 +08:00
2026-11-19 12:10:09 +08:00
2026-11-15 13:56:58 +08:00
2026-10-20 00:33:40 +08:00
2026-10-30 21:47:07 +08:00
2026-10-22 16:27:54 +08:00
2026-10-27 14:28:01 +08:00
2026-10-09 23:16:53 +08:00
2026-10-12 16:09:52 +08:00
2026-11-16 16:32:42 +08:00
2026-10-19 03:11:11 +08:00
2026-11-01 16:43:20 +08:00
2026-10-06 12:44:17 +08:00
2026-11-09 11:37:06 +08:00
2026-11-10 11:05:59 +08:00
2026-11-10 11:05:59 +08:00
2026-11-18 11:16:54 +08:00
2026-11-02 04:17:24 +08:00
2026-10-29 01:19:08 +08:00
2026-11-17 20:31:59 +08:00
2026-11-01 12:02:09 +08:00
2026-11-12 18:02:08 +08:00
2026-11-18 21:30:25 +08:00
2026-10-30 22:48:39 +08:00
2026-11-03 20:38:11 +08:00
2026-10-10 04:24:18 +08:00
2026-11-14 05:51:42 +08:00
gateway, copilot: Auto's pick is asked as Copilot Chat asks it, and a refused pick is made again on its own API (infinitr0us, #256 ) — on a Student plan copilot/auto's pick from POST /models/session (gpt-5.4-mini, gpt-5.3-codex) was refused 400 "The requested model is not supported.", and the retry with the next pick, gpt-4.1, went to the same /responses and got "model gpt-4.1 is not supported via Responses API." (1) Copilot Chat 0.69 (now in microsoft/vscode extensions/copilot, automodeService.ts / AutoV2Fetcher) no longer asks /models/session: it POSTs {capiBase}/auto with the prompt at X-GitHub-Api-Version 2026-08-01 and gets session_token, expires_at and selected_model with its supported_endpoints; /models/session answers a fixed, stale list (asked with the owner's account it still offers gpt-5.3-codex/gpt-5.4-mini while /auto picks gpt-6-luna). magpie now asks /auto first, with the last user message as the prompt, takes the pick's endpoints for its API, keeps the session at most an hour, and falls back to /models/session and then the hand-picked model as before. (2) After a refusal the retry with Auto's next pick breaks out of forward's same-API loop when that model isn't served on it, and the candidates' loop makes the request again (at most twice) on the new model's own API; a held refusal is passed on only when no retry is left. TestCopilotAutoRepickTakesItsAPI (gpt-5.3-codex refused on /responses, gpt-4.1 refused there and served on chat) fails on the old code with infinitr0us's exact error; TestCopilotAutoAsksAuto (version, prompt, token, /models/session not asked) fails with a 502. With the owner's real Copilot account in a sandbox gateway, copilot/auto on /v1/chat/completions came back 200 from gpt-6-luna, picked by /auto and sent on /responses. go vet, builds (darwin, GOOS=linux nogui, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass.
2026-10-05 04:07:20 +08:00
2026-11-13 10:40:26 +08:00
2026-11-11 18:24:47 +08:00
2026-11-11 18:24:47 +08:00
2026-11-13 10:40:26 +08:00
2026-11-12 18:43:08 +08:00
2026-11-14 05:51:42 +08:00
2026-11-10 22:19:31 +08:00
gateway, copilot: Auto's pick is asked as Copilot Chat asks it, and a refused pick is made again on its own API (infinitr0us, #256 ) — on a Student plan copilot/auto's pick from POST /models/session (gpt-5.4-mini, gpt-5.3-codex) was refused 400 "The requested model is not supported.", and the retry with the next pick, gpt-4.1, went to the same /responses and got "model gpt-4.1 is not supported via Responses API." (1) Copilot Chat 0.69 (now in microsoft/vscode extensions/copilot, automodeService.ts / AutoV2Fetcher) no longer asks /models/session: it POSTs {capiBase}/auto with the prompt at X-GitHub-Api-Version 2026-08-01 and gets session_token, expires_at and selected_model with its supported_endpoints; /models/session answers a fixed, stale list (asked with the owner's account it still offers gpt-5.3-codex/gpt-5.4-mini while /auto picks gpt-6-luna). magpie now asks /auto first, with the last user message as the prompt, takes the pick's endpoints for its API, keeps the session at most an hour, and falls back to /models/session and then the hand-picked model as before. (2) After a refusal the retry with Auto's next pick breaks out of forward's same-API loop when that model isn't served on it, and the candidates' loop makes the request again (at most twice) on the new model's own API; a held refusal is passed on only when no retry is left. TestCopilotAutoRepickTakesItsAPI (gpt-5.3-codex refused on /responses, gpt-4.1 refused there and served on chat) fails on the old code with infinitr0us's exact error; TestCopilotAutoAsksAuto (version, prompt, token, /models/session not asked) fails with a 502. With the owner's real Copilot account in a sandbox gateway, copilot/auto on /v1/chat/completions came back 200 from gpt-6-luna, picked by /auto and sent on /responses. go vet, builds (darwin, GOOS=linux nogui, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass.
2026-10-05 04:07:20 +08:00
copilot: Auto falls back to gpt-4.1 first, the reply names the pick that answered, and the route says each pick's API and session token (infinitr0us, #256 ) — the route data from v0.1.921 showed /auto does answer a Student account: it picked gpt-5.6-luna, which Copilot refused "The requested model is not supported." magpie then went down /models in its order, but Copilot's list no longer flags any model as the chat default or fallback, nor bills any, so the order was the list's own: gpt-5.4-mini, gpt-6-luna, kimi-k3, mai-code-1.1-flash, gpt-5-mini all refused and the request failed with 400 before reaching gpt-4.1, last on the list and the one the plan is served; a second request reached it after claude-haiku-4.5. gpt-4.1 (Copilot's base model) now ranks right after a flagged fallback or default. X-Magpie-Model named mai-code-1.1-flash / claude-haiku-4.5, a refused pick: each new pick now updates it, so it ends on the one sent last. Each pick in tries[].auto now carries api (the path it went to) and session (whether Auto's Copilot-Session-Token went with it), shown on the Routing page's pick line (zh, ja, de strings), since why /auto's own pick is refused is still open: VS Code's /auto request matches magpie's. TestCopilotAutoFallsBackToBase (a Student list as the reporter's, /auto picking a refused model, only gpt-4.1 served) fails on the old code: eight refusals, X-Magpie-Model copilot/claude-haiku-4.5; routing-copilot-auto.test.cjs (WebKit, en and zh) asserts the API/session text. routing-wb-refused, routing-effort, routing-kind, routing-zcode-blocked pass on WebKit; go vet, builds (darwin, GOOS=linux nogui, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass.
2026-10-05 06:40:06 +08:00
2026-11-18 23:50:16 +08:00
2026-11-12 16:01:00 +08:00
2026-11-16 15:31:53 +08:00
2026-11-10 20:06:21 +08:00
2026-10-11 20:09:14 +08:00
2026-10-31 04:21:21 +08:00
2026-10-17 20:52:13 +08:00
2026-10-24 21:33:06 +08:00
2026-10-17 20:52:13 +08:00
2026-10-17 20:52:13 +08:00
2026-10-17 20:52:13 +08:00
2026-10-29 01:14:42 +08:00
2026-11-06 14:22:26 +08:00
gateway: Cursor Private Inference asking with another key of magpie's is shown its own model list (mamba on Discord) — after v0.1.980 its Reasoning control was still missing and models taken out on its row still listed: a key typed in its Open configuration or a model's settings ("magpie") overrides magpie-cursor-local, and its User-Agent (Cursor-CLI/…, cursor-agent-exec's default) made it the cursor agent, which is shown the plain list. cursor-agent talks to Cursor's backend only, so a Cursor User-Agent at the gateway is now taken as Cursor Private Inference's: its /models carries api_types and capabilities and follows its row's model picks, and its use is counted under it. Its notice now says to leave both the base URL and the key empty (or use magpie-cursor-local) and to quit the app, not only its window, as it keeps the model list it was first given. TestCursorLocalModels fails without the change. go vet, go build (darwin, GOOS=linux nogui, GOOS=windows) and go test -tags nogui ./... under a temp HOME pass.
2026-10-05 16:29:51 +08:00
2026-10-28 16:52:55 +08:00
2026-11-14 05:51:42 +08:00
2026-10-14 05:22:39 +08:00
2026-11-18 19:59:27 +08:00
2026-10-31 09:58:04 +08:00
2026-11-09 13:05:00 +08:00
2026-11-18 12:08:46 +08:00
2026-11-18 03:48:29 +08:00
2026-11-20 16:01:53 +08:00
2026-11-06 10:44:24 +08:00
2026-11-01 03:07:06 +08:00
2026-10-14 19:54:31 +08:00
2026-11-17 13:31:08 +08:00
2026-11-18 12:08:46 +08:00
2026-11-08 00:45:30 +08:00
2026-11-18 12:08:46 +08:00
2026-11-07 16:05:37 +08:00
2026-11-08 00:45:30 +08:00
2026-10-27 16:17:53 +08:00
2026-11-10 22:57:20 +08:00
2026-11-06 11:46:25 +08:00
2026-11-10 07:37:34 +08:00
2026-10-23 01:20:37 +08:00
2026-11-14 05:51:42 +08:00
2026-10-27 16:17:53 +08:00
2026-11-06 05:42:22 +08:00
2026-11-19 01:13:33 +08:00
2026-11-19 01:13:33 +08:00
2026-11-06 09:55:19 +08:00
2026-10-15 05:39:01 +08:00
2026-11-18 00:04:34 +08:00
2026-10-16 00:46:26 +08:00
2026-11-16 12:05:45 +08:00
2026-11-16 12:05:45 +08:00
2026-11-17 18:27:14 +08:00
2026-11-16 12:05:45 +08:00
2026-10-31 18:05:17 +08:00
2026-11-06 10:44:24 +08:00
2026-11-12 12:31:39 +08:00
2026-10-29 17:28:07 +08:00
2026-10-15 03:34:59 +08:00
2026-11-17 22:56:55 +08:00
2026-11-17 22:56:55 +08:00
2026-10-17 13:11:43 +08:00
2026-10-15 09:36:26 +08:00
2026-11-13 14:16:12 +08:00
2026-10-29 20:20:12 +08:00
2026-11-13 14:16:12 +08:00
2026-11-17 22:56:55 +08:00
2026-11-18 00:04:34 +08:00
2026-11-02 16:21:58 +08:00
2026-10-13 05:34:13 +08:00
2026-10-13 18:16:03 +08:00
2026-11-01 09:53:50 +08:00
2026-11-05 19:56:08 +08:00
2026-10-13 04:27:40 +08:00
2026-11-06 18:47:24 +08:00
2026-11-06 18:47:24 +08:00
2026-10-31 10:15:15 +08:00
2026-11-06 11:12:12 +08:00
2026-11-01 10:22:57 +08:00
2026-10-29 22:54:06 +08:00
2026-11-09 21:51:53 +08:00
2026-11-05 17:04:16 +08:00
2026-10-29 15:50:37 +08:00
2026-10-14 05:32:31 +08:00
2026-11-09 21:51:53 +08:00
2026-11-12 12:28:56 +08:00
2026-11-03 07:43:18 +08:00
2026-11-06 11:12:12 +08:00
2026-11-12 23:37:30 +08:00
2026-11-12 22:27:39 +08:00
2026-11-19 00:27:58 +08:00
gateway: ModelScope's image models draw, on its async task API, one at a time ( #645 ) — Qwen/Qwen-Image-2.1 at api-inference.modelscope.cn always came back "drew nothing": its images API answers without OpenAI's data (a task_id, or images[].url), so nothing was read and a 502 was made of it. A provider at ModelScope (the preset or one added by hand) now starts a task with X-ModelScope-Async-Mode, asks GET /tasks/<id> with X-ModelScope-Task-Type: image_generation until SUCCEED (output_images) or FAILED, and reads a sync answer's images too. It is sent model, prompt and size only, and an edit's images as image_url. ModelScope holds one task per user, so magpie draws there one image at a time per key, n of them in turn, and asks again after 3/8/15 s when told the queue is full or 429. A failed task, or any images API answer with no image, now says what the vendor said (vendorMessage reads ModelScope's errors.message) instead of "drew nothing". TestModelScopeDraws, TestModelScopeOneAtATime, TestModelScopeQueueFull, TestModelScopeSaysWhy and TestImagesAPINoImageSaysWhy run against a stub of ModelScope's API and fail on the old code. go vet, go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build and go test -tags nogui -count=1 ./... under a temp HOME pass but TestUserPath, a timing test that passes alone. Not tried against the real ModelScope.
2026-10-03 14:28:46 +08:00
2026-10-19 21:47:35 +08:00
2026-11-11 16:54:06 +08:00
2026-11-11 16:54:06 +08:00
2026-11-09 22:39:41 +08:00
2026-11-15 02:19:18 +08:00
2026-11-19 00:27:58 +08:00
2026-11-19 00:27:58 +08:00
2026-10-19 21:47:35 +08:00
2026-10-15 23:08:05 +08:00
2026-11-19 00:27:58 +08:00
2026-10-17 23:11:00 +08:00
2026-10-27 03:30:57 +08:00
2026-11-20 16:01:53 +08:00
2026-11-01 05:35:21 +08:00
2026-11-03 05:08:38 +08:00
2026-11-05 17:04:16 +08:00
2026-11-05 17:04:16 +08:00
2026-11-10 13:42:14 +08:00
2026-11-16 18:59:40 +08:00
2026-11-13 05:12:30 +08:00
2026-11-08 22:25:58 +08:00
2026-11-08 22:25:58 +08:00
2026-10-25 05:51:52 +08:00
2026-11-10 18:57:16 +08:00
2026-11-10 12:34:14 +08:00
2026-10-15 23:07:59 +08:00
2026-11-01 02:45:01 +08:00
2026-11-15 08:45:42 +08:00
2026-11-14 06:54:01 +08:00
2026-10-31 18:22:49 +08:00
2026-11-05 16:22:31 +08:00
2026-11-20 16:01:53 +08:00
2026-10-03 04:44:37 +08:00
2026-11-15 06:09:25 +08:00
2026-10-15 23:08:00 +08:00
2026-10-30 22:48:39 +08:00
2026-11-10 04:58:30 +08:00
2026-11-01 07:06:19 +08:00
2026-11-08 22:55:09 +08:00
2026-11-11 17:54:42 +08:00
2026-11-06 16:33:39 +08:00
2026-10-28 17:34:16 +08:00
2026-11-20 16:01:53 +08:00
2026-10-08 16:53:56 +08:00
2026-10-20 13:26:05 +08:00
2026-11-01 09:59:21 +08:00
2026-10-20 20:23:52 +08:00
2026-11-05 03:37:36 +08:00
2026-10-19 15:19:31 +08:00
2026-10-24 21:59:05 +08:00
2026-11-05 03:37:36 +08:00
2026-10-11 22:04:46 +08:00
2026-10-15 04:46:57 +08:00
2026-10-09 14:08:07 +08:00
2026-11-02 10:05:07 +08:00
2026-11-16 08:58:28 +08:00
2026-11-03 20:38:11 +08:00
2026-10-15 01:22:13 +08:00
2026-10-15 01:22:13 +08:00
2026-10-14 16:42:56 +08:00
2026-10-14 16:42:56 +08:00
2026-11-10 12:34:14 +08:00
2026-11-17 22:00:51 +08:00
2026-11-04 17:11:55 +08:00
2026-10-28 04:18:21 +08:00
2026-10-27 13:20:52 +08:00
2026-11-01 22:23:51 +08:00
2026-11-11 11:50:13 +08:00
2026-10-16 20:48:51 +08:00
2026-11-20 14:19:29 +08:00
2026-11-20 16:36:26 +08:00
2026-11-09 12:42:35 +08:00
2026-11-03 10:57:36 +08:00
2026-11-06 09:53:30 +08:00
2026-11-13 15:59:26 +08:00
2026-10-29 14:38:13 +08:00
2026-11-06 16:03:41 +08:00
2026-11-15 12:14:48 +08:00
2026-10-11 04:33:03 +08:00
2026-10-07 00:23:34 +08:00
2026-11-06 10:04:22 +08:00
2026-11-15 12:14:48 +08:00
2026-11-15 12:14:48 +08:00
2026-10-17 23:11:00 +08:00
2026-11-16 21:10:12 +08:00
2026-11-16 21:10:12 +08:00
2026-10-14 15:34:16 +08:00
2026-11-11 19:00:14 +08:00
2026-11-11 19:00:14 +08:00
2026-11-12 07:50:22 +08:00
2026-11-17 20:06:48 +08:00
2026-11-14 13:15:20 +08:00
2026-10-15 09:36:25 +08:00
2026-10-12 00:36:49 +08:00
2026-11-15 01:40:37 +08:00
2026-10-27 01:28:39 +08:00
2026-11-11 19:42:17 +08:00
2026-11-05 11:42:53 +08:00
2026-11-15 01:40:37 +08:00
2026-11-05 11:42:53 +08:00
2026-11-05 11:42:53 +08:00
2026-11-16 13:17:46 +08:00
2026-10-14 15:34:16 +08:00
2026-10-12 00:27:55 +08:00
2026-10-09 01:10:25 +08:00
2026-11-12 07:50:22 +08:00
2026-11-14 13:15:20 +08:00
2026-10-13 13:59:17 +08:00
2026-10-26 05:53:34 +08:00
2026-10-26 05:53:34 +08:00
2026-11-04 11:32:49 +08:00
2026-11-19 16:20:34 +08:00
2026-10-13 03:49:32 +08:00
2026-11-12 04:24:58 +08:00
2026-10-31 09:38:21 +08:00
2026-11-14 05:51:42 +08:00
2026-11-14 05:51:42 +08:00
2026-10-29 19:34:39 +08:00
2026-10-15 23:08:02 +08:00
2026-11-14 06:54:01 +08:00
2026-11-01 21:36:32 +08:00
2026-11-08 02:08:30 +08:00
2026-11-10 00:13:44 +08:00
2026-11-10 08:38:12 +08:00
2026-10-28 17:34:16 +08:00
2026-10-08 18:13:11 +08:00
2026-10-04 22:48:06 +08:00
2026-10-19 03:19:13 +08:00
2026-10-11 19:54:55 +08:00
2026-10-08 13:58:58 +08:00
2026-11-11 17:54:42 +08:00
2026-11-06 19:07:15 +08:00
2026-10-30 11:55:36 +08:00
2026-11-04 17:39:36 +08:00
2026-11-15 08:45:42 +08:00
2026-10-28 17:20:24 +08:00
groups: a routing group's own id keeps a model's dots ( #968 ) — a group named GPT 6.1 Sol was group/gpt-6-1-sol, so a harness pricing or tuning by the model's name didn't know it (dbydd). provider.GroupSlug is Slug with the dots kept (a run of them one, none at the ends); SaveGroup, RenameGroup, the backup's import and export, the GUI's save and rename, the CLI's group add and edit, and the Routing editor (groupSlug) derive and check a group's id by it. The ids magpie finds stay Slug's (auto-gpt-6-1-sol), so no id saved before changes, and an agent sending the bare name gpt-6.1-sol reaches a group of that id first (GroupFor). groupid_test (ids, save, rename, bad ids, found ids unchanged) and gateway's TestDottedGroupID (group/gpt-6.1-sol and the bare name served, falling through as the group's order says; -race -count=5) pass and fail without the fix; group-id-dots (hint and Add's body, groupSlug cases) passes in Chromium and WebKit, en and zh, and fails without it. The other group-* GUI tests, agent-model-groups and i18n-keys pass, except group-arrange, whose Chromium cases fail the same on origin/main (mouse.move: Invalid parameters at line 165). go test . provider/gui/gateway/agent/tui, vet, linux/windows builds pass.
2026-10-06 12:32:16 +08:00
2026-11-04 19:24:12 +08:00
2026-11-07 20:19:50 +08:00
2026-11-15 19:06:45 +08:00
2026-11-19 13:51:20 +08:00
2026-10-17 20:38:06 +08:00
2026-10-03 20:54:46 +08:00
routing: a group in a group is routed by its own routing whatever the outer group's, and an account with five hours and no week is ranked by its five hours ( #576 : 只有五小时额度的账号在智能/重置前用完下是否合理;嵌套路由组时上层路由是否会干预下层) — a group routed other than In order (Smart, In turn, Least used, Weekly pace, Manual) put every account and key of every group in it into one pool and weighed them together, so A (Smart) holding A-1 and A-2 (each In order) ranked all five of their accounts and keys by Smart and A-1's and A-2's own In order did nothing; only an outer In order let each inner group route itself. planLevel now plans each group in the group by its own routing, whatever the outer's, and weighs it as one beside the outer group's own models' keys, by the first of its own order that isn't resting; where that lands, the inner group is tried whole in its own order, the trace in the same order. As for the five hours: Smart already ranked such an account (Claude Enterprise) by its five hours, the biggest window it has, so ahead of every week renewing later, but a five hours not started (no reset told) counted as a reset not known and went after every week; Allowance.Renewal now has a window not started that says its span renew that long from now, which Smart sorts by (the trace's renews unchanged). Weekly pace took an account with no week as a fresh week with the share used (100/168 per hour), so a week with 80% left and five days to go went ahead of an Enterprise account whose five hours were being lost; it now goes by what its five hours have left per hour until they renew, the whole span when not started, except where the reading may leave a week out — a Claude account only heard of from Claude Code's rate_limit_event, never read whole by /usage (QuotaWindow.partial, claudeUsageEntry.whole) — which keeps the fresh week. The group editor's Smart and Weekly pace hints and the trace's say how an account with five hours and no week is ranked, a hint under Routing says a group among the models keeps its own routing, and the docs (en, zh) say both. TestGroupInGroupKeepsItsOwnRouting (Outer rotating over two In order groups: b c d a without the change, c d a b with it), TestSmartFiveHoursAlone (a five hours not started went after a week in two days), TestFiveHoursAlone, TestClaudeHeardOnlyIsPartial; TestWeeklyPace and TestAllowancePace now pin the five hours alone. settings-groups, group-member-fast, group-found-off, routing-idle-frame pass in WebKit. go vet ./internal/..., go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build, go test -tags nogui -count=1 ./... under a temp HOME pass (TestFXInState, TestProvidersAnswerWhileListsComeIn, TestUserPath, TestClaudeSignedOut flaked; the last passes 3/3 alone).
2026-10-02 23:05:15 +08:00
group: a routing group's members can be patterns, so a group follows a provider's catalog ( #766 : magpie group add my-free-pool models='openrouter/*:free,opencode-zen/*-free') — a group names its models one by one, so a pool of a vendor's free models went stale as the vendor added and dropped them. A group now keeps patterns apart from the models it names (Group.Match): a glob, * any run of characters (/ too) over the provider/model id in any case, or re:<regexp> over the whole id. groupsIn, which every reader goes through (Groups, FindGroup, /v1/models, MemberGroups, GroupsWith, RenameGroup, rules, Off, Pick, the GUI, TUI and CLI), puts after the named models every enabled provider's model a pattern matches, in catalog order, deduplicated, the named one keeping its place; a pattern never matches a group. What was matched is derived (Group.Matched) and never stored: store() and SaveGroup keep only the named members, so a save never freezes matches. Off and rules may name a matched model. A group with only patterns is allowed; one matching nothing routes nowhere and says so: magpie group <id> lists each pattern with how many models it matches now ("matches nothing now" in amber), the group list and the TUI too, and the GUI card shows a line per pattern with its count. CLI: models= takes patterns among the ids, models+= adds them (naming a matched model moves it to where it is named), models-=<pattern> drops one, models-= of a matched model is refused naming its pattern; the help documents patterns. GUI: the editor has a Patterns box (Add pattern / Remove, validated as the server does), matched models follow those named marked "by pattern" with their off switch and no Remove, and saves send members without the matched ones plus match; zh strings added. Tests: TestGroupPatterns, TestGroupPatternMembersOffAndRules, TestGroupPatternMatchingNothing, TestPatternSyntax (provider), TestPatternGroupRoutes (gateway: a request reaches a matched model, a model a provider adds joins, Off on a matched one, /v1/models lists the group), TestGroupPatternsCLI, and group-patterns.test.cjs (WebKit, en+zh); they fail on the old code (the Go ones don't build, the GUI one finds no pattern lines). GUI: group-patterns, group-found-off, group-member-fast, group-member-off, settings-groups, agent-model-groups, remote-group-served, routing-manual pass on WebKit; group-from-model-add has the same 2 failures (600x420) as origin/main. A request to a group whose patterns match nothing now is a 404 naming the group and its patterns (emptyGroupError), not 'magpie knows no model' and every model; TestEmptyPatternGroupSaysSo. With the owner's real config under a sandbox HOME: group/ds-pool of models='deepseek/*' listed deepseek-flash and deepseek-v4-pro by pattern, stored only the pattern, was in /v1/models and answered from deepseek-flash; none-pool of 'nobody/*' said its pattern matches nothing. go vet, builds (darwin, GOOS=linux, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass.
2026-10-04 16:52:15 +08:00
group: a routing group's members can be patterns, so a group follows a provider's catalog ( #766 : magpie group add my-free-pool models='openrouter/*:free,opencode-zen/*-free') — a group names its models one by one, so a pool of a vendor's free models went stale as the vendor added and dropped them. A group now keeps patterns apart from the models it names (Group.Match): a glob, * any run of characters (/ too) over the provider/model id in any case, or re:<regexp> over the whole id. groupsIn, which every reader goes through (Groups, FindGroup, /v1/models, MemberGroups, GroupsWith, RenameGroup, rules, Off, Pick, the GUI, TUI and CLI), puts after the named models every enabled provider's model a pattern matches, in catalog order, deduplicated, the named one keeping its place; a pattern never matches a group. What was matched is derived (Group.Matched) and never stored: store() and SaveGroup keep only the named members, so a save never freezes matches. Off and rules may name a matched model. A group with only patterns is allowed; one matching nothing routes nowhere and says so: magpie group <id> lists each pattern with how many models it matches now ("matches nothing now" in amber), the group list and the TUI too, and the GUI card shows a line per pattern with its count. CLI: models= takes patterns among the ids, models+= adds them (naming a matched model moves it to where it is named), models-=<pattern> drops one, models-= of a matched model is refused naming its pattern; the help documents patterns. GUI: the editor has a Patterns box (Add pattern / Remove, validated as the server does), matched models follow those named marked "by pattern" with their off switch and no Remove, and saves send members without the matched ones plus match; zh strings added. Tests: TestGroupPatterns, TestGroupPatternMembersOffAndRules, TestGroupPatternMatchingNothing, TestPatternSyntax (provider), TestPatternGroupRoutes (gateway: a request reaches a matched model, a model a provider adds joins, Off on a matched one, /v1/models lists the group), TestGroupPatternsCLI, and group-patterns.test.cjs (WebKit, en+zh); they fail on the old code (the Go ones don't build, the GUI one finds no pattern lines). GUI: group-patterns, group-found-off, group-member-fast, group-member-off, settings-groups, agent-model-groups, remote-group-served, routing-manual pass on WebKit; group-from-model-add has the same 2 failures (600x420) as origin/main. A request to a group whose patterns match nothing now is a 404 naming the group and its patterns (emptyGroupError), not 'magpie knows no model' and every model; TestEmptyPatternGroupSaysSo. With the owner's real config under a sandbox HOME: group/ds-pool of models='deepseek/*' listed deepseek-flash and deepseek-v4-pro by pattern, stored only the pattern, was in /v1/models and answered from deepseek-flash; none-pool of 'nobody/*' said its pattern matches nothing. go vet, builds (darwin, GOOS=linux, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass.
2026-10-04 16:52:15 +08:00
2026-10-20 00:18:51 +08:00
gui, provider, gateway: a group's models are dragged into order, a group can be switched off, several models are added at once, and a page shows a scrollbar on the Mac (PAMI on Discord) — in a group's editor a model went up one step a click and only up; its number is now a handle (grip on hover) that drags it, Alt+↑/↓ moves it from the keyboard, and Up and Down stay beside it; a pattern's members follow the named ones. A group of the user's has a switch on its card: off, agents aren't offered it, a request to it is turned away with 404 "the routing group … is switched off", a group that has it in it goes on to its next member, a save from the editor leaves it off, and one that classifies for another can't be switched off (a found group is removed instead, as before). Each member already had its own switch. The editor's Add a model picker stays open: each model clicked is added and ticked, clicked again taken out, and each says the other groups it is in. Pages, dialogs and framed editors had their scrollbar hidden everywhere (width 0); on the Mac they now have a thin 8px thumb, elsewhere the 10px one other lists have. TestSwitchGroup, TestSwitchedOffGroup, group-member-drag, group-switch-add-many and view-scrollbar (WebKit, en and zh) fail without the change. go vet, go build (darwin, GOOS=linux nogui, GOOS=windows) and go test -tags nogui ./... under a temp HOME pass (TestProvidersAnswerWhileListsComeIn is flaky on origin/main as well).
2026-10-05 16:46:59 +08:00
2026-10-28 21:08:02 +08:00
2026-11-19 16:20:34 +08:00
2026-10-24 21:33:06 +08:00
2026-10-17 20:52:13 +08:00
2026-11-01 15:04:28 +08:00
2026-11-14 05:51:42 +08:00
2026-10-29 10:43:59 +08:00
2026-11-07 19:29:43 +08:00
2026-11-15 00:57:39 +08:00
2026-11-08 07:20:19 +08:00
2026-11-15 00:57:39 +08:00
2026-10-10 14:52:56 +08:00
2026-10-21 19:17:10 +08:00
2026-11-12 02:01:31 +08:00
2026-11-05 15:53:16 +08:00
2026-10-24 17:07:35 +08:00
2026-10-27 18:54:31 +08:00
2026-11-02 19:26:26 +08:00
usage, gateway: a model the vendor spells with other separators isn't marked as another one (vincentzhang on Discord: 这个说明有点奇怪。看不明白。) — Volcengine Ark answers deepseek-v4.1-flash as deepseek-v4-1-flash, the dots written as hyphens, and the Usage page's Requests and the Routing page marked every such row amber 「实际 deepseek-v4-1-flash」, saying another model had answered, not the one asked for under a dated name. Swapped now compares the bare names without their separators (. - _ and spaces) and case, so deepseek-v4-1-flash, deepseek_v4_1_flash, GLM-4-6 for glm-4.6 and gpt-4-1-2025-04-14 for gpt-4.1 are the model asked for, while deepseek-v4-flash or deepseek-v4.1-pro for deepseek-v4.1-flash still are another. Rows and routes kept marked swapped before are read back as not swapped when the names differ only so (usage.SameSpelled, in rowChunk.row and Route.routedAgain). The tag's explanation says it in plainer words: asked for {sent}, the reply says {served} answered, likely another model; the same model under a dated name or spelled otherwise isn't marked (zh, ja, de). TestSwappedIgnoresSeparators fails on the old code; TestKeptRowSameSpelledNotSwapped, TestRouteKeptSpelledOtherwiseNotSwapped. usage-ledger (its expected title updated), remote-group-served, panel-routing, gui-ja and gui-de pass on WebKit. go vet, builds (darwin, GOOS=linux nogui, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass (TestCodexVersion timed out once under load and passes alone).
2026-10-05 12:49:59 +08:00
2026-11-13 10:48:07 +08:00
2026-11-13 01:01:43 +08:00
2026-11-07 17:30:06 +08:00
2026-11-14 06:54:01 +08:00
2026-11-06 20:57:55 +08:00
2026-11-10 23:05:47 +08:00
2026-11-10 23:05:47 +08:00
2026-11-06 14:33:18 +08:00
2026-11-02 18:37:57 +08:00
2026-11-19 10:54:42 +08:00
2026-11-18 18:58:55 +08:00
2026-11-18 14:32:44 +08:00
2026-11-19 02:31:18 +08:00
2026-11-19 23:49:45 +08:00
2026-11-19 23:49:45 +08:00
2026-11-14 22:29:07 +08:00
2026-10-31 02:49:08 +08:00
2026-11-19 02:31:18 +08:00
2026-10-25 00:06:40 +08:00
2026-10-25 00:06:40 +08:00
2026-11-17 16:14:13 +08:00
2026-11-17 16:14:13 +08:00
2026-10-29 21:25:33 +08:00
2026-11-17 15:39:12 +08:00
2026-11-17 15:39:12 +08:00
2026-11-17 15:39:12 +08:00
2026-11-05 11:45:44 +08:00
2026-11-14 05:51:42 +08:00
2026-11-13 00:06:43 +08:00
2026-11-08 22:55:09 +08:00
2026-11-14 19:46:12 +08:00
2026-11-01 15:04:28 +08:00
2026-11-06 13:42:40 +08:00
2026-11-06 13:42:40 +08:00
2026-11-19 00:27:58 +08:00
2026-10-29 22:16:56 +08:00
2026-11-10 00:13:44 +08:00
2026-11-13 11:08:44 +08:00
2026-11-19 00:27:58 +08:00
2026-11-11 21:59:36 +08:00
2026-11-11 21:59:36 +08:00
2026-10-06 03:39:04 +08:00
2026-11-14 06:54:01 +08:00
2026-10-20 20:32:05 +08:00
2026-10-13 05:09:18 +08:00
2026-11-16 13:49:16 +08:00
2026-11-16 13:49:16 +08:00
2026-10-15 23:08:05 +08:00
2026-11-19 01:13:33 +08:00
2026-10-31 13:44:29 +08:00
2026-10-31 13:44:29 +08:00
2026-11-09 21:47:24 +08:00
2026-11-06 01:13:42 +08:00
2026-10-20 00:33:40 +08:00
2026-10-24 22:20:26 +08:00
2026-11-10 22:42:11 +08:00
2026-10-14 15:20:24 +08:00
2026-11-10 22:42:11 +08:00
2026-10-13 18:44:49 +08:00
2026-10-15 23:08:05 +08:00
2026-11-11 03:45:29 +08:00
2026-11-20 15:28:24 +08:00
2026-11-20 15:28:24 +08:00
2026-11-10 13:12:52 +08:00
2026-11-13 05:12:30 +08:00
2026-10-30 01:25:57 +08:00
2026-10-30 01:25:57 +08:00
2026-11-11 06:24:47 +08:00
2026-10-30 15:30:55 +08:00
2026-11-04 21:21:32 +08:00
2026-11-05 18:28:38 +08:00
2026-11-15 04:38:51 +08:00
2026-11-20 11:20:46 +08:00
gateway tests: TestRestingKeyReadAgainInAnOrderedGroup has the relay hold a reading made after the key refused until the test has raised its limit (red on ubuntu CI -race at d7bdb076: "its limit raised: still rests by window till …, its windows read 3 times") — the third order 3e38bd76 didn't cover. The planning's reading, still out as the key refused, came back between the refusal and the test raising the limit; ee2588c2's re-read that follows it at once reached the relay first too, read the week still used up, and was trusted for its minute, so the planning after the raise didn't ask again and nothing lifted the rest within the test's 5 s. That is the app as designed (a key's windows are read at most once a minute; a reading made after the refusal is a true one), so the test was wrong: it assumed no reading could land between restAfter and the raise. It now models the owner raising the limit before magpie reads again: a reading that reaches the relay after the refusal waits until the limit is raised. Red before: with the first reading held 100 ms and 300 ms between the refusal and the raise (a preempted test goroutine), the old test fails 3 of 5 with CI's message ("… its windows read 3 times"); the new one passes 10 of 10, and 10 of 10 with each delay alone. Still guards ee2588c2: with the planning's reading held until after the refusal and the re-read taken out of readKeyAllowance, the new test fails 3 of 3 ("still rests by window …, read 2 times"), and passes 3 of 3 with it. go test -race -count=40 -cpu 1,2,4 -run 'TestRestingKey|TestKey|Lone|Allowance' ./internal/gateway at load average ~124, go test -race ./internal/provider, go test -race ./internal/gateway, go vet (darwin, GOOS=linux, GOOS=windows) and gofmt -l pass.
2026-10-08 18:54:59 +08:00
2026-11-06 20:47:21 +08:00
2026-11-13 05:12:30 +08:00
2026-11-02 15:34:08 +08:00
2026-11-13 15:54:06 +08:00
2026-11-09 18:15:24 +08:00
2026-10-13 07:07:18 +08:00
2026-11-09 14:22:05 +08:00
2026-11-09 14:22:05 +08:00
2026-11-11 06:24:47 +08:00
2026-10-26 20:37:07 +08:00
2026-11-12 01:01:32 +08:00
2026-11-20 16:01:53 +08:00
2026-11-20 16:01:53 +08:00
2026-11-16 16:02:54 +08:00
2026-11-20 11:40:19 +08:00
2026-11-03 15:30:44 +08:00
2026-11-11 17:59:36 +08:00
2026-11-11 14:18:10 +08:00
2026-11-10 22:42:11 +08:00
2026-11-09 05:06:48 +08:00
2026-10-12 22:42:45 +08:00
2026-11-01 10:22:56 +08:00
2026-11-14 05:51:42 +08:00
2026-10-31 03:27:34 +08:00
2026-11-05 16:22:31 +08:00
2026-11-01 11:30:12 +08:00
2026-10-29 23:04:30 +08:00
2026-10-10 09:26:23 +08:00
2026-10-15 05:17:37 +08:00
2026-11-16 15:31:53 +08:00
2026-11-17 23:13:03 +08:00
2026-11-02 04:17:24 +08:00
2026-10-06 11:27:57 +08:00
2026-11-17 20:53:21 +08:00
2026-10-15 03:34:58 +08:00
2026-11-10 07:34:29 +08:00
2026-11-10 07:34:29 +08:00
2026-11-10 12:34:14 +08:00
2026-10-15 23:08:05 +08:00
2026-10-25 14:00:59 +08:00
2026-10-06 07:43:47 +08:00
2026-11-10 12:34:14 +08:00
2026-10-24 02:20:38 +08:00
2026-11-19 16:20:34 +08:00
2026-11-19 16:20:34 +08:00
2026-10-25 20:02:12 +08:00
2026-11-04 19:39:08 +08:00
2026-11-04 19:39:08 +08:00
2026-11-03 20:49:32 +08:00
2026-11-10 20:22:17 +08:00
2026-11-04 19:39:08 +08:00
2026-11-10 20:22:17 +08:00
2026-11-01 14:59:44 +08:00
2026-10-31 18:38:31 +08:00
2026-10-31 15:04:44 +08:00
2026-11-10 22:57:20 +08:00
2026-11-10 22:57:20 +08:00
2026-10-31 21:39:37 +08:00
2026-11-07 19:45:30 +08:00
2026-11-14 05:51:42 +08:00
2026-11-05 12:37:30 +08:00
2026-10-16 19:30:42 +08:00
2026-11-10 12:34:14 +08:00
2026-10-16 08:43:02 +08:00
2026-10-29 02:26:33 +08:00
2026-10-22 04:07:55 +08:00
2026-10-30 00:46:45 +08:00
2026-10-30 10:26:50 +08:00
2026-11-14 17:38:39 +08:00
2026-11-01 04:51:17 +08:00
2026-11-05 05:13:24 +08:00
2026-10-26 15:29:36 +08:00
2026-10-28 22:42:34 +08:00
2026-11-14 17:38:39 +08:00
2026-10-27 01:14:23 +08:00
2026-11-12 17:37:04 +08:00
2026-10-31 02:49:08 +08:00
2026-10-30 15:00:16 +08:00
2026-11-04 21:00:51 +08:00
2026-11-07 03:57:21 +08:00
2026-11-07 03:57:21 +08:00
2026-10-29 03:06:48 +08:00
2026-10-13 03:43:04 +08:00
2026-11-11 10:10:12 +08:00
2026-11-05 17:04:16 +08:00
2026-11-20 16:12:11 +08:00
2026-10-17 23:11:01 +08:00
2026-10-29 15:58:20 +08:00
2026-10-29 15:58:20 +08:00
2026-11-03 07:15:52 +08:00
2026-11-14 06:54:01 +08:00
2026-11-19 06:32:40 +08:00
2026-11-19 06:32:40 +08:00
2026-11-02 10:58:10 +08:00
2026-11-02 10:58:10 +08:00
2026-10-15 23:08:04 +08:00
2026-11-14 05:51:42 +08:00
gateway, provider: a Claude model is asked on Messages from Chat and Responses too, where its provider has an Anthropic URL (ReturnTrue on Discord, after #997/050e629b: OpenCode on supergpt@claude-opus-5-5 had no cache with Chat, Responses and Anthropic URLs filled; Chat → Anthropic with Anthropic alone wrote 16,318 to the cache) — OpenCode speaks Chat to magpie for every model, Claude's too, and a request on an API the provider serves was relayed as it is, so with a Chat URL beside the Anthropic one OpenCode's Chat went on as Chat and the cache breakpoints the translation to Messages adds never reached the relay; Codex's Responses at a relay with a Responses URL the same. MessagesFirst only ordered the APIs a request is translated to. Provider.OnMessages (MessagesFirst, no "Asked on" set for the model, and no vendor list naming its APIs) now stops the pass-through for Chat and Responses when Messages is usable, and the request is translated there. A model the user pinned to Chat stays on Chat; Copilot's Claude, whose list names Chat and Messages, and every non-Claude model are relayed as before; Messages is relayed as it is. The reporter's second setup (Responses and Anthropic URLs, Chat → Responses in the screenshot) already went to Messages on v0.1.1081 — Chat isn't served there and 050e629b put Messages first — so that screenshot was from before it. TestClaudeFromChatIsAskedOnMessages (the reporter's three setups plus Chat+Anthropic, OpenCode's streamed Chat with a system prompt and a tool and Codex's Responses, each asserting /v1/messages upstream with cache_control in the body) fails without the change on the Chat+Responses+Anthropic and Chat+Anthropic setups and passes; TestClaudePinnedToChatStaysOnChat guards the pin; TestClaudeGoesOnMessagesWhereTheRelayHasThem and TestAutoRelaysOnTheClientsOwnAPI now expect Messages for Claude (GLM and GPT unchanged). -race -count=5 on them and the Copilot tests. go test ./internal/gateway ./internal/provider, go vet (darwin, windows), gofmt -l, darwin, linux (nogui) and windows builds pass. Not tried with the real SuperGPT relay or a real OpenCode. OpenCode's config still names @ai-sdk/openai-compatible for every model; a per-model Anthropic SDK was not added, as it isn't tried with the real OpenCode and the gateway now does the same. docs/subsystems/gateway-routing.md says it.
2026-10-06 16:42:07 +08:00
2026-11-18 22:02:34 +08:00
2026-10-26 14:15:53 +08:00
2026-10-30 14:08:22 +08:00
2026-11-11 11:50:13 +08:00
2026-10-22 19:36:50 +08:00
2026-10-29 19:34:39 +08:00
2026-10-27 23:49:33 +08:00
2026-11-13 10:54:56 +08:00
2026-11-12 12:31:39 +08:00
2026-11-12 12:31:39 +08:00
2026-11-13 15:01:55 +08:00
2026-11-13 15:01:55 +08:00
2026-11-06 14:21:27 +08:00
2026-10-11 00:33:18 +08:00
2026-11-08 11:28:54 +08:00
2026-10-15 03:25:41 +08:00
2026-11-11 10:31:29 +08:00
2026-10-10 01:30:29 +08:00
2026-11-10 07:25:54 +08:00
2026-11-10 07:25:54 +08:00
2026-11-12 01:56:26 +08:00
2026-11-20 16:12:11 +08:00
2026-10-25 03:39:50 +08:00
2026-11-19 14:02:17 +08:00
2026-11-12 09:47:34 +08:00
2026-11-12 09:47:34 +08:00
2026-10-24 05:51:22 +08:00
2026-11-08 02:08:08 +08:00
2026-11-10 14:27:21 +08:00
2026-11-10 23:05:47 +08:00
2026-11-10 18:57:16 +08:00
2026-11-10 18:04:25 +08:00
2026-10-03 06:10:29 +08:00
2026-11-04 22:05:21 +08:00
2026-11-08 22:33:12 +08:00
2026-11-14 05:51:42 +08:00
2026-11-10 13:20:49 +08:00
2026-11-18 00:38:36 +08:00
2026-11-02 07:40:21 +08:00
2026-11-17 13:31:08 +08:00
2026-11-15 22:43:30 +08:00
2026-10-30 01:56:03 +08:00
2026-11-13 15:59:26 +08:00
2026-11-20 14:19:29 +08:00
2026-10-13 05:05:23 +08:00
gateway: an upstream that answers 200 with a web page, with nothing at all, or with JSON that isn't, has failed as a 502 does, so a group asks its next member ( #1012 , cth123456: Codex on group/medium, agentrouter/deepseek-v4-flash now and then answered 200 text/html; the log said status=200 done=true in=0 out=0 served=null, codex/gpt-6-luna was never asked, and Codex failed with "stream disconnected before completion: stream closed before response.completed") — the candidate loop judged a try by its status alone, and holdWriter passes a 200 that is neither text/event-stream nor application/json straight to the agent, so the page went to Codex as the reply. notAnAPIReply now reads every 2xx (but 204) an upstream gives, in forwardOnce (every relayed and translated request, every API, plugins included) and in the built-in clients' own requests (the ChatGPT backend's /responses, Kiro, Zed, Qoder, Devin, Cursor, Command Code): a text/html reply, a body that begins as a web page whatever its Content-Type, an empty body, or one sent as JSON that doesn't begin with { or [ is turned into the 502 it stands for, with a JSON error saying what came back ("answered 200 OK with a web page (text/html), not an API reply: “Just a moment...”", the firewall hint for a block page). It then fails over, rests a minute and is logged as any 502 before the reply begins does; a provider with nobody after it hands the agent that 502 rather than the page. Only the first bytes are peeked, which a stream waits for anyway; a read that fails is left to the reader, a compressed body and anything else as it came. TestNotAnAPIReplyFailsOver (Chat, Responses and Messages, streamed and not, a member answering a Cloudflare page as text/html, as JSON and as SSE, an empty body as JSON and as SSE, and plain text as JSON; the next member must answer and the log name why) fails without the change in all 36 cases (the page relayed to the agent, or b never asked, or no reason logged) and passes; TestNotAnAPIReplyAlone (a 502 with the reason, logged 502) and TestCodexBackendWebPage (the ChatGPT backend's page reached Codex as a 200) fail without it and pass; TestAPIReplyUntouched keeps JSON after whitespace, SSE with and without a Content-Type, gzip, XML, a 204 and a 404 as they came. -race -count=10 on them; go test -tags nogui ./internal/gateway ./internal/provider, go vet (darwin, windows), gofmt -l, linux and windows (nogui) builds pass. Not tried with the reporter's relay (agentrouter) itself; the page is a Cloudflare challenge's, as the issue has only its Content-Type. docs/subsystems/gateway-routing.md says it.
2026-10-06 18:26:31 +08:00
2026-11-10 12:34:14 +08:00
2026-11-04 18:26:37 +08:00
2026-10-10 18:54:16 +08:00
2026-11-14 05:51:42 +08:00
2026-10-15 05:39:01 +08:00
2026-11-20 16:36:26 +08:00
2026-10-20 00:18:51 +08:00
2026-11-13 14:30:19 +08:00
2026-11-13 14:30:19 +08:00
2026-11-01 05:39:02 +08:00
2026-11-01 05:39:02 +08:00
2026-10-21 01:11:05 +08:00
2026-11-14 05:51:42 +08:00
2026-10-21 01:11:05 +08:00
2026-11-10 18:57:16 +08:00
2026-10-10 14:21:23 +08:00
site: usemagpie.ai draws itself in Omarchy's look on Omarchy, in the theme Omarchy has on (owner: 整个官网和文档页面能否智能识别是不是 Omarchy 在访问,如果是 Omarchy 在访问,那么整个页面风格能否变成 Omarchy 风格?而且能够适配当前 Omarchy 就更牛逼了) — every page (home, /import, the docs in en/zh/ja) loads omarchy.js in a Linux desktop browser only; it tells Omarchy by its font (a page may load local("omarchy"), which Omarchy installs system-wide and nothing else has), remembers it, and from then on paints before the page shows: the theme's palette, the system monospace (Omarchy's font), square corners, no shadows or glass, a solid bar, buttons and what's chosen in the accent, images framed in it. Until magpie tells the theme it takes Omarchy's default (tokyo-night, or catppuccin-latte on a light desktop). magpie's gateway answers GET /v1/magpie/omarchy (name, mode, stamp and the CSS variables magpie's own windows use) to this machine only, readable only by usemagpie.ai (CORS + Private Network Access; MAGPIE_SITE_ORIGIN adds an origin to try the site locally), 404 off Omarchy. The page asks it by itself only once the browser allows it to reach this computer; a chip in the corner (Omarchy's logo and the theme) asks once on a click, lists the 22 built-in themes to pick one, and turns the look off; ?omarchy=1|0|<theme> sets it anywhere. Followed while the page shows: a theme set in Omarchy's menu comes through in about 3 s. Tried in the omarchy VM's Chromium 152 with this magpie (nogui serve): detection, the home page and zh docs in tokyo-night, the chip's menu, following the computer, and omarchy-theme-set catppuccin-latte repainting the open page light. TestOmarchyThemeForTheSite covers 404 off Omarchy, the theme and its CORS for usemagpie.ai only, LAN refused and the preflight. go vet, builds (darwin, GOOS=linux, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass. The permission prompt from the public site wasn't clicked through in a real browser.
2026-10-03 16:01:53 +08:00
gateway: a tool schema's oneOf goes to Cline, Kilo and OpenRouter as anyOf (H20 on Discord: Cline answered 400 "unsupported schema keyword: oneOf" for Codex's automation_update tool) — some of the models those routers serve sit behind a grammar compiler (xgrammar; OpenRouter's ModelRun) that refuses oneOf "with overlapping or non-provably-disjoint branches" and takes anyOf, which to a model choosing what to call says the same. Every oneOf key in a tool's parameters/input_schema (through properties, $defs, items, allOf/anyOf and the other schema keywords) is renamed in place, the same length, so nothing else of the body changes and the prompt cache keeps its prefix; a property called oneOf and a description that says it are left alone, and every other provider is sent oneOf as before. With the owner's real OpenRouter key in a sandbox gateway, qwen/qwen3.8-27b:free pinned to ModelRun with a oneOf tool: before, 400 from xgrammar; now a tool call {"id":"7","change":{"paused":true}}. TestToolOneOfAsAnyOf (Cline, OpenRouter renamed; nested, items; a property named oneOf and the description kept; another provider unchanged) fails 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.
2026-10-04 21:38:58 +08:00
2026-11-14 05:51:42 +08:00
2026-11-11 10:15:40 +08:00
2026-11-16 15:31:53 +08:00
2026-10-26 23:41:35 +08:00
2026-11-19 14:02:17 +08:00
2026-10-31 09:43:07 +08:00
2026-11-06 15:02:53 +08:00
2026-11-01 14:48:19 +08:00
2026-10-15 23:08:01 +08:00
2026-11-11 23:09:15 +08:00
2026-11-18 22:37:50 +08:00
2026-11-10 18:00:14 +08:00
2026-11-18 19:47:19 +08:00
2026-11-18 19:47:19 +08:00
2026-10-15 23:08:04 +08:00
2026-11-03 20:38:11 +08:00
2026-11-13 05:12:30 +08:00
2026-11-18 17:58:02 +08:00
2026-11-18 17:58:02 +08:00
2026-11-15 01:32:07 +08:00
2026-11-12 09:36:33 +08:00
2026-11-12 15:50:10 +08:00
2026-11-09 05:42:44 +08:00
2026-10-31 10:30:50 +08:00
2026-10-06 11:31:50 +08:00
2026-11-09 17:21:48 +08:00
2026-11-04 21:52:48 +08:00
2026-11-01 16:43:21 +08:00
gateway: a conversation too long for one member of a group goes on to a member with room for it, as before ( #700 : ynky007 — Kimi Code on DeepSeek V4.1 Flash through magpie showed a 176k context after updating to 0.1.768) — magpie still writes max_context_size = 1048576 for it into ~/.kimi-code/config.toml (checked in a temp HOME with the models.dev cache). 176k is Kimi Code's own: on a context overflow it takes floor(0.85 × the request's tokens) as the model's window for the session (observeContextOverflow, OVERFLOW_CONTEXT_SAFETY_RATIO, 2.1.1), so it was told a request of about 207k overflowed. Since 11a09d41 an overflow (a 400/413/422 saying so, which tooLongRe now knows in many more words) is not retryable and goes to the agent at once, and b3ab3e42 tells some unexplained failures as one; before, a 400 with "exceeded" failed over to the next member, which answered. That is right for other accounts of the same model, not for a group member of another model or vendor, whose window may be larger. Now an overflow goes on to the members left that are not the same provider and model and not known (windowOf) to be smaller than the request; nobody rests (Fail "overflow", shown as "too long for its model"), and if they fail on quota the agent is still told the overflow, to compact. With none left the agent is told at once, as now. TestOverflowGoesToAMemberWithRoom fails on the old code (400 context_length_exceeded, the second member never asked) and passes; it also checks a member known too small and a second key of the same model are not asked. go vet, builds (darwin, GOOS=linux, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass. Not tried with the reporter's providers: which member refused at ~207k is not known.
2026-10-03 23:44:06 +08:00
2026-10-13 16:17:05 +08:00
2026-11-02 20:50:46 +08:00
2026-10-17 11:54:56 +08:00
2026-11-16 07:19:18 +08:00
2026-11-18 14:32:44 +08:00
2026-10-27 00:25:18 +08:00
2026-10-09 14:16:53 +08:00
2026-11-09 16:28:02 +08:00
2026-11-02 21:52:57 +08:00
2026-10-15 01:56:35 +08:00
2026-10-28 08:23:31 +08:00
2026-11-09 11:37:06 +08:00
2026-11-07 00:42:21 +08:00
2026-11-07 00:42:21 +08:00
2026-11-03 14:16:20 +08:00
2026-11-01 03:45:10 +08:00
2026-11-14 05:51:42 +08:00
2026-11-16 06:01:50 +08:00
2026-10-17 11:54:56 +08:00
2026-11-14 05:51:42 +08:00
2026-11-06 17:25:04 +08:00
2026-11-14 19:46:12 +08:00
2026-10-16 02:43:02 +08:00
2026-10-24 22:20:26 +08:00
2026-11-15 08:45:42 +08:00
2026-10-23 18:02:59 +08:00
2026-11-02 07:20:01 +08:00
2026-11-16 16:24:38 +08:00
2026-11-17 20:18:41 +08:00
2026-10-30 14:08:22 +08:00
2026-10-30 14:08:22 +08:00
2026-11-04 16:59:02 +08:00
2026-10-19 22:17:39 +08:00
2026-11-03 02:27:57 +08:00
2026-10-16 20:11:34 +08:00
2026-11-14 02:14:31 +08:00
2026-11-15 21:26:33 +08:00
2026-11-10 18:04:25 +08:00
2026-11-07 15:27:29 +08:00
2026-11-19 17:25:39 +08:00
2026-11-01 06:38:01 +08:00
2026-10-11 01:37:18 +08:00
2026-11-10 20:16:44 +08:00
2026-10-23 16:57:33 +08:00
2026-11-09 05:42:44 +08:00
2026-11-02 12:03:24 +08:00
2026-10-29 15:19:30 +08:00
2026-10-09 05:32:36 +08:00
2026-11-05 01:46:28 +08:00
2026-10-31 22:21:29 +08:00
2026-10-31 09:34:29 +08:00
2026-11-17 00:39:50 +08:00
2026-10-29 18:17:55 +08:00
2026-10-10 10:22:59 +08:00
2026-11-13 15:31:06 +08:00
2026-11-02 07:40:21 +08:00
2026-11-01 07:33:46 +08:00
2026-10-28 04:32:30 +08:00
2026-11-04 01:27:06 +08:00
2026-10-23 16:57:33 +08:00
2026-10-15 11:12:15 +08:00
2026-11-03 07:15:52 +08:00
2026-10-29 22:54:06 +08:00
2026-11-02 18:32:47 +08:00
2026-10-28 16:06:07 +08:00
2026-11-08 15:11:41 +08:00
2026-11-01 06:21:39 +08:00
2026-10-29 18:34:21 +08:00
2026-10-13 01:26:54 +08:00
2026-10-28 04:34:45 +08:00
2026-11-03 13:50:05 +08:00
2026-10-17 18:38:09 +08:00
2026-10-16 18:13:15 +08:00
2026-11-10 10:01:59 +08:00
2026-10-30 15:53:22 +08:00
2026-10-19 22:27:07 +08:00
2026-10-17 23:10:59 +08:00
2026-11-10 17:42:14 +08:00
2026-10-13 17:40:47 +08:00
2026-11-12 12:50:57 +08:00
2026-11-12 12:50:57 +08:00
2026-10-10 04:14:30 +08:00
2026-11-10 12:34:14 +08:00
2026-11-15 06:40:19 +08:00
2026-11-15 06:40:19 +08:00
2026-11-14 08:34:50 +08:00
2026-11-09 12:42:35 +08:00
2026-11-03 13:34:35 +08:00
2026-11-19 22:42:27 +08:00
2026-11-19 22:42:27 +08:00
2026-11-13 19:16:22 +08:00
2026-11-03 13:34:35 +08:00
2026-11-19 18:40:18 +08:00
2026-10-28 14:55:20 +08:00
2026-11-06 13:42:40 +08:00
2026-11-19 22:42:27 +08:00
2026-10-17 18:19:51 +08:00
2026-10-15 11:12:15 +08:00
2026-11-11 10:15:40 +08:00
2026-11-13 19:36:33 +08:00
2026-11-04 16:45:47 +08:00
2026-11-04 16:45:47 +08:00
2026-10-27 02:26:27 +08:00
2026-11-06 09:59:13 +08:00
2026-11-18 11:08:46 +08:00
2026-11-18 11:08:46 +08:00
2026-11-03 07:43:18 +08:00
2026-10-29 18:29:55 +08:00
2026-11-01 07:06:19 +08:00
2026-11-11 14:50:03 +08:00
2026-10-19 23:19:24 +08:00
usage: quota cards draw what was left over time, against an even burn, and the tray card its cycle's line ( #651 , songlairui) — each reading magpie makes anyway of a subscription's windows (and of a plan bought with a key) is kept as a point in quota-history.json beside the config: provider, account, window, when read, percent left, the window's start and reset — no token, no prompt. A failed reading, one kept from before (As of), an unlimited window and a model family's aren't kept; Antigravity's pools are kept by pool. Within a cycle points are 5 minutes apart at least and a run of one figure is its two ends; a cycle ends where the window starts again (its reset passed, or moved further than the time between two readings, so a rolling window's isn't one). 45 days and 6000 points a window are kept. The Usage page's card has, under its meters, a line a window (several tiers of one account on one chart), broken at each reset, a dashed even burn from each window's start to its reset and an upright now line, with 2 days / Cycle (the account's longest current window, start to reset) in the app's segmented control, remembered, turning every card without moving the page. The tray's card has a thin line of its first window's current cycle. GET /v1/magpie/quotas/history (?days=, ?provider=, ?user=; local or LAN with the key, as /v1/magpie/quotas) and /api/usage/quotas/history serve it; /v1/magpie/quotas and magpie quota stay snapshots. Computers sharing usage (WebDAV/S3, Settings › Sync › usage) put their history beside their days, sealed, as <id>.magpie-quotas, and merge the others': the union by account, window and time, two points within 30 s the newer, nothing twice however often they sync; an older magpie never reads the file. TestQuotaHistoryRecords, TestQuotaHistoryCycles, TestMergeQuotaHistory, TestQuotasHistory and TestQuotaHistorySharedBetweenComputers cover recording, cycles, pruning, merge, the API and two computers on one WebDAV folder; quota-curve.test.cjs (WebKit, en/zh, light and dark) the curves, the toggle, no curve without readings, and the tray's line (Chromium doesn't start in this sandbox). go vet, builds (darwin, GOOS=linux, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass. Not tried with real accounts; pay-as-you-go balances aren't drawn.
2026-10-03 15:19:19 +08:00
2026-10-10 09:26:23 +08:00
2026-11-08 02:37:09 +08:00
2026-10-11 09:10:44 +08:00
2026-11-04 18:49:38 +08:00
2026-11-15 05:45:09 +08:00
quota: each subscription account, plan and key says when it last answered, and the latest is marked last ( #570 : quota --json / GET /v1/magpie/quotas 增加每个订阅、plan、key 最近一次应答请求的时间) — under routing Smart nobody is first for good, so a menu-bar widget had nothing to tell the one in use by: a Quota's asOf is when its reading was taken, accounts --json covers signed-in Codex and Claude accounts only, and /v1/magpie/route wants a session. Each Quota in magpie quota --json and GET /v1/magpie/quotas now has lastServedAt (RFC3339, left out when it hasn't answered) and last: true on the latest (each of a key's plan and balance, which are one key). The gateway notes each answer where servedCandidate counts it (provider.NoteServed): an account by its agent and user, a key by its provider and key id, matched to a card by its user, or by the key's name or mask, or, for a card with no user, by any of its provider's. It is kept in served.json beside providers.json, entries older than 30 days dropped, since magpie quota runs in a process of its own and computes the report itself (provider.QuotaReport) rather than asking the gateway: both read the file, so they say the same, and a restart keeps it. TestQuotasLastServedAt (gateway: a request answered by one key, its balance card has lastServedAt and last, the other key's neither) and TestQuotaJSONLastServedAt (the CLI's --json, fake CLIs and keychain on PATH) fail without the change; TestQuotasLastServed covers the matching (account by user, key by name and by mask, a card with no user, the tie, read back from the file alone). README tells the fields. go vet ./internal/..., go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build, go test -tags nogui -count=1 ./... under a temp HOME pass.
2026-10-02 22:16:17 +08:00
2026-11-17 17:40:23 +08:00
2026-11-17 17:40:23 +08:00
2026-11-07 19:45:30 +08:00
2026-11-07 19:45:30 +08:00
2026-10-12 03:23:27 +08:00
2026-11-10 00:58:01 +08:00
2026-11-06 10:44:24 +08:00
2026-11-20 11:40:19 +08:00
2026-11-14 23:50:45 +08:00
2026-11-16 16:02:54 +08:00
2026-11-16 16:02:54 +08:00
2026-11-03 05:10:38 +08:00
2026-11-11 20:16:49 +08:00
2026-11-14 05:51:42 +08:00
2026-11-01 07:06:20 +08:00
2026-11-14 05:51:42 +08:00
2026-10-13 00:08:23 +08:00
2026-10-13 06:43:50 +08:00
2026-10-13 06:43:50 +08:00
2026-11-18 21:30:25 +08:00
2026-10-10 13:29:45 +08:00
2026-10-27 11:26:54 +08:00
2026-10-11 05:10:50 +08:00
2026-11-01 06:38:01 +08:00
2026-10-21 05:57:34 +08:00
2026-11-18 21:30:25 +08:00
2026-10-14 09:38:12 +08:00
2026-10-21 19:17:09 +08:00
2026-10-31 11:23:53 +08:00
2026-10-31 11:48:21 +08:00
2026-10-09 11:56:10 +08:00
2026-10-30 01:54:40 +08:00
2026-10-30 01:54:40 +08:00
2026-10-09 11:09:22 +08:00
2026-11-10 19:00:46 +08:00
2026-11-12 01:01:32 +08:00
2026-11-06 19:50:18 +08:00
2026-11-02 04:38:57 +08:00
2026-10-12 22:42:46 +08:00
2026-10-15 23:08:05 +08:00
2026-10-29 18:31:42 +08:00
2026-11-05 18:31:16 +08:00
2026-11-14 06:54:01 +08:00
2026-10-13 15:06:20 +08:00
2026-11-15 06:09:25 +08:00
2026-11-01 04:51:17 +08:00
2026-10-22 22:53:47 +08:00
2026-11-06 17:25:04 +08:00
2026-11-15 12:14:48 +08:00
2026-11-18 05:27:43 +08:00
2026-11-18 05:27:43 +08:00
2026-11-13 16:10:47 +08:00
2026-11-10 13:20:49 +08:00
2026-10-17 23:11:00 +08:00
2026-10-11 13:35:56 +08:00
2026-11-01 22:23:51 +08:00
2026-11-16 17:58:15 +08:00
2026-11-04 22:27:11 +08:00
2026-11-19 17:26:38 +08:00
2026-11-16 17:58:15 +08:00
2026-11-15 09:38:24 +08:00
2026-10-07 02:14:29 +08:00
2026-10-15 01:54:28 +08:00
2026-10-10 03:55:45 +08:00
2026-11-12 13:07:24 +08:00
2026-10-10 03:55:45 +08:00
2026-11-08 19:10:30 +08:00
2026-11-12 13:58:49 +08:00
2026-10-30 13:50:53 +08:00
2026-10-28 00:27:02 +08:00
2026-10-27 15:53:54 +08:00
2026-10-10 03:55:45 +08:00
2026-11-12 01:01:32 +08:00
2026-11-07 21:23:43 +08:00
2026-10-22 02:12:22 +08:00
2026-11-19 17:28:26 +08:00
2026-10-10 09:26:23 +08:00
2026-10-28 00:37:04 +08:00
2026-11-20 15:28:24 +08:00
2026-10-15 02:36:26 +08:00
2026-10-10 15:08:14 +08:00
2026-10-10 03:55:45 +08:00
2026-11-19 14:02:17 +08:00
2026-11-19 14:02:17 +08:00
2026-10-27 16:05:23 +08:00
2026-11-05 10:52:06 +08:00
2026-11-12 13:07:24 +08:00
2026-11-13 15:32:20 +08:00
2026-11-10 22:37:48 +08:00
2026-11-06 21:32:55 +08:00
2026-11-15 05:45:09 +08:00
2026-11-05 12:37:30 +08:00
2026-11-14 18:47:33 +08:00
2026-11-19 10:26:23 +08:00
2026-11-08 03:13:15 +08:00
2026-11-10 22:20:17 +08:00
2026-11-12 12:28:56 +08:00
2026-10-29 17:02:24 +08:00
2026-11-14 18:47:33 +08:00
2026-11-09 18:19:02 +08:00
2026-11-09 18:19:02 +08:00
2026-10-19 19:05:30 +08:00
2026-10-07 03:00:47 +08:00
2026-11-07 04:03:01 +08:00
2026-11-07 19:45:30 +08:00
2026-11-03 16:05:53 +08:00
2026-11-16 17:58:15 +08:00
2026-11-06 05:53:50 +08:00
2026-10-08 07:12:44 +08:00
2026-11-07 19:45:30 +08:00
2026-10-21 07:32:11 +08:00
2026-11-05 03:37:20 +08:00
2026-10-21 04:16:25 +08:00
2026-10-17 23:11:01 +08:00
2026-11-15 09:38:24 +08:00
2026-11-02 21:52:57 +08:00
2026-11-06 17:22:52 +08:00
2026-10-03 22:45:42 +08:00
2026-10-30 21:25:32 +08:00
usage: a Codex call through the gateway that wrote to its upstream's cache is no longer listed a second time as a local session call (laowangba233 on #589 : 用量中的统计是不是重复了 … 为啥会一个是提供商的一个是本地会话的) — the Usage page drops a Codex rollout's call when it matches a gateway record by session, end time within 2s and equal tokens. Codex reads input_tokens_details.cache_write_tokens from a Responses reply and keeps it as cache_write_input_tokens; the gateway's rUsage read only cached_tokens, so for a call whose upstream told a write the record had CacheWrite 0 and the rollout didn't, the tokens never matched, and the call stayed listed under Local session beside its provider's row. Calls without a write matched, so only some calls were counted twice (Maru Code 92 calls plus 22 "本地会话" in the report). Also, sessions' spent took only the cache read out of Codex's input_tokens, which holds the write too, so such a call's write was counted twice in its own input. Now: the gateway reads cache_write_tokens (input = input_tokens - cached - written) and tells it to Codex when it translates a reply; spent takes the write out of the input as well; and the matcher compares a call's input plus cache writes, its output and its cache reads, so a record and a rollout that split the write differently — an older Codex without the field, or records already in usage.jsonl from before this change — still match, and the duplicates already on a user's page go too. The session caches' versions go up (sessions.json 11, calls-v4) so kept parses are read again, and older calls-v* folders are removed. Under a provider filter the provider ranking still lists the other providers, as it is a picker; the duplicates were what made it read as double counting. TestCodexCacheWriteMatchesGatewayCall (a Codex rollout and gateway records for two calls, one with a 9000-token cache write; with the rollout naming the write and the record not, both naming it, and an older Codex without it: two rows, no Local session row, the provider ranking maru-code alone, unfiltered and filtered to the provider, by QueryPage and LedgerOf; fails without the change with a third row from the log), TestCodexCacheWriteNotInInput and TestResponsesUsageCacheWrite (parse and round trip through what Codex is told) are new and fail without the change; TestCallsCodex's call with a write now expects input 200 (2500 - 2000 read - 300 written). go vet ./internal/..., go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build, go test -tags nogui -count=1 ./internal/... under a temp HOME pass (TestFXInState's known TempDir-cleanup flake aside, which passes alone).
2026-10-03 00:47:33 +08:00
2026-11-20 11:20:46 +08:00
2026-11-20 11:20:46 +08:00
2026-11-15 08:45:42 +08:00
2026-11-09 12:36:18 +08:00
2026-10-27 11:26:54 +08:00
2026-10-30 21:38:00 +08:00
2026-11-18 16:04:56 +08:00
2026-10-06 07:43:47 +08:00
2026-10-14 05:23:58 +08:00
2026-11-18 20:22:30 +08:00
2026-11-01 22:23:51 +08:00
2026-10-11 13:46:38 +08:00
2026-11-11 14:24:25 +08:00
2026-11-15 13:56:58 +08:00
2026-11-15 13:56:58 +08:00
2026-11-18 21:20:35 +08:00
2026-10-25 15:02:12 +08:00
2026-10-14 20:49:20 +08:00
2026-10-31 14:30:15 +08:00
2026-10-29 05:13:53 +08:00
2026-11-19 19:38:31 +08:00
2026-11-20 14:19:29 +08:00
2026-11-01 07:06:19 +08:00
2026-10-25 15:02:12 +08:00
2026-10-30 19:24:31 +08:00
2026-10-30 19:24:31 +08:00
2026-11-14 19:44:23 +08:00
2026-11-01 07:06:19 +08:00
2026-11-11 13:01:11 +08:00
2026-11-11 13:01:11 +08:00
2026-10-12 22:02:03 +08:00
2026-11-15 12:14:48 +08:00
2026-10-23 00:18:58 +08:00
2026-11-13 17:45:01 +08:00
2026-11-20 16:12:11 +08:00
2026-11-06 10:08:35 +08:00
2026-11-06 10:08:35 +08:00
2026-11-15 06:09:25 +08:00
2026-11-04 20:00:38 +08:00
2026-10-27 03:02:50 +08:00
2026-10-15 09:09:15 +08:00
2026-10-15 09:09:15 +08:00
2026-10-17 23:11:00 +08:00
2026-11-03 11:06:59 +08:00
2026-11-07 04:03:01 +08:00
2026-10-15 00:17:23 +08:00
2026-10-31 09:35:51 +08:00
2026-11-20 14:19:29 +08:00
2026-10-20 00:18:51 +08:00
2026-11-03 02:25:23 +08:00
2026-10-30 10:18:47 +08:00
gateway: a rule naming a model that a group in the group has too sends the turn to it ( #625 , Koohoko: a group of group/x (Opus, Astra) and Astra on its own, a rule for Astra came out unready — "没有可用的账号或 Key" — and Opus answered; the same with Sol on 0.1.697) — a model met again is kept where it was first (provider's membersIn), so with the group listed ahead of it Astra was a member of that group only, and a rule naming Astra found no member of its own: unready, sent on to the rules after it (the group, Opus first). named counts as the rule's member a model a group in the group has where the group names it too, in ruleMembers, the rules after it (Then) and the member contexts a rule's tokens go by; Unready is the one going first not being the rule's own, and Instead the rule after it whose member it is. And with the rule's model going first, the rules of the group it is kept in (nestedRules) no longer pick another over it (modelRuled). TestRuleNamesAModelAGroupInItHasToo fails without either part (unready, from the group's first). go vet ./internal/..., go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build, go test -tags nogui -count=1 ./... under a temp HOME pass (timeouts under full-suite load pass alone).
2026-10-03 11:14:56 +08:00
2026-10-16 00:46:26 +08:00
2026-10-15 23:08:02 +08:00
2026-11-10 18:48:13 +08:00
2026-11-04 19:24:12 +08:00
2026-10-25 13:32:12 +08:00
2026-10-11 21:24:10 +08:00
2026-10-10 13:51:09 +08:00
2026-10-16 00:46:27 +08:00
2026-11-10 22:57:20 +08:00
2026-11-15 16:45:06 +08:00
2026-10-12 22:42:47 +08:00
2026-10-14 22:24:11 +08:00
2026-11-10 18:57:16 +08:00
2026-10-08 02:15:01 +08:00
2026-10-08 07:12:44 +08:00
2026-11-15 06:40:19 +08:00
2026-10-25 12:06:13 +08:00
2026-10-11 21:17:02 +08:00
2026-10-09 10:34:03 +08:00
2026-10-11 21:17:02 +08:00
2026-10-31 10:33:50 +08:00
2026-11-07 21:21:48 +08:00
2026-11-10 15:53:24 +08:00
2026-10-15 23:08:00 +08:00
2026-10-30 14:56:01 +08:00
2026-11-10 16:47:33 +08:00
2026-11-05 12:40:35 +08:00
2026-11-06 00:31:14 +08:00
2026-11-01 13:43:35 +08:00
2026-11-14 05:51:42 +08:00
2026-10-30 14:56:00 +08:00
gateway: a custom tool's call magpie hands Codex has a ctc_ id, and a magpie model or group on OpenAI's API gets call ids OpenAI takes (Lullaby on Discord: Invalid 'input[155].id': 'fc_18da5b9a10256a3e00000011'. Expected an ID that begins with 'tsc'. 这个问题貌似还是没有修复, then "Expected an ID that begins with 'ctc'", auto-compaction failing with it) — two causes. A vendor's apply_patch, translated to Codex's custom_tool_call, was given an fc_ id as a function call is (itemPrefix), and OpenAI turns away a custom_tool_call whose id isn't a ctc_ one. And the tsc_ rename ( 1a9c4ca6) ran only for Codex's own models: a magpie model or routing group relayed to OpenAI's API on a key (passthrough) sent the session's fc_ ids as they were. The id kinds are now one table, openaiItemPrefix (tool_search_call tsc_, custom_tool_call ctc_, the two OpenAI's errors name): calls are minted with them in the stream and the rendered reply, and callItemIDs (was searchCallIDs) renames fc_X to tsc_X / ctc_X before Codex's own /responses and /responses/compact and before a passthrough to an openai.com host, call_ids and the rest of the body byte for byte. A ChatGPT account's request keeps no ids (provider.codexInput), so it is left alone. TestCustomToolCallHasCtcID, TestMagpieModelOpenAICallIDs (a fake OpenAI behind the provider's proxy answering the same 400s, direct and through a group) and TestCodexOwnModelCustomCallIDs (turn and compaction) fail without the change; TestCustomCallIDsUntouched keeps a clean request byte for byte. go vet ./internal/..., go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build, go test -tags nogui -count=1 ./... under a temp HOME pass.
2026-10-03 10:28:46 +08:00
2026-11-03 11:23:37 +08:00
2026-10-10 18:31:32 +08:00
2026-10-24 15:31:05 +08:00
2026-10-24 15:31:05 +08:00
2026-11-03 15:59:14 +08:00
2026-11-06 00:31:14 +08:00
2026-11-15 01:08:19 +08:00
2026-11-07 04:03:01 +08:00
2026-10-15 23:08:00 +08:00
2026-10-15 23:08:00 +08:00
2026-10-13 02:30:53 +08:00
2026-11-05 11:44:31 +08:00
2026-11-14 14:02:49 +08:00
2026-10-21 18:40:51 +08:00
2026-11-03 11:23:37 +08:00
2026-11-14 19:44:23 +08:00
search: a Kimi Code plan searches the web for its own models with its own search service, before the Codex account or whatever magpie picks, and Settings may name it to search for every model (Discord: on Claude Code with the Kimi Code plan, why does web search use Codex's model?) — kimi-cli's SearchWeb (kimi_cli/tools/web/search.py, 1.52.0) POSTs {text_query, limit, enable_page_crawling, timeout_seconds:30} to the plan's search_url, which auth/platforms.py makes <base_url>/search ( https://api.kimi.com/coding/v1/search ) with the same key as the models (setup.py and oauth.py write services.moonshot_search with the plan's key or sign-in), User-Agent KimiCLI/<ver> and X-Msh-Tool-Call-Id, and reads search_results [{site_name,title,url,snippet,content,date}]. provider.KimiCodeSearch finds a plan by api.kimi.com/api.kimi.ai /coding or its kimi-code preset; magpie asks it the same way (no model asked, pages as the search APIs' are, date as page_age). A model served by a plan is given magpie's web_search even with nothing else set up, and its searches go to the plan first; failing, magpie's pick, then the search APIs, as before. For other providers' models a plan is never picked automatically (it would spend the plan's allowance and change today's searcher): Settings › 联网搜索 offers it once, by its web search with no model, and says it searches for its own models first. TestKimiCodePlanSearchesForItsModels fails on the old code (no search tool with nothing else set up; with a searching API and a search API, the old code asked them and never Kimi) and passes; TestKimiCodePlanNamedToSearch and TestKimiCodeSearchAddress cover naming it and the address; searcher-pick.test.cjs (webkit, en/zh) the picker. Against the real account's key from a temp copy of the config: api.kimi.com/coding/v1/search exists (404 on a wrong path, 400 on a bad body) but answers 403 access_terminated_error for search and chat alike, as that Kimi Code subscription has lapsed, so a real search result wasn't seen. go vet, builds (darwin, GOOS=linux, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass.
2026-10-04 02:00:32 +08:00
2026-11-14 14:02:49 +08:00
2026-10-29 03:17:58 +08:00
2026-10-15 23:08:00 +08:00
2026-11-16 07:19:18 +08:00
2026-11-07 04:03:01 +08:00
2026-10-21 08:40:49 +08:00
2026-10-31 11:25:39 +08:00
2026-11-14 05:51:42 +08:00
2026-11-13 05:12:30 +08:00
2026-10-10 18:31:32 +08:00
2026-10-30 21:38:00 +08:00
2026-11-04 08:37:21 +08:00
2026-10-22 03:18:11 +08:00
2026-11-18 14:32:44 +08:00
2026-10-14 08:24:03 +08:00
2026-10-11 02:01:32 +08:00
2026-11-13 04:26:25 +08:00
2026-11-07 21:21:48 +08:00
2026-10-17 23:11:00 +08:00
2026-10-31 02:04:22 +08:00
gateway: a Remote magpie searches the web for its own models, and Settings may name it to search with (Player on Discord) — Claude Code's WebSearch on remoteMagpie/glm-5.3 was judged unsearchable here (its host is no search vendor's) and went to this magpie's searcher, another model, and Settings' Searcher never listed the remote's models. Its list now tells another magpie, of each model, how it searches (web_search: native, by the vendor, or magpie, with its own searcher); a web search offered to such a model goes on to it as offered (Chat's as web_search_options), and the remote magpie, with the models it searches natively for, is a searcher. A search run for another model is marked (X-Magpie-Searching) and the other magpie then lets only the model search, so two magpies naming each other never ask each other in turn. TestRemoteMagpieSearches fails without the change; go vet, go build (darwin, GOOS=linux nogui, GOOS=windows) and go test -tags nogui ./... under a temp HOME pass (4 load-timeouts in agent/gui/provider pass alone).
2026-10-05 16:41:41 +08:00
2026-11-13 05:12:30 +08:00
2026-11-15 01:08:19 +08:00
2026-11-04 20:55:42 +08:00
2026-11-06 00:31:14 +08:00
2026-11-07 10:03:52 +08:00
2026-10-31 23:35:27 +08:00
2026-11-01 14:43:18 +08:00
2026-11-10 16:47:33 +08:00
2026-11-01 14:43:07 +08:00
2026-10-31 10:32:00 +08:00
2026-11-06 00:31:14 +08:00
2026-10-11 22:45:11 +08:00
2026-11-18 20:27:20 +08:00
2026-11-12 22:26:45 +08:00
2026-11-19 14:45:14 +08:00
2026-10-11 20:58:56 +08:00
2026-11-19 16:20:34 +08:00
2026-11-19 16:20:34 +08:00
2026-11-10 22:57:20 +08:00
2026-10-25 00:39:25 +08:00
2026-11-14 05:51:42 +08:00
2026-10-10 09:26:23 +08:00
2026-11-05 14:47:18 +08:00
2026-11-10 20:22:17 +08:00
2026-11-10 20:22:17 +08:00
2026-11-01 01:59:59 +08:00
2026-11-16 07:19:18 +08:00
2026-11-17 17:33:23 +08:00
2026-10-15 23:08:01 +08:00
2026-11-03 17:01:51 +08:00
2026-11-07 04:03:01 +08:00
2026-10-13 16:40:24 +08:00
2026-11-14 14:02:49 +08:00
2026-10-12 23:04:29 +08:00
2026-11-10 01:44:24 +08:00
2026-11-10 01:44:24 +08:00
2026-10-12 22:16:17 +08:00
2026-10-23 18:15:15 +08:00
2026-10-29 10:43:59 +08:00
2026-10-15 05:17:38 +08:00
2026-10-28 00:37:04 +08:00
2026-11-04 02:11:09 +08:00
2026-11-19 17:34:30 +08:00
2026-11-11 15:03:38 +08:00
2026-10-03 22:45:42 +08:00
2026-11-08 11:03:09 +08:00
2026-10-31 21:58:06 +08:00
2026-11-18 19:59:27 +08:00
2026-11-17 20:18:41 +08:00
2026-11-18 19:59:27 +08:00
2026-10-29 19:25:40 +08:00
2026-11-14 05:51:42 +08:00
2026-10-27 01:37:38 +08:00
2026-11-18 21:30:25 +08:00
2026-10-17 23:11:01 +08:00
2026-11-15 12:14:48 +08:00
2026-11-05 18:36:31 +08:00
2026-11-05 18:36:31 +08:00
2026-10-20 20:32:05 +08:00
2026-11-10 22:53:58 +08:00
2026-10-14 13:26:18 +08:00
2026-11-20 16:36:26 +08:00
2026-10-13 10:29:31 +08:00
2026-11-05 00:24:13 +08:00
2026-11-05 00:24:13 +08:00
2026-11-01 04:51:17 +08:00
2026-10-31 09:34:29 +08:00
2026-10-27 16:05:50 +08:00
2026-10-06 07:43:47 +08:00
2026-11-02 11:15:43 +08:00
2026-10-13 14:48:49 +08:00
2026-11-08 11:03:09 +08:00
2026-11-04 22:17:49 +08:00
2026-11-11 10:37:13 +08:00
2026-11-11 10:37:13 +08:00
2026-10-14 13:26:18 +08:00
2026-10-30 15:53:22 +08:00
2026-10-17 11:54:56 +08:00
2026-11-10 00:58:01 +08:00
2026-10-13 18:11:22 +08:00
2026-11-14 05:51:42 +08:00
2026-10-13 10:06:12 +08:00
2026-11-17 22:56:55 +08:00
2026-10-13 09:52:14 +08:00
2026-10-04 22:36:56 +08:00
2026-11-08 01:07:44 +08:00
2026-10-14 20:21:12 +08:00
2026-11-02 09:12:14 +08:00
2026-11-03 21:20:26 +08:00
2026-11-14 23:50:45 +08:00
2026-11-14 23:50:45 +08:00
2026-10-22 04:54:04 +08:00
2026-10-05 21:34:38 +08:00
2026-10-22 04:54:05 +08:00
2026-11-02 05:38:11 +08:00
2026-10-05 22:54:21 +08:00
2026-10-17 18:41:43 +08:00
2026-11-05 18:31:17 +08:00
2026-11-02 05:38:11 +08:00
2026-11-01 15:08:24 +08:00
2026-10-31 09:33:09 +08:00
2026-10-13 01:26:54 +08:00
2026-11-14 05:51:42 +08:00
2026-11-06 10:04:22 +08:00
2026-11-02 17:03:34 +08:00
2026-11-10 12:34:14 +08:00
2026-10-10 04:19:56 +08:00
2026-10-30 14:20:39 +08:00
2026-11-14 05:51:42 +08:00
2026-10-10 17:58:36 +08:00
2026-11-10 12:34:14 +08:00
2026-11-10 04:58:30 +08:00
gateway: a reply that only thought and then failed is the failure, not an empty 200 — a client asking for the whole reply (not a stream) got 200 with null content and zero usage when the provider thought, then failed with nothing said: the collector's error counted only when no parts came at all, and thinking is a part. Cursor's plugin ends such a turn with "an empty reply" (composer-2.5 with no system prompt, 1 in ~5 on a 45k-token prompt): streamed, the client saw that error; whole, an empty answer it didn't ask again. Now an error with nothing but thinking before it is answered as the error (502, or its own status), in translated replies and Claude Code's. TestThinkingThenErrorIsAnError fails on the old code. Against the real Cursor account in a sandbox: 8 whole requests (chat and Messages) to cursor/composer-2.5, the one that only thought answers 502 "Cursor: an empty reply", the rest as before. Also found while testing Cursor's overflow: a 303,700-token prompt to composer-2.5 / gpt-5.2 (200k) comes back 400 context_length_exceeded after one try (Cursor answers 502 "No system prompt found"); 34k–52k prompts answer with usage. go vet, builds (darwin, GOOS=linux -tags nogui, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass.
2026-10-03 18:01:00 +08:00
2026-11-12 17:37:04 +08:00
2026-11-01 04:51:17 +08:00
2026-11-14 06:54:01 +08:00
2026-11-04 18:37:43 +08:00
2026-11-09 17:24:09 +08:00
2026-11-09 17:24:09 +08:00
2026-10-08 13:47:13 +08:00
2026-10-05 22:46:35 +08:00
2026-10-24 22:20:26 +08:00
2026-10-30 13:57:36 +08:00
2026-11-14 00:14:26 +08:00
2026-10-26 16:13:27 +08:00
2026-11-14 18:47:33 +08:00
2026-10-05 00:14:23 +08:00
2026-10-28 20:11:57 +08:00
2026-10-14 13:36:03 +08:00
2026-11-10 23:05:47 +08:00
2026-10-30 14:17:26 +08:00
2026-10-30 14:17:26 +08:00
2026-11-07 21:55:41 +08:00
2026-11-13 19:36:33 +08:00
2026-11-05 03:41:57 +08:00
2026-11-14 06:54:01 +08:00
2026-11-17 20:53:21 +08:00
2026-11-19 00:57:11 +08:00
2026-11-01 06:21:39 +08:00
gateway: a model that won't be made to call a tool is asked again with the call left to it ( #668 : OmO's first turn forces its todo tool, and Claude Opus 5.5 answers 400) — the issue reads the 400 as Anthropic wanting additionalProperties:false on every object of a named tool's schema; it doesn't. Against Anthropic's API (the owner's Claude subscription) the same two tools, schemas without additionalProperties, with tool_choice {type:"tool"} are taken by claude-sonnet-4-5, claude-opus-4-8, claude-opus-5 and claude-sonnet-5, and refused by claude-opus-5-5, claude-sonnet-5-5 and claude-fable-5-1 with tool_choice: type "tool" and "any" are not supported for this model., with or without additionalProperties:false on every object; OpenRouter (Anthropic, Bedrock, Azure, Claude Platform on AWS) answers the same. Anthropic says "tools.N.custom: For 'object' type, 'additionalProperties' must be explicitly set to false" only of a tool sent with strict:true, auto or forced alike, and buildAnthropic sends no strict; the reporter's own capture shows none either, so it is the vendor behind their Claude Pro endpoint holding the forced tool to strict mode. Either way the 400 came from forcing the call on a model that can't be forced, and it was relayed as is, with no fallback. forwardTranslated now asks again when a forced tool_choice (a named tool, or required) is turned away with either error: the call is left to the model (auto), only the named tool offered, as the Claude subscription's bridge does, and the provider isn't sent a forced choice for that model again (unfit, as reasoning-off refusals are). Schemas are unchanged. TestForcedToolChoiceRefused (Chat to an Anthropic-only provider, with each error) fails on the old code. Through a sandbox gateway on an Anthropic-only copy of the owner's OpenRouter provider, a Chat request forcing todo to anthropic/claude-opus-5.5 answered 400 with the old build and a todo call with this one, twice. go vet ./internal/..., builds (darwin, GOOS=linux -tags nogui, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass but TestProvidersAnswerWhileListsComeIn, a timing test that passes alone. A Chat client on a Chat endpoint (passthrough, e.g. OpenRouter's chat) is not changed.
2026-10-03 19:04:19 +08:00
2026-10-17 23:11:00 +08:00
2026-11-09 18:19:02 +08:00
2026-11-15 03:09:03 +08:00
2026-10-14 16:42:47 +08:00
2026-11-13 14:55:15 +08:00
2026-11-19 00:57:11 +08:00
2026-11-19 00:57:11 +08:00
2026-11-18 22:02:34 +08:00
2026-11-06 17:25:04 +08:00
2026-11-06 10:44:24 +08:00
2026-11-06 17:25:04 +08:00
2026-11-06 17:25:04 +08:00
2026-10-17 20:33:28 +08:00
2026-10-16 00:16:43 +08:00
2026-11-18 14:32:44 +08:00
2026-11-18 14:32:44 +08:00
2026-11-18 14:32:44 +08:00
2026-10-08 20:31:01 +08:00
2026-11-14 07:53:44 +08:00
2026-10-13 14:14:59 +08:00
2026-11-14 05:51:42 +08:00
2026-11-05 14:47:18 +08:00
2026-10-03 16:45:48 +08:00
2026-10-14 14:03:38 +08:00
2026-10-21 07:32:11 +08:00
2026-10-19 23:19:24 +08:00
2026-11-08 04:06:22 +08:00
2026-10-13 17:59:36 +08:00
2026-11-20 16:01:53 +08:00
2026-11-10 07:37:34 +08:00
2026-10-14 09:19:16 +08:00
2026-11-18 19:59:27 +08:00
2026-10-31 09:34:29 +08:00
2026-10-27 00:28:06 +08:00
2026-11-15 12:14:48 +08:00
2026-10-10 15:08:14 +08:00
2026-10-25 14:00:59 +08:00
2026-11-13 10:47:17 +08:00
2026-11-18 21:30:25 +08:00
2026-11-10 18:57:44 +08:00
2026-10-14 04:37:07 +08:00
2026-11-02 15:19:38 +08:00
2026-11-14 14:02:49 +08:00
2026-10-24 20:11:06 +08:00
2026-11-10 12:34:14 +08:00
2026-10-10 05:46:48 +08:00
2026-11-17 22:00:51 +08:00
2026-10-28 16:53:54 +08:00
2026-10-31 02:56:49 +08:00
2026-11-10 10:03:49 +08:00
2026-10-31 00:44:59 +08:00
2026-10-13 07:30:06 +08:00
2026-11-03 13:36:52 +08:00
2026-11-11 14:24:25 +08:00
2026-11-03 13:36:52 +08:00
2026-11-05 01:20:51 +08:00
2026-11-15 00:57:39 +08:00
2026-11-01 07:06:19 +08:00
2026-10-21 04:16:28 +08:00
2026-11-06 09:17:10 +08:00
2026-11-14 10:22:25 +08:00
2026-11-14 10:22:25 +08:00
2026-10-12 03:28:16 +08:00
2026-11-08 05:56:59 +08:00
2026-11-07 22:18:28 +08:00
2026-10-19 08:00:04 +08:00
2026-10-28 18:39:29 +08:00
2026-11-20 15:28:24 +08:00
2026-11-20 15:28:24 +08:00
2026-10-14 16:23:26 +08:00
2026-11-18 23:06:38 +08:00
2026-11-11 10:10:12 +08:00
2026-11-18 23:06:38 +08:00
2026-10-19 07:38:46 +08:00
2026-11-11 09:53:25 +08:00
2026-11-14 05:51:42 +08:00
2026-11-03 19:41:02 +08:00
2026-10-16 21:59:33 +08:00
2026-11-12 22:40:15 +08:00
2026-11-13 13:02:39 +08:00
2026-11-07 10:03:52 +08:00
2026-11-07 10:03:52 +08:00
2026-10-16 15:14:48 +08:00
2026-11-13 13:02:39 +08:00
2026-11-07 10:03:52 +08:00
2026-11-12 22:40:15 +08:00
2026-11-10 17:35:15 +08:00
2026-11-10 17:35:15 +08:00
2026-11-07 10:03:52 +08:00
2026-11-07 07:15:40 +08:00
2026-11-13 18:50:25 +08:00
2026-11-07 17:44:31 +08:00
2026-11-07 17:44:31 +08:00
2026-11-03 11:25:42 +08:00
2026-10-14 21:11:42 +08:00
2026-11-03 20:38:11 +08:00
2026-10-17 23:11:01 +08:00
2026-11-20 15:28:24 +08:00
2026-11-11 03:54:21 +08:00
2026-11-05 11:42:53 +08:00
2026-11-03 02:40:27 +08:00
2026-11-09 21:51:53 +08:00
2026-11-18 19:59:27 +08:00
2026-11-13 23:02:39 +08:00
2026-11-03 18:34:19 +08:00
2026-11-11 19:12:34 +08:00
2026-11-14 05:51:42 +08:00
2026-10-29 04:56:46 +08:00
2026-11-10 12:34:14 +08:00
2026-10-29 22:54:06 +08:00
2026-11-05 18:31:17 +08:00
2026-10-17 23:11:01 +08:00
2026-11-20 16:01:53 +08:00
vision: while a model that sees describes images, agents are told every model takes them (Discord, Fate: with Settings › Vision set, a text-only model in Codex still said it "does not support image input") — the gateway already described an image for a text-only model on every wire format, but the agents were told the model was text-only (Codex input_modalities ["text"], opencode modalities, dsh/omp input, droid NoImageSupport, cline/zed/qoder/workbuddy flags…), so they turned the image away before magpie was asked. provider.Described, set by the gateway to whether seer() finds a describer (Vision names one, or Automatic finds a model that sees; not with Vision off), makes magpieModels (every agent's model file) and codexListed (the ChatGPT backend's /models list and its ETag) say images for every model; Vision changed in Settings rewrites the agents' lists (catalog.Touched). TestDescribedModelsTakeImagesInAgentsLists (Codex list, input_modalities, tag) and TestDescribedModelTakesImages (agent files) fail on the old code and pass; TestDshModelLimits and TestMiniMaxCode turn Vision off to keep testing a text-only model as such. go vet, builds (darwin, GOOS=linux, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass. Not tried in the Codex App with a real account.
2026-10-03 15:25:43 +08:00
2026-10-29 22:40:31 +08:00
2026-11-04 07:57:43 +08:00
2026-11-04 07:57:43 +08:00
2026-11-04 07:57:43 +08:00
2026-11-04 07:57:43 +08:00
2026-10-12 00:01:28 +08:00
2026-10-31 02:28:18 +08:00
2026-11-18 14:32:44 +08:00
2026-10-31 02:28:18 +08:00
2026-10-08 19:08:09 +08:00
2026-10-29 17:23:24 +08:00
2026-11-14 16:55:08 +08:00
2026-10-31 02:28:18 +08:00
2026-10-08 19:08:09 +08:00
2026-10-17 20:19:07 +08:00
2026-11-18 20:27:20 +08:00
2026-10-08 18:15:54 +08:00
2026-11-06 10:17:08 +08:00
2026-11-02 04:04:47 +08:00
2026-11-14 19:44:23 +08:00
2026-10-29 01:14:42 +08:00
2026-11-03 02:27:57 +08:00
2026-11-14 05:51:42 +08:00
2026-11-04 17:09:59 +08:00
2026-11-05 13:27:32 +08:00
2026-10-15 09:09:15 +08:00
2026-10-15 09:09:15 +08:00
2026-10-24 17:38:26 +08:00
2026-11-01 09:53:50 +08:00
2026-11-03 07:43:18 +08:00
2026-11-07 09:15:16 +08:00
2026-10-31 13:13:57 +08:00
2026-11-19 14:45:14 +08:00
2026-11-03 02:25:23 +08:00
2026-11-03 02:25:23 +08:00
2026-11-13 22:49:39 +08:00
2026-11-04 20:00:38 +08:00
2026-11-12 22:14:40 +08:00
2026-10-15 05:39:01 +08:00
2026-10-11 10:17:16 +08:00
2026-11-05 18:31:17 +08:00
2026-11-10 12:34:14 +08:00
2026-11-06 04:09:30 +08:00
2026-11-13 18:17:36 +08:00
2026-11-13 18:17:36 +08:00
2026-10-28 16:52:55 +08:00
2026-11-14 05:51:42 +08:00
2026-11-10 04:58:30 +08:00
2026-11-20 15:28:24 +08:00
2026-11-11 10:31:29 +08:00
2026-11-10 12:34:14 +08:00
2026-11-01 14:48:19 +08:00
2026-11-01 14:48:19 +08:00
2026-11-01 14:48:19 +08:00
2026-10-15 15:55:24 +08:00
2026-10-22 23:47:12 +08:00