agy-cli: Codex's GPT-5 lines go reworded in a user's turn too (0.1.53)
pocoxliu on X (tweet 2121731813270077946) gets 429s from agy-cli under Codex and Claude Code and put it down to unslimmed system and MCP prompts. It is content, not size (#1151: a neutral system prompt of the same 66,622 characters went through). Since 11-14 Antigravity also turns away Codex's two GPT-5 lines ("You are Codex, (a coding) agent based on GPT-5") in a user's turn; magpie's cloak and the antigravity plugin (fb7bbebd) reword them there, andfb7bbebdnoted agy-cli as not tried. agy-cli reworded only system text, so AGENTS.md text, a <system-reminder> and replayed history in a user's turn went to agy as written. - cloak.mjs: USER_TURNED_AWAY (the two Codex lines) and cloakUser(). - index.mjs: every text part of the prompt goes through cloakUser before agy gets it. Parked sessions carry userCloak: 1; one parked before this version (whose agy copy may hold the line as written) is not resumed. - READMEs (zh, en) say so. Run: HOME=$(mktemp -d) bun test packages/agy-cli on mica: 22 pass, 0 fail (cloak.test 6, agy-cli.test 16 incl. conversation-key 36 cases); bun scripts/check.mjs agy-cli: ok. Broken by hand (on mote): the userTurnParts call and the userCloak check removed, the two new conversation-key tests fail (34 pass, 2 fail); restored, all pass. Not tried: a real request. The one probe on the owner's account got "This service has been disabled in this account for violation of Terms of Service" as a 200 (#1163), so no 429 could be reproduced or cleared on a real agy. The reporter's exact agent and prompt are not known.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@magpie-community/opencode-agy-cli-auth",
|
||||
"version": "0.1.52",
|
||||
"version": "0.1.53",
|
||||
"description": "Magpie/OpenCode model provider that connects your local agy CLI through the Agent Client Protocol (agy acp), so Antigravity subscription models run through the real CLI",
|
||||
"type": "module",
|
||||
"main": "./opencode.mjs",
|
||||
|
||||
Reference in New Issue
Block a user