From 05c4e3f7bbd9acab9d4e4db58d2e7418c82287d3 Mon Sep 17 00:00:00 2001 From: yetone Date: Thu, 15 Oct 2026 22:18:23 +0800 Subject: [PATCH] =?UTF-8?q?factory:=20requests=20say=20droid=200.242.0,=20?= =?UTF-8?q?the=20current=20release,=20and=20moved=20users=20get=20plugin?= =?UTF-8?q?=200.1.30=20(sky=E6=9D=A8=20on=20Discord:=20every=20model=20403?= =?UTF-8?q?=20"Factory:=20Forbidden")?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Factory answered every model 403 "Forbidden" to requests that named an older droid version. The built-in now sends factoryVersion 0.242.0, and the mover's min is 0.1.30, the plugin release with the same headers (magpie-community/plugins b8717aa), so keepMovedCurrent updates every moved user's plugin. npm view @magpie-community/opencode-factory-auth@0.1.30 --prefer-online answers 0.1.30. Run: gofmt; go vet -tags nogui ./internal/provider for darwin, linux and windows; go test -run 'Factory|Moved|Mover|Migrat' ./internal/provider ok. Not tried: a real Factory account through the built-in. Full suite: SUITE_LINE --- internal/provider/factory.go | 2 +- internal/provider/factory_client_test.go | 2 +- internal/provider/migrate_factory.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/provider/factory.go b/internal/provider/factory.go index fc5492465..2a688927b 100644 --- a/internal/provider/factory.go +++ b/internal/provider/factory.go @@ -66,7 +66,7 @@ const ( // factoryClientID is droid's WorkOS client, production. factoryClientID = "client_01HNM792M5G5G1A2THWPXKFMXB" // factoryVersion is the droid release magpie's requests say they are. - factoryVersion = "0.233.0" + factoryVersion = "0.242.0" // factoryRefreshLead is how long before an access token lapses it is // renewed; droid renews a minute ahead, magpie a little more. factoryRefreshLead = 2 * time.Minute diff --git a/internal/provider/factory_client_test.go b/internal/provider/factory_client_test.go index dc3716626..a64b5ce7f 100644 --- a/internal/provider/factory_client_test.go +++ b/internal/provider/factory_client_test.go @@ -185,7 +185,7 @@ func TestFactoryGLMFlashImages(t *testing.T) { if m, ok := factoryModelOf("glm-5.3-flash"); !ok || !m.images { t.Errorf("glm-5.3-flash: %+v", m) } - if factoryVersion != "0.233.0" { + if factoryVersion != "0.242.0" { t.Errorf("factoryVersion %s", factoryVersion) } if m, ok := factoryModelOf("gemini-3.1-pro-preview"); !ok || m.api != Gemini || m.upstream != "google" || factoryCore("gemini-3.1-pro-preview") { diff --git a/internal/provider/migrate_factory.go b/internal/provider/migrate_factory.go index 75368f92b..6a911ba41 100644 --- a/internal/provider/migrate_factory.go +++ b/internal/provider/migrate_factory.go @@ -13,7 +13,7 @@ import ( func init() { movers["factory"] = &mover{ pkg: "@magpie-community/opencode-factory-auth", - min: "0.1.28", // the Fast Mode models listed last, so GPT-5.3-Codex, Grok and GLM are in the first 24 again (plugins #119); droid's Fast Mode models (Opus 5.5/5/4.8, GPT-5.5/5.4/5.3-Codex), and fast asked of a base model sent to its Fast Mode model (plugins #119); Gemini 4 Argon and Gemini 3.x on Factory's Gemini route (#2080); a 413 asked once more with older images left out, then said as Factory's byte limit (#2082); Haiku 5.5 and Mistral Large 4, in droid 0.240.0's picker (JL); a session continued after Claude Code compaction, whose restored context opens with the invoked-skills reminder (plugins #66); Claude Code's streamed context_management left out, which Factory's streaming route refuses (plugins #71); Claude Code's skill list sent alone as a system message, as text blocks or a string, gets update-config's line Factory takes (plugins #72); Claude Code 2.1.280's restored-context turn after /compact (plugins #68); pi's compaction and branch summary openings reworded (#1316); hook notifications kept in Claude Code compaction context only stop changed-file quoting, summaries quoted like tool output, a cut after a hunk separator (plugins #42); Claude Code compaction/runtime metadata and quoted session summaries (#1132); pi's opening sentence cut to its first half (#952); DeepSeek V4.1 Flash, Kimi K3 and GLM-5.2 offering none, so reasoning turned off stops their thinking (#899); requests saying droid 0.233.0 (JL: every model 403); Claude Code 2.1.288's runtime context as a system message of text blocks (#658); a tool whose input_schema has anyOf/oneOf/allOf at its root (Codex's automation_update) wrapped for Claude models (#646); a failure's status and its sign-in mark as the built-in's; Claude 5's system-role metadata as Factory takes it; Claude Code's standalone model-switch system updates; tool results quoting Claude Code's fixed phrases, and Claude Code's directory updates carrying a model; the sign-in renewed ahead of time through auth.refresh; Claude Code with a global CLAUDE.md or a SessionStart hook, and Claude Desktop's model line (#634) + min: "0.1.30", // requests saying droid 0.242.0, the current release (sky杨 on Discord: every model 403 "Factory: Forbidden" from Claude Code); Claude Code on GLM and other /api/llm/o models without the phrases Factory refuses (Echoo on Discord); the Fast Mode models listed last, so GPT-5.3-Codex, Grok and GLM are in the first 24 again (plugins #119); droid's Fast Mode models (Opus 5.5/5/4.8, GPT-5.5/5.4/5.3-Codex), and fast asked of a base model sent to its Fast Mode model (plugins #119); Gemini 4 Argon and Gemini 3.x on Factory's Gemini route (#2080); a 413 asked once more with older images left out, then said as Factory's byte limit (#2082); Haiku 5.5 and Mistral Large 4, in droid 0.240.0's picker (JL); a session continued after Claude Code compaction, whose restored context opens with the invoked-skills reminder (plugins #66); Claude Code's streamed context_management left out, which Factory's streaming route refuses (plugins #71); Claude Code's skill list sent alone as a system message, as text blocks or a string, gets update-config's line Factory takes (plugins #72); Claude Code 2.1.280's restored-context turn after /compact (plugins #68); pi's compaction and branch summary openings reworded (#1316); hook notifications kept in Claude Code compaction context only stop changed-file quoting, summaries quoted like tool output, a cut after a hunk separator (plugins #42); Claude Code compaction/runtime metadata and quoted session summaries (#1132); pi's opening sentence cut to its first half (#952); DeepSeek V4.1 Flash, Kimi K3 and GLM-5.2 offering none, so reasoning turned off stops their thinking (#899); requests saying droid 0.233.0 (JL: every model 403); Claude Code 2.1.288's runtime context as a system message of text blocks (#658); a tool whose input_schema has anyOf/oneOf/allOf at its root (Codex's automation_update) wrapped for Claude models (#646); a failure's status and its sign-in mark as the built-in's; Claude 5's system-role metadata as Factory takes it; Claude Code's standalone model-switch system updates; tool results quoting Claude Code's fixed phrases, and Claude Code's directory updates carrying a model; the sign-in renewed ahead of time through auth.refresh; Claude Code with a global CLAUDE.md or a SessionStart hook, and Claude Desktop's model line (#634) agents: []string{"factory"}, out: func() ([]Moving, error) { ls := factoryLogins()