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.6.0,CHANGELOG 的 0.6.0 一节写上日期
chipfighter288ce0f54e91
diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.jsonindex 1123ddf..a3554b8 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.5.0",+ "version": "0.6.0","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 435462f..8658579 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.5.0"+ placeholder: "0.6.0"- type: textareaid: whatattributes:diff --git a/AGENTS.md b/AGENTS.mdindex 3818b96..cae7a99 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -8,7 +8,7 @@ Context Attachment Manager(上下文素材管理器,2026-10-11 前叫 Codex- [docs/design.md](docs/design.md):技术方案,讲现在是怎么实现的。- [docs/v0.4/plan.md](docs/v0.4/plan.md):Claude 桌面 Code 接入的 v0.4 变更方案;任务和验收分别见同目录的 `tasks.md`、`acceptance.md`。当前正式规格仍以 `docs/spec.md` 为准,未通过的迁移关卡不算已实现。- [docs/v0.5/plan.md](docs/v0.5/plan.md):v0.5 方案,Claude Code 压缩后保留图片(已发布 0.5.0)。-- [docs/v0.6/plan.md](docs/v0.6/plan.md):v0.6 方案,默认开启自动选图、Claude 桌面版自动打开面板(开发中)。+- [docs/v0.6/plan.md](docs/v0.6/plan.md):v0.6 方案,默认开启自动选图、Claude 桌面版自动打开面板(已发布 0.6.0)。- [docs/history/v0.1/](docs/history/v0.1/):v0.1 的开发记录(原方案、任务记录、各阶段报告、最初的构想),只作参考,不作依据。- [CHANGELOG.md](CHANGELOG.md):每个版本的更新记录,发布时就是 Release 说明。diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 5112612..341dea7 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -2,7 +2,7 @@When a version is released, its section here becomes the GitHub release notes.-## [0.6.0] - Unreleased+## [0.6.0] - 2026-10-13Auto-select on by default, and the panel opens by itself in Claude Desktop.diff --git a/docs/spec.md b/docs/spec.mdindex b822e48..828849b 100644--- a/docs/spec.md+++ b/docs/spec.md@@ -1,6 +1,6 @@# 规格:Context Attachment Manager(上下文素材管理器)-> 本文件是目标、范围、约束和验收标准的唯一事实来源(2026-09-24 经用户、Claude、Codex 三方确认),描述当前版本 v0.5.0,以后随版本更新。v0.4 加的 Claude 桌面 Code 接入,相关内容都标着“v0.4”;它的关卡、任务和验收步骤见 [v0.4/](v0.4/)。v0.5 加的 Claude Code 压缩后保留图片标着“v0.5”,方案和实测见 [v0.5/plan.md](v0.5/plan.md)。v0.6 的默认开启自动选图和 Claude 桌面版自动打开面板标着“v0.6”,见 [v0.6/plan.md](v0.6/plan.md)。项目 2026-10-11 由 Codex Attachment Manager 改名,因为不再只给 Codex 用(用户定);安装用的标识(`codex-attachment-manager`)和数据目录不变,已装的用户照常升级。+> 本文件是目标、范围、约束和验收标准的唯一事实来源(2026-09-24 经用户、Claude、Codex 三方确认),描述当前版本 v0.6.0,以后随版本更新。v0.4 加的 Claude 桌面 Code 接入,相关内容都标着“v0.4”;它的关卡、任务和验收步骤见 [v0.4/](v0.4/)。v0.5 加的 Claude Code 压缩后保留图片标着“v0.5”,方案和实测见 [v0.5/plan.md](v0.5/plan.md)。v0.6 的默认开启自动选图和 Claude 桌面版自动打开面板标着“v0.6”,见 [v0.6/plan.md](v0.6/plan.md)。项目 2026-10-11 由 Codex Attachment Manager 改名,因为不再只给 Codex 用(用户定);安装用的标识(`codex-attachment-manager`)和数据目录不变,已装的用户照常升级。> 技术方案见 [design.md](design.md)。v0.1 的开发记录(原方案、任务记录、各阶段报告、最初的构想)归档在 [history/v0.1/](history/v0.1/),只作参考。## 1. 目标diff --git a/docs/v0.6/plan.md b/docs/v0.6/plan.mdindex 143ead3..06a8122 100644--- a/docs/v0.6/plan.md+++ b/docs/v0.6/plan.md@@ -1,6 +1,6 @@# v0.6 方案:默认开启自动选图;Claude 桌面版自动打开面板-> 状态:用户 2026-10-13 定,开发中。规格以 [spec.md](../spec.md) 为准,实现见 [design.md](../design.md)。+> 状态:用户 2026-10-13 定;开发和实测完成(第 5 节),2026-10-13 发布 v0.6.0(用户同意直接发布)。规格以 [spec.md](../spec.md) 为准,实现见 [design.md](../design.md)。## 1. 背景与目标diff --git a/plugin/.codex-plugin/plugin.json b/plugin/.codex-plugin/plugin.jsonindex 3f6abb6..061c183 100644--- a/plugin/.codex-plugin/plugin.json+++ b/plugin/.codex-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "codex-attachment-manager",- "version": "0.5.0",+ "version": "0.6.0","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 5de4bc6..fd100bb 100644--- a/plugin/src/panel.html+++ b/plugin/src/panel.html@@ -1324,7 +1324,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.5.0" }, appCapabilities: {} })+ request("ui/initialize", { protocolVersion: "2026-01-26", appInfo: { name: "codex-attachment-manager", version: "0.6.0" }, 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 b5aa78a..19b842b 100644--- a/plugin/src/plugin-server.ts+++ b/plugin/src/plugin-server.ts@@ -114,7 +114,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.5.0", icons: [icon("light", "#5d5d5d"), icon("dark", "#cdcdcd")] });+export const serverInfo = (lang: Lang) => ({ name: "codex-attachment-manager", title: say(lang, "server.title"), version: "0.6.0", icons: [icon("light", "#5d5d5d"), icon("dark", "#cdcdcd")] });export function readResource(uri: string): Json {if (uri !== PANEL_URI) throw new Error(`unknown resource ${uri}`);