factory 0.1.36: a content_policy_rejected 403 says Factory's check reads the whole conversation, and isn't sent again
doubl4door (Discord, factory 0.1.34): Claude Code on Factory's Opus got 403 "This request was blocked by Factory's usage policy check" (code content_policy_rejected), and the plugin's hint pointed at the org's model policy and plan. droid 0.245.0 tells this refusal apart by that code, only when Factory sent no x-factory-upstream-error header, and says the check covers the whole conversation. contentRefused does the same: explain() says to start a new session or remove the quoted text, and mendOrg's whoami-and-resend is skipped, since the same conversation is refused again under any org. Other 403s are handled as before. Run (sandbox HOME): - HOME=$(mktemp -d) bun test packages/factory: 171 pass, 0 fail - bun scripts/check.mjs factory: ok; git diff --check clean - Broken by hand: without the mendOrg skip 2 of content-policy's 4 tests fail; without explain's branch 3 fail. Not tried against Factory's server (no Factory account here); the body shapes tested are code at the top level and under error.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@magpie-community/opencode-factory-auth",
|
||||
"version": "0.1.35",
|
||||
"version": "0.1.36",
|
||||
"description": "Sign in to a Factory (Droid) subscription from OpenCode or magpie",
|
||||
"type": "module",
|
||||
"main": "./index.mjs",
|
||||
|
||||
Reference in New Issue
Block a user