Claude Code with the context-management beta sends context_management (here clear_thinking_20251015, keep all). Factory's streaming route answers it with 400 "context_management: Extra inputs are not permitted"; the same body with stream false, or without the field, gets 200 (the reporter's three cases). A streamed /messages request now goes without the field; an unstreamed one keeps it. The server then clears nothing, and Claude Code's own compaction still runs. The version bump also releases the previous commit's #72 fix. Run: HOME=<tmp> bun test in packages/factory, 119 pass (1 new from the reporter's body; the existing all-fields test now expects the field gone on its streamed request). With the deletion disabled by hand both go red. Not sent to Factory: no Factory account here.
12 lines
499 B
JSON
12 lines
499 B
JSON
{
|
|
"name": "@magpie-community/opencode-factory-auth",
|
|
"version": "0.1.23",
|
|
"description": "Sign in to a Factory (Droid) subscription from OpenCode or magpie",
|
|
"type": "module",
|
|
"main": "./index.mjs",
|
|
"files": ["index.mjs", "anthropic-tools.mjs", "README.md"],
|
|
"keywords": ["opencode", "opencode-plugin", "magpie", "factory", "droid"],
|
|
"license": "MIT",
|
|
"repository": { "type": "git", "url": "git+https://github.com/magpie-community/plugins.git", "directory": "packages/factory" }
|
|
}
|