yetone
72facf72e2
memory: a search or save can name its project, and every answer says whose and where (Norethcy on X, #6392 )
...
The memory tools had no target-project argument and no way to see the
caller context they resolved, so a scoped migration run from one project
couldn't keep memories for another or check where they went.
- memory_search and memory_save take `project`: a folder on this
computer (absolute, or relative to the caller's own folder), or the key
of a project memory knows (github.com/owner/repo, with or without
project:, or a project's one name). A project named goes with scope
project (a save's default then) or a search's all; global or agent with
a project is refused, and an unknown project says which ones memory
knows.
- Answers name what was used: a memory reads "this project (<key>)" and
"only for you (<agent>)", and a search ends "(looked in: everywhere,
project <key>, agent <id>)".
- New read-only memory_context: the agent the server takes the caller
for and how it was found (router _meta, magpie mcp memory's initialize,
key/User-Agent, the session's initialize), the project with its folder
and source, the scopes a search looks in and the server version, as
text and structuredContent. Given `project`, it shows that one.
- HTTP and stdio are the same server (magpie mcp memory relays), and
OwnMCPTools lists memory_context with the others.
Run (mote, -tags nogui unless noted):
- TestMemoryMCPProjectArgumentAndContext (new): folder, key and relative
folder; the caller's own project untouched; refusals; memory_context's
text and structuredContent; tools/list. Red with the project argument
ignored by hand.
- TestMemoryBridgeContextAndProject (new): the real gateway behind
magpie mcp memory over stdio, initialized as codex as in the report.
- go test ./internal/browsermcp ./internal/cli ./internal/library: ok;
go test -run 'Memory|OwnMCP|Hub|RootDirs|Tool' ./internal/gateway: ok.
- Windows (xiaomi-gpu, win-run): the new gateway, browsermcp and cli
tests ok (a test's own unquoted Windows path was fixed on the way).
- go vet darwin, linux nogui, windows for the four packages; gofmt.
Not tried: Codex desktop itself over /mcp/run/magpie-memory; the full
suite runs after the tag.
2026-11-13 12:29:04 +08:00
..
2026-11-10 16:47:33 +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-10 10:01:59 +08:00
2026-11-12 17:47:11 +08:00
2026-11-12 17:47:11 +08:00
2026-10-15 23:08:05 +08:00
2026-10-20 00:18:51 +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-12 18:58:25 +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-10 16:36:49 +08:00
2026-11-12 16:34:34 +08:00
2026-10-13 07:07:18 +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-17 23:10:59 +08:00
2026-10-09 22:14:45 +08:00
2026-11-10 12:34:14 +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-12 13:58:49 +08:00
2026-11-10 05:21:40 +08:00
2026-10-25 15:56:16 +08:00
2026-11-12 12:18:56 +08:00
2026-11-11 03:54:37 +08:00
2026-10-27 16:34:19 +08:00
2026-10-25 05:16:50 +08:00
2026-11-11 03:32:27 +08:00
2026-11-05 00:37:01 +08:00
2026-11-10 05:21:40 +08:00
2026-11-10 18:57:16 +08:00
2026-10-31 18:38:31 +08:00
2026-10-24 15:31:51 +08:00
2026-10-28 18:41:18 +08:00
2026-11-06 11:54:21 +08:00
2026-10-24 20:32:33 +08:00
2026-11-03 02:25:23 +08:00
2026-10-24 21:01:18 +08:00
2026-11-02 16:21:58 +08:00
2026-11-01 04:51:17 +08:00
2026-11-03 02:25:23 +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-10-06 01:09:29 +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-10 22:35:57 +08:00
2026-11-03 13:23:49 +08:00
2026-11-10 22:35:57 +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-10-29 22:19:49 +08:00
2026-10-13 16:55:27 +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-08 20:53:19 +08:00
2026-10-28 03:14:05 +08:00
2026-11-10 12:34:14 +08:00
2026-11-01 10:22:57 +08:00
2026-10-17 23:11:01 +08:00
2026-11-10 12:34:14 +08:00
2026-11-08 03:10:47 +08:00
2026-11-05 03:07:43 +08:00
2026-11-10 12:34:14 +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-12 22:26:45 +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-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-10 18:04:25 +08:00
2026-11-12 17:37:42 +08:00
2026-11-12 17:37:42 +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-10-31 09:33:09 +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-10-28 20:24:00 +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-10-17 04:07:25 +08:00
2026-11-12 14:17:12 +08:00
2026-11-12 08:30:48 +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-05 18:31:16 +08:00
2026-11-12 21:51:07 +08:00
2026-11-12 21:51:07 +08:00
2026-11-01 19:02:59 +08:00
2026-11-03 07:43:18 +08:00
2026-10-29 23:36:58 +08:00
2026-10-29 23:36:58 +08:00
2026-10-17 22:45:57 +08:00
2026-11-02 05:38:10 +08:00
2026-11-02 07:40:21 +08:00
2026-10-31 16:38:58 +08:00
2026-11-10 12:34:14 +08:00
2026-10-15 01:22:13 +08:00
2026-10-26 01:59:38 +08:00
2026-10-07 03:00:47 +08:00
2026-11-03 17:36:51 +08:00
2026-11-05 18:31:17 +08:00
2026-10-26 02:21:36 +08:00
2026-11-11 19:12:34 +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-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-11 20:57:10 +08:00
2026-11-11 20:57:10 +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-01 15:25:56 +08:00
2026-10-14 09:32:21 +08:00
2026-10-26 01:59:38 +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-10-09 13:45:42 +08:00
2026-10-09 13:45:42 +08:00
2026-10-08 06:20:03 +08:00
2026-11-02 00:35:21 +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-12 16:25:28 +08:00
2026-11-12 16:25:28 +08:00
2026-11-08 02:10:17 +08:00
2026-11-04 00:14:37 +08:00
2026-10-26 01:59: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-07 23:25:10 +08:00
2026-11-12 16:25:28 +08:00
2026-10-15 23:08:03 +08:00
2026-11-05 00:57:55 +08:00
2026-11-05 00:57:55 +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-10-27 11:26:54 +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-10 12:34:14 +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-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-03 02:27:57 +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-10-16 02:51:37 +08:00
2026-11-12 12:45:39 +08:00
2026-10-05 11:52:23 +08:00
2026-11-12 16:25:28 +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-11 11:41:40 +08:00
2026-11-07 11:52:30 +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-03 07:43:18 +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-07 15:17:47 +08:00
2026-11-02 00:35:21 +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-11 14:08:18 +08:00
2026-11-12 12:45:39 +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-05 01:37: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-10-14 14:47:36 +08:00
2026-11-12 23:17:51 +08:00
2026-10-04 23:30:56 +08:00
2026-11-12 23:17:51 +08:00
2026-11-12 23:17:51 +08:00
2026-11-01 14:59:44 +08:00
2026-10-13 17:02:05 +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-10-23 20:11:17 +08:00
2026-11-09 18:19:02 +08:00
2026-11-13 10:47:17 +08:00
2026-11-12 11:55:26 +08:00
2026-10-30 04:48:17 +08:00
2026-11-06 10:44:24 +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-05 18:28:38 +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-12 16:37:49 +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-10 22:57:20 +08:00
2026-10-23 20:11:17 +08:00
2026-11-12 16:54:10 +08:00
2026-11-12 16:54:10 +08:00
2026-10-07 05:59:51 +08:00
2026-10-14 05:37:00 +08:00
2026-11-10 12:34:14 +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-08 02:16:48 +08:00
2026-11-08 02:16:48 +08:00
2026-11-10 00:58:01 +08:00
2026-10-11 19:38:33 +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-10-28 20:11:57 +08:00
2026-11-10 00:58:01 +08:00
2026-10-08 19:14:17 +08:00
2026-11-05 13:27:32 +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-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-01 22:44:23 +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-10-15 23:08:03 +08:00
2026-10-23 18:15:15 +08:00
2026-10-29 17:13:05 +08:00
2026-11-06 19:50:18 +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-10-13 16:49:29 +08:00
2026-11-03 15:59:14 +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-09 18:57:29 +08:00
2026-11-09 18:57:29 +08:00
2026-11-10 07:37:34 +08:00
2026-10-25 00:47:16 +08:00
2026-11-05 18:28:38 +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-10 15:24:40 +08:00
2026-11-11 17:59:36 +08:00
2026-10-10 14:14:47 +08:00
2026-10-27 15:30:31 +08:00
2026-11-11 17:08:15 +08:00
2026-11-02 15:15:21 +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-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-02 04:17:24 +08:00
2026-10-29 01:19:08 +08:00
2026-11-08 17:52:09 +08:00
2026-11-01 12:02:09 +08:00
2026-11-12 18:02:08 +08:00
2026-11-12 18:02:08 +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-06 13:42:40 +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-13 10:40:26 +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-12 16:01:00 +08:00
2026-11-10 20:06:21 +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-10 12:34:14 +08:00
2026-10-14 05:22:39 +08:00
2026-10-31 09:58:04 +08:00
2026-11-09 13:05:00 +08:00
2026-10-29 15:10:34 +08:00
2026-11-11 17:54:42 +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-06 10:44:24 +08:00
2026-11-12 16:34:34 +08:00
2026-11-08 00:45:30 +08:00
2026-11-08 00:45:30 +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-10 10:01:59 +08:00
2026-10-27 16:17:53 +08:00
2026-11-06 05:42:22 +08:00
2026-11-06 09:55:19 +08:00
2026-10-15 05:39:01 +08:00
2026-10-16 00:46:26 +08:00
2026-11-12 13:14:43 +08:00
2026-11-10 04:58:30 +08:00
2026-11-02 14:04:56 +08:00
2026-11-13 05:12:30 +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-10-14 15:48:19 +08:00
2026-11-10 00:13:44 +08:00
2026-10-17 13:11:43 +08:00
2026-10-15 09:36:26 +08:00
2026-11-06 22:50:26 +08:00
2026-10-29 20:20:12 +08:00
2026-10-31 09:57:42 +08:00
2026-10-14 15:48:19 +08:00
2026-11-10 18:57:16 +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-12 22:27:39 +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-09 11:31:24 +08:00
2026-10-19 21:47:35 +08:00
2026-10-15 23:08:05 +08:00
2026-11-06 11:12:12 +08:00
2026-10-17 23:11:00 +08:00
2026-10-27 03:30:57 +08:00
2026-11-12 23:37:30 +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-10 11:05:59 +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
gateway: an effort raised mid-thread starts the thread again at it, only a lower one goes as an effort update (Lutra-Fs, #617 ) — the backend gives a configuration_update up a fraction of the reasoning the same effort at the top gets. Lutra-Fs measured it on chatgpt.com's Codex backend without magpie (gpt-6.1-sol: low / high / xhigh at the top 328 / 826 / 3350 reasoning tokens, low updated to xhigh 802); with the owner's real Codex Pro account, direct to the backend, one hard prompt, 2 samples each: low 410 / 669, xhigh 6214 / 14304, low updated to xhigh 3106 / 2070, xhigh updated to low 327 / 458. An update down reasons as the lower effort does; an update up about a quarter of what was asked. With MAGPIE_EFFORT_UPDATES=on, an effort above the thread's own now starts it again at the top (the cache lost once for each level up, as a group's auto effort loses it), and one at or below it goes as an update, keeping the cache. Compaction already starts a thread again at the effort asked, its history no longer the last one and more, which is what Codex CLI does after a compaction. TestEffortChangeKeepsTheCache fails on the old code (sent low with u:high). go vet, builds (darwin, GOOS=linux nogui, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass.
2026-10-05 08:38:15 +08:00
2026-11-10 10:01:59 +08:00
2026-10-31 18:22:49 +08:00
2026-11-05 16:22:31 +08:00
2026-11-11 17:54:42 +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-12 23:17:51 +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-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-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-11 14:28:17 +08:00
2026-11-13 10:54:56 +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-10-29 14:38:13 +08:00
2026-11-06 16:03:41 +08:00
2026-10-17 23:11:00 +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-10-30 15:53:22 +08:00
2026-11-06 10:04:22 +08:00
2026-10-17 23:11:00 +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-10-15 09:36:25 +08:00
2026-10-12 00:36:49 +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-10 12:34:14 +08:00
2026-11-05 11:42:53 +08:00
2026-11-05 11:42:53 +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-10 18:48:13 +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-10-13 03:49:32 +08:00
2026-11-12 04:24:58 +08:00
2026-10-31 09:38:21 +08:00
2026-10-31 09:38:21 +08:00
2026-11-10 13:20:49 +08:00
2026-10-29 19:34:39 +08:00
2026-10-15 23:08:02 +08:00
2026-11-10 10:01:59 +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-12 12:28:56 +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-10-17 23:11:00 +08:00
2026-10-16 19:14:52 +08:00
2026-10-17 20:38:06 +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-03 11:16:02 +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-03 02:27:57 +08:00
2026-10-29 10:43:59 +08:00
2026-11-07 19:29:43 +08:00
2026-11-08 07:20:19 +08:00
2026-11-10 12:34:14 +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-13 10:48:07 +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-06 12:12:20 +08:00
2026-11-11 19:55:21 +08:00
2026-11-04 21:57:48 +08:00
2026-11-10 22:39:29 +08:00
2026-10-31 02:49:08 +08:00
2026-11-11 19:55:21 +08:00
2026-10-25 00:06:40 +08:00
2026-10-25 00:06:40 +08:00
2026-10-29 21:25:33 +08:00
2026-11-05 11:45:44 +08:00
2026-11-05 11:45:44 +08:00
2026-11-13 00:06:43 +08:00
2026-11-08 22:55:09 +08:00
2026-11-08 11:28:54 +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-13 10:36:05 +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-13 11:08:44 +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-10 10:01:59 +08:00
2026-10-20 20:32:05 +08:00
2026-10-13 05:09:18 +08:00
2026-10-15 23:08:05 +08:00
2026-11-11 19:12:34 +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-06 19:28:54 +08:00
2026-11-06 19:28:54 +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-12 00:09:38 +08:00
2026-11-08 17:52:09 +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 05:12:30 +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-12 17:47:11 +08:00
2026-11-08 17:52:09 +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-10 10:01:59 +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-10 07:34:29 +08:00
2026-11-11 12:00:19 +08:00
2026-11-02 04:17:24 +08:00
2026-10-06 11:27:57 +08:00
2026-10-26 22:40:48 +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-11 20:16:49 +08:00
2026-11-11 12:00:19 +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-04 22:17:49 +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-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-10-29 06:38:04 +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-07 16:05:37 +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-03 07:15:52 +08:00
2026-11-13 12:29:04 +08:00
2026-11-13 12:29:04 +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-10-15 23:08:04 +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-03 07:43:18 +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-12 17:00:39 +08:00
2026-11-12 17:00:39 +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-03 18:34:19 +08:00
2026-10-25 03:39:50 +08:00
2026-10-13 15:50:19 +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-11-04 22:05:21 +08:00
2026-11-08 22:33:12 +08:00
2026-11-08 22:33:12 +08:00
2026-11-10 13:20:49 +08:00
2026-11-12 01:01:32 +08:00
2026-11-02 07:40:21 +08:00
2026-10-30 23:28:16 +08:00
2026-10-30 01:56:03 +08:00
2026-10-30 01:56:03 +08:00
2026-11-11 19:42:17 +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-10 12:34:14 +08:00
2026-10-15 05:39:01 +08:00
2026-11-12 02:01:31 +08:00
2026-10-20 00:18:51 +08:00
2026-10-31 22:23:18 +08:00
2026-11-10 12:34:14 +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-06 16:03:41 +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
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
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-11 10:15:40 +08:00
2026-11-11 01:31:26 +08:00
2026-10-26 23:41:35 +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-11 23:09:15 +08:00
2026-11-10 18:00:14 +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-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
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-10 03:25:44 +08:00
2026-11-13 12:29:04 +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-10 12:34:14 +08:00
2026-11-09 12:36:18 +08:00
2026-10-17 11:54:56 +08:00
2026-11-10 12:34:14 +08:00
2026-11-06 17:25:04 +08:00
2026-10-16 02:43:02 +08:00
2026-10-24 22:20:26 +08:00
2026-11-12 16:02:11 +08:00
2026-10-23 18:02:59 +08:00
2026-11-02 07:20:01 +08:00
2026-11-11 15:10:25 +08:00
2026-11-11 15:10:25 +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-10 18:04:25 +08:00
2026-11-07 15:27:29 +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-10-29 18:17:55 +08:00
2026-10-10 10:22:59 +08:00
2026-11-01 02:45:01 +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-09 16:55:21 +08:00
2026-11-10 10:01:59 +08:00
2026-11-09 12:42:35 +08:00
2026-11-03 13:34:35 +08:00
2026-10-05 22:19:40 +08:00
2026-11-03 13:34:35 +08:00
2026-10-24 21:03:52 +08:00
2026-10-28 14:55:20 +08:00
2026-11-06 13:42:40 +08:00
2026-11-11 11:41:40 +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-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-10-27 15:17:26 +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
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-13 05:12:30 +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-12 17:47:11 +08:00
2026-11-11 01:31:26 +08:00
2026-11-03 05:10:38 +08:00
2026-11-11 20:16:49 +08:00
2026-11-03 20:38:11 +08:00
2026-11-01 07:06:20 +08:00
2026-11-01 07:06:20 +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-13 10:47:17 +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-13 10:47:17 +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-05 18:31:16 +08:00
2026-10-13 15:06:20 +08:00
2026-11-05 18:31:16 +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-05 00:59:11 +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-04 22:27:11 +08:00
2026-11-04 22:27:11 +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-10-10 09:26:23 +08:00
2026-10-28 00:37:04 +08:00
2026-10-15 00:53:59 +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-10-27 23:35:08 +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-06 21:32:55 +08:00
2026-11-10 22:37:48 +08:00
2026-11-06 21:32:55 +08:00
2026-11-05 12:37:30 +08:00
2026-11-08 03:13:15 +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-10-29 17:02:24 +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-10 12:57:48 +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-02 21:52:57 +08:00
2026-11-06 17:22:52 +08:00
2026-10-30 21:25:32 +08:00
2026-11-09 12:36:18 +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-10-06 07:43:47 +08:00
2026-10-14 05:23:58 +08:00
2026-11-09 18:57:29 +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-12 18:02:08 +08:00
2026-11-09 12:36:18 +08:00
2026-11-11 19:12:34 +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-10-30 19:24:31 +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-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-07 08:55:36 +08:00
2026-10-23 00:18:58 +08:00
2026-10-11 12:58:03 +08:00
2026-11-06 10:08:35 +08:00
2026-11-06 10:08:35 +08:00
2026-11-04 21:49:51 +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-12 18:34:34 +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
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-12 01:56:26 +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-10-09 10:34:03 +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-01 13:43:35 +08:00
2026-10-30 14:56:00 +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-12 22:26:45 +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-06 00:31:14 +08:00
2026-10-21 18:40:51 +08:00
2026-11-03 11:23:37 +08:00
2026-11-07 21:21:48 +08:00
2026-11-06 00:31:14 +08:00
2026-10-29 03:17:58 +08:00
2026-10-15 23:08:00 +08:00
2026-11-12 22:26:45 +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-10-31 13:44:29 +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-12 22:26:45 +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-12 22:26:45 +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-12 22:26:45 +08:00
2026-11-12 22:26:45 +08:00
2026-10-11 20:58:56 +08:00
2026-11-10 22:57:20 +08:00
2026-10-25 00:39:25 +08:00
2026-11-11 17:08:15 +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-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-10 12:16:51 +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-11 15:03:38 +08:00
2026-11-08 11:03:09 +08:00
2026-10-31 21:58:06 +08:00
2026-10-29 19:25:40 +08:00
2026-10-29 19:25:40 +08:00
2026-10-27 01:37:38 +08:00
2026-10-27 01:37:38 +08:00
2026-10-17 23:11:01 +08:00
2026-11-05 18:36:31 +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-10-12 00:22:49 +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-10 12:34:14 +08:00
2026-10-13 10:06:12 +08:00
2026-10-15 03:34:59 +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-03 21:20:26 +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-10 12:34:14 +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-10 12:34:14 +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
2026-11-12 17:37:04 +08:00
2026-11-01 04:51:17 +08:00
2026-10-29 15:20:54 +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-10-30 13:57:36 +08:00
2026-10-26 16:13:27 +08:00
2026-10-30 13:57:36 +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
providers: Tencent Cloud is one preset, its regions Plan · China, Pay as you go · China and Pay as you go · Global (Discord, Jorben: Tencent Cloud's Token Plan, TokenHub and TokenHub China were three tiles of one vendor) — tencent-token-plan, tencent-tokenhub-cn and tencent-tokenhub become tencent-cloud's regions plan, cn and intl, as Xiaomi MiMo's are, each made as its own preset made it: the plan's /plan endpoints with no Responses, its own models and no catalog; TokenHub's hosts with Responses, models.dev's tencent-tokenhub and its own keys page and docs. A region now carries its Website, Catalog and Models, and a saved provider's region is found by its endpoints (regionOf, by exact URL before path, since TokenHub China and global share their paths): normalize gives it that region's keys page, docs and catalog (a catalog the user picked is kept), and planModels its models. The old ids are aliases, as qianfan-token-plan is of baidu-qianfan: Preset and FromPreset take them, FromPreset builds at their region, normalize rewrites a saved provider's preset to tencent-cloud, and a provider's own id never changes, so its key, models, routing groups, usage and prices stay where they were; magpie://import links by an old id land at its region, and region= now also gives a region's docs and catalog. Imports from other apps match a region's endpoints. The editor's docs link follows the region picked with the segmented control, en and zh ("按量 · 中国", "按量 · 国际"); the add sheet has one Tencent Cloud tile; the site's import docs list tencent-cloud with its regions and import.html still names the old ids. TestTencentCloud (each region, old ids, FromPreset, imports, import links) and TestTencentCloudOldPresetsKeepWorking (a providers.json saved by an older magpie under all three old presets, with a routing group over them, read, re-saved as the editor saves and switched between regions) fail on the old code; TestTencentTokenHubRoutes routes through old ids and tencent-cloud alike. tencent-cloud.test.cjs (WebKit en and zh: one tile, the three regions, no select, the docs and Get a key links following the region, an old id's provider opening at its region and saved under its id) fails on the old app.js; add-sheet, zhipu-team, system-one, strip-scrollbar and click-scroll pass (Chromium doesn't launch in this sandbox). Not tried with a Tencent account. go vet, builds (darwin, GOOS=linux, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass.
2026-10-04 19:38:14 +08:00
2026-11-05 03:41:57 +08:00
2026-11-05 03:41:57 +08:00
2026-11-01 06:21:39 +08:00
2026-10-17 23:11:00 +08:00
2026-11-09 18:19:02 +08:00
2026-11-10 12:34:14 +08:00
2026-10-14 16:42:47 +08:00
2026-11-03 07:43:18 +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-10-30 22:33:25 +08:00
2026-10-15 22:36:59 +08:00
2026-11-10 12:34:14 +08:00
2026-10-08 20:31:01 +08:00
2026-10-13 14:14:59 +08:00
2026-10-20 20:23:52 +08:00
2026-11-05 14:47:18 +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-11 20:57:10 +08:00
2026-11-10 07:37:34 +08:00
2026-10-14 09:19:16 +08:00
2026-10-26 14:15:53 +08:00
2026-10-31 09:34:29 +08:00
2026-10-27 00:28:06 +08:00
2026-11-05 17:50:33 +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-03 11:06:59 +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-02 15:19:38 +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-10-10 05:46:48 +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-11 14:24:25 +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-10 07:37:34 +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-10-14 16:23:26 +08:00
2026-11-11 10:10:12 +08:00
2026-11-11 09:53:25 +08:00
2026-10-19 07:38:46 +08:00
2026-11-11 09:53:25 +08:00
2026-11-05 18:36:31 +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-10-25 14:41:03 +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-10-25 14:41:03 +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-10-12 19:38:13 +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-05 17:50:33 +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-03 18:34:19 +08:00
2026-11-11 19:12:34 +08:00
2026-11-11 19:12:34 +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-10 12:34:14 +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-10-15 18:41:03 +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-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-10 12:34:14 +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-10-29 01:14:42 +08:00
2026-11-03 02:27:57 +08:00
2026-11-10 12:34:14 +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-10-13 14:22:53 +08:00
2026-11-03 02:25:23 +08:00
2026-11-03 02:25:23 +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-09 17:46:13 +08:00
2026-11-09 17:46:13 +08:00
2026-10-28 16:52:55 +08:00
2026-11-10 10:01:59 +08:00
2026-11-10 04:58:30 +08:00
2026-11-07 17:44:31 +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