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
chore(release): 版本号改为 0.8.2,CHANGELOG 写上 0.8.2
chipfighterc5bea8d10332
diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.jsonindex 9ff73f7..da1068b 100644--- a/.claude-plugin/plugin.json+++ b/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "codex-attachment-manager","displayName": "Context Attachment Manager",- "version": "0.8.1",+ "version": "0.8.2","description": "Choose which images from a Claude Code session's history go out with the next message. Unchecked images become short placeholders; the session and the conversation stay the same.","author": {"name": "chipfighter"diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.ymlindex fbcdece..936ade1 100644--- a/.github/ISSUE_TEMPLATE/bug_report.yml+++ b/.github/ISSUE_TEMPLATE/bug_report.yml@@ -37,7 +37,7 @@ body:id: pluginattributes:label: 插件版本 / Plugin version- placeholder: "0.8.1"+ placeholder: "0.8.2"- type: textareaid: whatattributes:diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 3da9d5d..c1ae603 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -2,6 +2,20 @@When a version is released, its section here becomes the GitHub release notes.+## [0.8.2] - 2026-10-21++The model notes where each image is set, not its "scene".++### Changes++- A feature line now starts with the place the picture is set in, such as "study" or "outside the café", instead of the scene. In a film project the model had read "scene" as a scene number and named each image after it and what the image was for, such as "scene 04 café exterior sketch" or "scene 04 café exterior detail check": one task got 28 scene filters for 52 images. Scene numbers, versions and purposes now stay out of the place, and time of day and weather go in the features. An image of several places, such as a storyboard, is noted as "several places"; one set nowhere as what it is: character, object, document or web page.+- Feature lines already written stay as they are, so a task from before keeps its old scene filters next to the new places.++### Notes++- Tested on Windows with GPT-6 Sol at low effort, in Chinese and English. A new case in the notes self-test uploads images named like `03场_书房_首帧_v2.png` and describes them with the scene number, version and purpose: the places came out as "书房" / "study" and "咖啡店外" / "outside the café", with none of those, and the same place for both images of the study. GPT-6 Luna and Astra gave the same places.+- With Sol, the placeholder and `need IMG-xxx` self-tests passed in both languages, and so did the notes self-test in Chinese. In English, Sol answered a bare rating with "keep your feedback about the first in mind", which the test counts as mentioning the notes; it said such things now and then in 0.8.0 too. GPT-6 Luna was run but no longer holds a release back: as in 0.8.0, it twice answered a bare rating with the notes only and missed a rating once, and once asked again for an image the user had just checked back.+## [0.8.1] - 2026-10-21A fix for the panel's filters.diff --git a/plugin/.codex-plugin/plugin.json b/plugin/.codex-plugin/plugin.jsonindex 7477f34..34cf8e3 100644--- a/plugin/.codex-plugin/plugin.json+++ b/plugin/.codex-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "codex-attachment-manager",- "version": "0.8.1",+ "version": "0.8.2","description": "Choose which images from a Codex task's history go out with the next message. Unchecked images become short placeholders; the task and the conversation stay the same.","author": {"name": "chipfighter"diff --git a/plugin/src/panel.html b/plugin/src/panel.htmlindex a9adfaa..b8c4e62 100644--- a/plugin/src/panel.html+++ b/plugin/src/panel.html@@ -1435,7 +1435,7 @@// ---- start: handshake, then Codex sends its own cam_panel result; poll so new images show up ----if (window.matchMedia?.("(prefers-color-scheme: dark)").matches) document.documentElement.dataset.theme = "dark";applyLanguage();- request("ui/initialize", { protocolVersion: "2026-01-26", appInfo: { name: "codex-attachment-manager", version: "0.8.1" }, appCapabilities: {} })+ request("ui/initialize", { protocolVersion: "2026-01-26", appInfo: { name: "codex-attachment-manager", version: "0.8.2" }, appCapabilities: {} }).then((init) => { applyHost(init?.hostContext); post({ method: "ui/notifications/initialized", params: {} }); reportFrame(); }).catch(() => {}).finally(() => setTimeout(() => { if (!S.data) refresh(); }, 1200));diff --git a/plugin/src/plugin-server.ts b/plugin/src/plugin-server.tsindex 0c723e1..2347c8a 100644--- a/plugin/src/plugin-server.ts+++ b/plugin/src/plugin-server.ts@@ -116,7 +116,7 @@ const icon = (theme: "light" | "dark", color: string) => ({src: `data:image/svg+xml;base64,${Buffer.from(ICON_SVG.replace("currentColor", color)).toString("base64")}`,mimeType: "image/svg+xml", sizes: ["any"], theme,});-export const serverInfo = (lang: Lang) => ({ name: "codex-attachment-manager", title: say(lang, "server.title"), version: "0.8.1", icons: [icon("light", "#5d5d5d"), icon("dark", "#cdcdcd")] });+export const serverInfo = (lang: Lang) => ({ name: "codex-attachment-manager", title: say(lang, "server.title"), version: "0.8.2", icons: [icon("light", "#5d5d5d"), icon("dark", "#cdcdcd")] });export function readResource(uri: string): Json {if (uri !== PANEL_URI) throw new Error(`unknown resource ${uri}`);