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.

docs(changelog): write the 0.10.0 notes for every user

chipfighter962a0d05392c
diff --git a/AGENTS.md b/AGENTS.md
index 136754b..645bf42 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -25,6 +25,7 @@ Context Attachment Manager(上下文素材管理器,2026-10-11 前叫 Codex
- 仓库里的文档和代码不写用户本机的具体路径;通用位置(如 `~/.codex`、`%LOCALAPPDATA%`)可以写。
- 对外的信息以英文为主:README.md、INSTALL.md、CONTRIBUTING.md、eval/README.md、仓库简介、CHANGELOG.md(发布时就是 Release 说明)用英文,README_CN.md、eval/README_CN.md 是中文版;`docs/` 下的规格、方案和开发记录,以及本文件,保持中文(用户 2026-09-28 定)。
- 评测的报告和结果放在 `eval/`,脚本在 `spike/src/eval-*.ts`。README 是给所有用户看的,只在底部留一小节,用白话说两句并链接过去;评测是写给工程师看的(用户 2026-10-24 定)。
+- CHANGELOG 的每一版(也就是 Release 说明)是写给所有用户看的:开头一句话说这一版带来什么,再用白话分“新功能”“修复”“更新后要做的”“怎么测的”,讲用户能感受到的变化;内部机制、token 数、版本号细节等写给工程师的内容,放进最后一个折叠的 `<details>` 技术细节里(用户 2026-11-01 定)。
- 先在 Windows 上开发和测试。技术栈用 TypeScript/Node。
- 界面开发:Claude 自己截图检查效果;做到界面的关键节点时,截图给用户看,停下来等反馈再继续(用户 2026-09-24 确认)。
- 测试时调用模型一律用 `gpt-6-sol`,推理强度 `low`,包括脚本自测和桌面版测试,为了省 token(用户 2026-09-24 要求)。
diff --git a/CHANGELOG.md b/CHANGELOG.md
index f898ef5..8b4f4cb 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,33 +4,47 @@ When a version is released, its section here becomes the GitHub release notes.
## [0.10.0] - 2026-11-01
-Earlier images come back after compaction and resume, with the same IDs, in Codex and Claude Code.
+Long conversations keep their images. When Codex or Claude Code compacts a long conversation, or when you go back to an earlier Claude session, the images from earlier turns are no longer lost: they keep their numbers, and the model can still tell which is which and open the right one again.
-### Features
+### What's new
-- After Codex compacts a task, the images that tools viewed, generated or returned before the compaction go back into the request right after it: pinned images as originals, the others one line each with the model's feature line and ratings. Previously only uploaded images survived a Codex compaction. The panel marks these images as from before the compaction.
-- Images put back after a compaction are now one compact list, one line per image (ID, name, source, turn, feature line, ratings), instead of a placeholder each, on both platforms. In a real session with 127 earlier images this is an estimated 7–9K tokens per request instead of 17–20K.
-- The model can correct a wrong feature line by writing it again with "corrected:".
-- In that list, an image sent again (the same picture) is listed as "same as IMG-…" instead of repeating its features.
-- When the user stops a turn before the model writes the feature lines for its new images, those images are sent once more in the next turn, labelled as still missing a feature line.
+- **Images survive compaction in Codex too.** Until now, when Codex compacted a long task, every image a tool had opened or generated disappeared from the model's view; only the images you uploaded stayed. Now they come back as a short list, each with what the model noted about it and what you said about it, and the model can open the original again when it needs to. The panel marks these images as from before the compaction.
+- **A shorter list after a compaction.** Earlier images now take one line each, in Codex and in Claude Code. In a real session with 127 earlier images, that is about half the space they took before.
+- **Better notes.** The model can correct a note it got wrong, an image you send twice is listed once, and if you stop a reply before the model has noted its new images, it notes them in the next one.
-### Fixes
+### Fixed
-- Since 0.9.0, Claude Code 2.1.309 refused to load the plugin's Claude mod, because it named environment variables through a variable. Claude sessions then did not go through the plugin at all: no placeholders, no Auto-select, even though the image tool still showed. The mod now names each variable directly.
-- Claude Code 2.1.304 and later keep the last messages through a compaction. The plugin now links them the way Claude Code does, so it recognizes the compaction and puts the earlier images back; before, such a compaction could put none back.
-- When Claude Desktop continues a session in a new transcript (it does when you edit an earlier message and send it again), the plugin follows it back to the earlier transcripts, also across several such forks. Images keep their IDs, feature lines and ratings. Before, IDs restarted in the new transcript, so earlier feature lines could attach to the wrong image; lines written that way are now matched back to the right image.
-- Resumed and forked Claude sessions start with the previous session's checked, pinned and Auto-select settings.
-- Long feature lines and ratings are cut by width rather than by character count, whatever the language setting, so English feature lines in a Chinese setup are no longer cut down to the place alone. Ratings now keep as much as feature lines (30 Chinese characters or 100 letters, up from 15 characters), so the user's words are no longer cut in half.
-- In Claude Code, when the model read several images at once and the results came back out of order, an image could get no ID (since 0.4): it went out as an original in every request and was lost after a compaction. Every such image now gets its ID, in the order it was read; feature lines written before are matched to the new IDs.
-- In Claude Code, a request sometimes went out a moment before Claude Code had written the turn's newest images to its transcript (about 1 request in 75 in the logs on the development machine). Those images went without IDs, so the model could not note them in that reply. The engine now reads the transcript again for up to 1.5 seconds when that happens.
-- The note to the model said not to read image files with other tools, meaning the omitted ones, which it should fetch with the image tool. After a compaction, a small model took it for every image and stopped looking at the new files the user named. The note now names the omitted images only and says new ones are looked at as usual.
-- In Claude Code, leaving earlier images out changed the history before Claude Code's prompt-cache marks, which sit on the last two messages, so many requests read only the system prompt from the cache and wrote the whole conversation again (since 0.4). The engine now places the marks in the messages itself: where an earlier request had one before the first change, and just before the first image that will be left out later. Placeholders now show only the ratings noted by the image's own turn, and the list after a compaction the notes as they stood then; later ratings are in the model's own replies. Both no longer change after they go out.
+- **The plugin works in Claude Code again.** Since 0.9.0, Claude Code 2.1.309 and later skipped part of the plugin, so Claude sessions did not use it at all, even though the image tool still showed. If you use Claude Code, this is the main reason to update.
+- **Claude sessions keep their images when you come back to them.** When you edit an earlier message in Claude Desktop, it carries on in a new session file. Before, the image numbers started over there and the model's notes could end up on the wrong image. Now numbers, notes and your checked images carry over, and notes already put on the wrong image in older sessions go back to the right one.
+- **Compactions in Claude Code are no longer missed.** With Claude Code 2.1.304 and later, some compactions were not recognized, and none of the earlier images came back.
+- **Lower cost in Claude Code.** Leaving earlier images out kept breaking Claude's prompt cache, so in our test a session with the plugin cost about twice as much as one without (since 0.4). It now costs about 1.3 times as much.
+- **Smaller fixes:** images read several at once, or just as a request went out, could miss their number; long notes and your ratings were cut short; after a compaction, a small model sometimes stopped looking at the new images you named.
-### Notes
+### After updating
+
+- Reopen Claude sessions that were open, so they use the new version.
+
+### How we tested
+
+- A [long task in Claude Code](https://github.com/chipfighter/context-attachment-manager/blob/main/eval/long-task/README.md), with 51 images, two compactions and a fork: the model answered 19 of 20 questions about earlier images with the plugin. Without it, it answered all 20, because these images were files on disk it could read again; images pasted into the chat have no such copy.
+- A real long session with 152 images, replayed turn by turn with two compactions: the model picked the right image for all 12 questions asked after them.
+- Unit tests, replays of real Codex and Claude sessions, a live test in Claude Desktop, and model tests in Codex (three checks failed, none because of this version's changes).
+
+<details>
+<summary>Technical details</summary>
+
+- After Codex compacts a task, the images that tools viewed, generated or returned before the compaction go back into the request right after it: pinned images as originals, the others one line each (ID, name, source, turn, feature line, ratings). The same one-line list replaces one placeholder per image after a compaction on both platforms: for 127 earlier images an estimated 7–9K tokens per request instead of 17–20K.
+- Claude Code 2.1.309 refused the plugin's Claude mod because it named environment variables through a variable; the mod now names each one directly.
+- Claude Code 2.1.304 and later keep the last messages through a compaction; the plugin now links them the way Claude Code does.
+- When Claude Desktop continues a session in a new transcript, the plugin follows it back to the earlier transcripts, also across several forks, and matches feature lines written under the renumbered IDs back to the right images. Resumed and forked sessions start with the previous session's checked, pinned and Auto-select settings.
+- Feature lines and ratings are cut by width rather than by character count, whatever the language setting; ratings keep as much as feature lines (30 Chinese characters or 100 letters, up from 15 characters).
+- When parallel Reads returned out of order, an image could get no ID (since 0.4); every such image now gets its ID in the order it was read. When a request went out before Claude Code had written the turn's newest images to its transcript (about 1 request in 75 on the development machine), the engine now reads the transcript again for up to 1.5 seconds.
+- The note to the model now says only the omitted images are not to be read with other tools, and that new ones are looked at as usual.
+- Prompt cache: the engine places the message cache marks itself (where an earlier request had one before the first change, and just before the first image that will be left out later). Placeholders show only the ratings noted by the image's own turn, and the list after a compaction the notes as they stood then, so neither changes after it goes out.
+- Earlier transcripts are read only up to the compaction, and their image data stays on disk until needed: for the longest real session tested (9 transcripts, 210 images), about 60 MB more memory and under 2 seconds for the first index.
+- The three Codex self-test checks that failed (gpt-6-sol, low effort): the model misread a faint digit, the model said it could not see an image that was sent, and an image viewed through a path built in code gets no name, as before.
-- After updating, reopen Claude sessions that were open: their image tool still runs the earlier code and numbering until then.
-- Earlier transcripts are read only up to the compaction, and their image data stays on disk until needed: for the longest real session tested (9 transcripts, 210 images), the engine uses about 60 MB more memory and the first index takes under 2 seconds.
-- Verified so far with 300 unit tests, read-only replays of real Codex and Claude sessions, a live test in Claude Desktop (a compaction, a restart of the session, and an edited earlier message that moved the session to a new transcript), and a long real session replayed turn by turn into a test session with two compactions, where the model picked the right image for all 12 questions asked after them. The Codex self-tests ran on gpt-6-sol at low effort, in Chinese and English; three checks failed, none because of this version's changes (the model misread a faint digit, the model said it could not see an image that was sent, and an image viewed through a path built in code gets no name, as before). A long task in Claude Code, compacted twice and then forked, is measured in the [long-task eval](https://github.com/chipfighter/context-attachment-manager/blob/main/eval/long-task/README.md).
+</details>
## [0.9.1] - 2026-10-29