A local plugin for image-heavy chats in Codex, Claude Code and other agents: earlier images stop going out with every message, and the model fetches the one it needs by its ID, also after compaction.
TypeScript ai-agentsclaude-codeclaude-code-plugincodexcodex-plugincontext-managementdeveloper-toolsimage-generationmcpmultimodal
fix(claude): 面板显示"改写被拒、改发原始请求"的提示
chipfightera03404555d7e
diff --git a/plugin/src/panel.html b/plugin/src/panel.htmlindex 18966ed..0299fa8 100644--- a/plugin/src/panel.html+++ b/plugin/src/panel.html@@ -32,6 +32,8 @@v0.3 (user 2026-10-06): an automatic selection switch at the end of the footer. While it is on, a tick pins an image(sent every turn; kept apart from the manual ticks), the others are left out unless the model fetches them, the barlists what the model fetched in the latest turn instead of what it asked for, and those rows say so.+ v0.4: under Claude Code, when Anthropic refused the rewritten history under its thinking and the engine sent the+ original request, the panel says so as for any request it could not rewrite.--><style>/* Fallbacks follow Codex's own widget palette; inside Codex its theme variables (MCP Apps host styles) win. */@@ -358,6 +360,7 @@"reason.integer": "请求里有超大整数,改写会改变它的值","reason.index": "读取这个任务的记录失败","reason.other": "改写时出错",+ "reason.thinking": "这个账号不接受改过的对话历史(思考记录的校验),引擎改发了原始请求","chooser.title": "刚刚开始了好几个任务,这个面板要显示哪一个?","chooser.untitled": "新任务","footer.hint": "勾选的图片会随下一条消息发给模型",@@ -467,6 +470,7 @@"reason.integer": "the request holds an integer too large to rewrite safely","reason.index": "this task's records could not be read","reason.other": "an error occurred while rewriting",+ "reason.thinking": "this account does not accept edited conversation history (the thinking check), so the engine sent the original request","chooser.title": "Several tasks just started. Which one should this panel show?","chooser.untitled": "New task","footer.hint": "Checked images go to the model with the next message",@@ -1208,6 +1212,7 @@if (S.data?.engineRunning === false && S.data?.setup?.usesEngine !== false) nodes.push(notice("warn", t("notice.engineDown")));const sendNotice = S.data?.send?.notice;if (sendNotice?.kind === "skipped") nodes.push(notice("error", t("notice.skipped", { time: timeOf(sendNotice.at), reason: t(MESSAGES[lang][`reason.${sendNotice.reason}`] ? `reason.${sendNotice.reason}` : "reason.other") })));+ if (sendNotice?.kind === "fallback") nodes.push(notice("error", t("notice.skipped", { time: timeOf(sendNotice.at), reason: t("reason.thinking") })));if (sendNotice?.kind === "websocket") nodes.push(notice("warn", t("notice.websocket")));const list = images();if (S.data && !list.length) nodes.push(emptyState);