Skip to content

Stop paying the multimodal tax. Your AI agent keeps every image it has seen but only sends the ones it needs: lighter chats, no endless reconnecting, no starting over. Works with Codex, Claude Code, Cline, Gemini CLI, OpenCode, WorkBuddy and more. Install once, forget it.

chore(release): 版本号改为 0.4.0,CHANGELOG 加 0.4.0 一节

chipfighter642db521171e
diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json
index 7208b88..948bdb6 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.3.0",
+ "version": "0.4.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.yml
index 5cbfb83..1e508bb 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.yml
+++ b/.github/ISSUE_TEMPLATE/bug_report.yml
@@ -1,5 +1,5 @@
name: 问题反馈 / Bug report
-description: 插件装不上、面板打不开、Codex 连不上,或者结果不对 / Something does not work
+description: 插件装不上、面板打不开、Codex 或 Claude 连不上,或者结果不对 / Something does not work
labels: [bug]
body:
- type: markdown
@@ -10,6 +10,15 @@ body:
**Codex 连不上时 / If Codex cannot connect:** 先运行卸载命令恢复直连(见 README 的“卸载”),再来提问题。
Run the uninstall command from the README first to restore the direct connection.
+ **Claude 连不上时 / If Claude Code cannot connect:** 卸载 Claude 插件后,新会话会直接连接。
+ Uninstall the Claude plugin; new sessions then connect directly.
+ - type: dropdown
+ id: app
+ attributes:
+ label: 应用 / App
+ options: [Codex, Claude Desktop]
+ validations:
+ required: true
- type: dropdown
id: platform
attributes:
@@ -20,15 +29,15 @@ body:
- type: input
id: codex
attributes:
- label: Codex 版本 / Codex version
- description: 桌面版的版本号,或者 `codex --version` 的输出 / Desktop app version, or the output of `codex --version`
+ label: 应用版本 / App version
+ description: Codex 桌面版的版本号或 `codex --version` 的输出;Claude 桌面版的版本号或 `claude --version` 的输出 / The desktop app's version, or the output of `codex --version` or `claude --version`
validations:
required: true
- type: input
id: plugin
attributes:
label: 插件版本 / Plugin version
- placeholder: "0.3.0"
+ placeholder: "0.4.0"
- type: textarea
id: what
attributes:
@@ -41,8 +50,9 @@ body:
attributes:
label: 安装状态 / Install status
description: |
- `cam status` 的输出(不含凭据)/ Output of `cam status` (it contains no credentials).
- render: json
+ Codex:`cam status` 的输出(不含凭据);Claude:`claude plugin list` 的输出。
+ Codex: the output of `cam status` (it contains no credentials). Claude: the output of `claude plugin list`.
+ render: text
- type: textarea
id: logs
attributes:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 44dcaf0..5355861 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,27 @@
When a version is released, its section here becomes the GitHub release notes.
+## [0.4.0] - 2026-10-11
+
+Now in Claude Desktop too, under a new name: Context Attachment Manager.
+
+### Features
+
+- Works with Claude Code in the Code tab of Claude Desktop. Install the plugin from this repository's marketplace and type `/cam` in a session: the same panel as in Codex opens in Claude Desktop's built-in browser, next to the conversation. The image list, previews, unchecking single images or whole turns, filters, the request estimate, `need IMG-xxx`, Auto-select and both languages work as in Codex.
+- Nothing to configure: the plugin points each Claude Code session at the local engine when the session starts and puts it back when the session ends. Your Claude subscription sign-in is passed through unchanged, and no settings files are edited.
+- Claude accounts created on or after August 31, 2026 check the model's earlier thinking against the conversation before it. On such accounts the engine leaves out the earlier thinking that no longer matches the conversation as sent, so unchecking still takes effect. Thinking from after the change is kept, and checking an image again brings back the thinking from before. The panel says how many thinking records the last request left out.
+- With Auto-select on in Claude Code, the model's `cam_view_image` calls don't ask for permission; your own settings and hooks still apply.
+- The project is renamed from Codex Attachment Manager to Context Attachment Manager, and the repository to `chipfighter/context-attachment-manager`; old links redirect. The install ID (`codex-attachment-manager`) and the data folder stay the same, so upgrading works as before.
+- In Codex, the panel and the requests it sends work as in 0.3.0.
+
+### Notes
+
+- Tested on Windows in Claude Desktop with Claude Code 2.1.295 and Claude Haiku 5.5, in Chinese and English: after images were left out, the model kept its earlier descriptions, asked for images by ID when it needed them, and fetched them itself with Auto-select on. Newer accounts were simulated with Anthropic's own switch for this check.
+- Leaving out earlier thinking has a cost: without its earlier reasoning, the model may think again and use more tokens. In one test, the same follow-up question took 2,422 thinking tokens instead of 29. This happens only on newer accounts, and only to thinking that came after an image you left out.
+- Not tried yet in Claude Desktop: forking, `/compact` and `/rewind`, subagents, uninstalling and reinstalling, restarting the app, a sign-in refresh, and macOS and Linux. Feedback in the issues is welcome.
+- Claude Desktop can't add a plugin marketplace from GitHub by itself yet, so adding this one takes the `claude` command once; see the README. Without Codex installed, the plugin needs Node 24 or later.
+- If `/cam` is the first message of a new session, the prompt box may say the command doesn't exist. Send it anyway: Claude Desktop starts the session with your first message, and the plugin adds `/cam` then.
+
## [0.3.0] - 2026-10-06
Let the model pick the images it needs.
diff --git a/plugin/.codex-plugin/plugin.json b/plugin/.codex-plugin/plugin.json
index 6875e2b..c2d05e7 100644
--- a/plugin/.codex-plugin/plugin.json
+++ b/plugin/.codex-plugin/plugin.json
@@ -1,6 +1,6 @@
{
"name": "codex-attachment-manager",
- "version": "0.3.0",
+ "version": "0.4.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.html
index a864c67..28a97a8 100644
--- a/plugin/src/panel.html
+++ b/plugin/src/panel.html
@@ -1315,7 +1315,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.3.0" }, appCapabilities: {} })
+ request("ui/initialize", { protocolVersion: "2026-01-26", appInfo: { name: "codex-attachment-manager", version: "0.4.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.ts
index 2fd6efa..5942019 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.3.0", icons: [icon("light", "#5d5d5d"), icon("dark", "#cdcdcd")] });
+export const serverInfo = (lang: Lang) => ({ name: "codex-attachment-manager", title: say(lang, "server.title"), version: "0.4.0", icons: [icon("light", "#5d5d5d"), icon("dark", "#cdcdcd")] });
export function readResource(uri: string): Json {
if (uri !== PANEL_URI) throw new Error(`unknown resource ${uri}`);