From d987cc7d5a50577cd2d7738afa9987c2a6fe8b89 Mon Sep 17 00:00:00 2001 From: yetone Date: Sat, 14 Nov 2026 17:11:33 +0800 Subject: [PATCH] provider: Devin's mover min is 0.1.41, which sends a Gemini reply's thought signature back devin 0.1.41 (magpie-community/plugins 191d94bf) puts a Gemini model's thought signature, signature_type "gemini" and the model that wrote it on the next request's assistant prompt, as the devin CLI sends it. The plugin had dropped Gemini signatures, so Gemini 4 Hydrogen lost its thoughts on every tool turn (liuzhengdong99 on X: 502 empty replies and long waits in DSH). keepMovedCurrent brings every moved user to it. Run: go test ./internal/provider/ on mote at this head (rebased on 8334f1e6e): ok (140s). gofmt -l clean. npm view --prefer-online @magpie-community/opencode-devin-auth version: 0.1.41 before this commit. The plugin's own record (tests red on the old code, real-account runs, the case not reproduced on the old code) is in 191d94bf. --- internal/provider/migrate_side.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/provider/migrate_side.go b/internal/provider/migrate_side.go index a037f2608..922fd9497 100644 --- a/internal/provider/migrate_side.go +++ b/internal/provider/migrate_side.go @@ -17,7 +17,7 @@ import ( func init() { movers["devin"] = &mover{ pkg: "@magpie-community/opencode-devin-auth", - min: "0.1.40", // 0.1.40: a key typed in, such as a service user's cog_… key, is a sign-in method of its own ("Devin API key (cog_…)", OpenCode 2's key method too), sent to chat and usage as a sign-in's token is; the first usage read names the account (wuxudongxd on X); 0.1.36: a model that isn't Claude gets its earlier turns' reasoning back as unsigned thinking (field 11) from chat completions' reasoning_content, OpenCode 2's reasoning parts and Messages thinking blocks, so swe-2 keeps thinking through a tool loop; Claude still gets only signed thinking (plugins #703, kamikakushi); 0.1.35: Claude's thinking keeps its signature: delta_signature and its type are read, a Messages reply's thinking block carries the signature (a signature_delta when streamed), and the next request sends the signed thinking back with signature and signature_type (plugins #665, Vigilans); 0.1.34: keepalive pings are timed from when the request before them was sent, not from its reply's end, so a long reply or a slow ping no longer puts the next past Devin's 5-minute cache (plugins #626, zelong77); the keepalive key reads the session and subagent magpie names (x-magpie-session, x-magpie-subagent), so a permission check whose merged history grew replaces its pings (plugins #620, zelong77); 0.1.33: a Claude Code Auto permission check whose history grew in its first message replaces its keepalive pings instead of adding a task beside them; the key is the session, agent, instructions and tools (plugins #620, zelong77); 0.1.32: a system notice partway through a conversation goes to Devin as a user prompt in its place, with its cache mark, and one that arrives while tool calls wait for results goes after them (plugins #599, leosocy); 0.1.31: each keepalive ping is reported through magpie.usage (a Cache keep-alive call on the conversation's model and account, with its tokens), and package.json gives the interval and ping count's defaults to the Plugins › Options editor (plugins #592, zelong77); 0.1.30: an opt-in cache keepalive, "Keep the cache warm" (off by default): after a reply that used the cache, the same request goes again every 285 s with "continue" and max_tokens 1, as the devin CLI does, until the conversation's next request, a 401, 402 or 429, two misses or 6 pings (plugins #592, zelong77); 0.1.29: a failed tool result on the Messages path says "Error: " first, as on chat completions; 0.1.28: Devin's Claude models are asked on Anthropic's Messages API, each block of the client's its own prompt with Devin's cache mark where the client put cache_control, so a grown history is read from the cache (plugins #566, zelong77); 0.1.27: SWE-2 asked with no effort goes as a free variant, never a paid -lightning one Devin lists first, and as SNAPSHOT's swe-2-high when the account's list leaves the family out, not the bare family id; a model list Devin won't give is logged and shown in usage ("Free models: unknown"), not swallowed (zws13579 on Discord, plugins #533); 0.1.26: a usage read Devin answers 401 marks the account signed out, so its rows offer Sign in again, and a clean read takes the mark off (blue12345655 on Discord); 0.1.25: an anyOf beside a type below a tool's root (what the gateway writes for a Gemini model) goes to Devin's Gemini models merged or as a oneOf, so Kimi Code's Read no longer 400s (plugins #458); 0.1.24: the CLI's sign-in keeps its "cli" mark as the string OpenCode stores, so OpenCode 1 keeps the account (plugins #396); 0.1.23: a reply with only usage or metadata is refused before the stream starts, not passed on as an empty success (plugins #297); 0.1.22: organisations under one email are kept apart, each with its own quota (plugins #296); 0.1.21: a chat request past 8 KiB goes as a gzipped Connect frame, as the devin CLI sends it, where an uncompressed large one could be refused 413 (plugins #275); 0.1.20: a tool result's images go to Devin on the tool message that answers the call, as the built-in sent them; 0.1.19: Devin answers in JSON when the request asks for it (response_format into the instructions, as the built-in); 0.1.18: a tool whose parameters have a root anyOf, oneOf or allOf goes as a plain object (#1196), a branch that is a union itself folded too (#1271); a turn's parallel calls split over two assistant messages keep their results (#1275); a temperature or top_p of 0 goes as 1e-6, which Devin takes (plugins #50); a call id with ":" or "#" goes to the agent as one Claude Code takes, and back to Devin as it was (#1304); a week used up, its share left out of GetUserStatus, is 100% and holds the account until its reset (面条); SWE-2, which Devin's quota doesn't count (its Free cost tier), is left out of the day and week and listed free, so a used-up quota no longer holds it (太陽と向日葵); a tool schema with a list type, an array with no items, or properties or an enum with no type goes to a Gemini model in a shape it takes, not "There is an issue with this request" (7eleven); each model carries the price Devin lists for it, and SWE-2 stays free beside the -lightning variants Devin now files under it (太陽と向日葵, Usage showed no cost) + min: "0.1.41", // 0.1.41: a Gemini model's reply goes back on the next request with its thought signature, signature_type "gemini" and the model that wrote it, as the devin CLI sends it, so Gemini 4 Hydrogen keeps its thoughts through a tool loop (liuzhengdong99 on X); 0.1.40: a key typed in, such as a service user's cog_… key, is a sign-in method of its own ("Devin API key (cog_…)", OpenCode 2's key method too), sent to chat and usage as a sign-in's token is; the first usage read names the account (wuxudongxd on X); 0.1.36: a model that isn't Claude gets its earlier turns' reasoning back as unsigned thinking (field 11) from chat completions' reasoning_content, OpenCode 2's reasoning parts and Messages thinking blocks, so swe-2 keeps thinking through a tool loop; Claude still gets only signed thinking (plugins #703, kamikakushi); 0.1.35: Claude's thinking keeps its signature: delta_signature and its type are read, a Messages reply's thinking block carries the signature (a signature_delta when streamed), and the next request sends the signed thinking back with signature and signature_type (plugins #665, Vigilans); 0.1.34: keepalive pings are timed from when the request before them was sent, not from its reply's end, so a long reply or a slow ping no longer puts the next past Devin's 5-minute cache (plugins #626, zelong77); the keepalive key reads the session and subagent magpie names (x-magpie-session, x-magpie-subagent), so a permission check whose merged history grew replaces its pings (plugins #620, zelong77); 0.1.33: a Claude Code Auto permission check whose history grew in its first message replaces its keepalive pings instead of adding a task beside them; the key is the session, agent, instructions and tools (plugins #620, zelong77); 0.1.32: a system notice partway through a conversation goes to Devin as a user prompt in its place, with its cache mark, and one that arrives while tool calls wait for results goes after them (plugins #599, leosocy); 0.1.31: each keepalive ping is reported through magpie.usage (a Cache keep-alive call on the conversation's model and account, with its tokens), and package.json gives the interval and ping count's defaults to the Plugins › Options editor (plugins #592, zelong77); 0.1.30: an opt-in cache keepalive, "Keep the cache warm" (off by default): after a reply that used the cache, the same request goes again every 285 s with "continue" and max_tokens 1, as the devin CLI does, until the conversation's next request, a 401, 402 or 429, two misses or 6 pings (plugins #592, zelong77); 0.1.29: a failed tool result on the Messages path says "Error: " first, as on chat completions; 0.1.28: Devin's Claude models are asked on Anthropic's Messages API, each block of the client's its own prompt with Devin's cache mark where the client put cache_control, so a grown history is read from the cache (plugins #566, zelong77); 0.1.27: SWE-2 asked with no effort goes as a free variant, never a paid -lightning one Devin lists first, and as SNAPSHOT's swe-2-high when the account's list leaves the family out, not the bare family id; a model list Devin won't give is logged and shown in usage ("Free models: unknown"), not swallowed (zws13579 on Discord, plugins #533); 0.1.26: a usage read Devin answers 401 marks the account signed out, so its rows offer Sign in again, and a clean read takes the mark off (blue12345655 on Discord); 0.1.25: an anyOf beside a type below a tool's root (what the gateway writes for a Gemini model) goes to Devin's Gemini models merged or as a oneOf, so Kimi Code's Read no longer 400s (plugins #458); 0.1.24: the CLI's sign-in keeps its "cli" mark as the string OpenCode stores, so OpenCode 1 keeps the account (plugins #396); 0.1.23: a reply with only usage or metadata is refused before the stream starts, not passed on as an empty success (plugins #297); 0.1.22: organisations under one email are kept apart, each with its own quota (plugins #296); 0.1.21: a chat request past 8 KiB goes as a gzipped Connect frame, as the devin CLI sends it, where an uncompressed large one could be refused 413 (plugins #275); 0.1.20: a tool result's images go to Devin on the tool message that answers the call, as the built-in sent them; 0.1.19: Devin answers in JSON when the request asks for it (response_format into the instructions, as the built-in); 0.1.18: a tool whose parameters have a root anyOf, oneOf or allOf goes as a plain object (#1196), a branch that is a union itself folded too (#1271); a turn's parallel calls split over two assistant messages keep their results (#1275); a temperature or top_p of 0 goes as 1e-6, which Devin takes (plugins #50); a call id with ":" or "#" goes to the agent as one Claude Code takes, and back to Devin as it was (#1304); a week used up, its share left out of GetUserStatus, is 100% and holds the account until its reset (面条); SWE-2, which Devin's quota doesn't count (its Free cost tier), is left out of the day and week and listed free, so a used-up quota no longer holds it (太陽と向日葵); a tool schema with a list type, an array with no items, or properties or an enum with no type goes to a Gemini model in a shape it takes, not "There is an issue with this request" (7eleven); each model carries the price Devin lists for it, and SWE-2 stays free beside the -lightning variants Devin now files under it (太陽と向日葵, Usage showed no cost) agents: []string{"devin"}, out: func() ([]Moving, error) { var out []Moving