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): 找不到 Node 24 时的提示也给只装了 Claude 的用户指路
chipfighter93dc2c2fb71a
diff --git a/plugin/scripts/launch b/plugin/scripts/launchindex 4f6b88d..db0edb7 100755--- a/plugin/scripts/launch+++ b/plugin/scripts/launch@@ -2,6 +2,7 @@# Purpose: v0.1 - start one of the plugin's scripts (the MCP server, the command line) on macOS and Linux with a Node# that runs TypeScript directly (Node 24 or newer). Tries the Node runtimes that Codex ships first, then a node on PATH.# Codex runs this file for the plugin's MCP server (.mcp.json: ./scripts/launch); on Windows it finds launch.cmd.+# v0.4: Claude Code runs it too (.claude-plugin/plugin.json); without Codex, the node on PATH must be Node 24 or newer.# Input: the script to run and its arguments. Output: whatever the script prints (the MCP stdio stream).set -eu@@ -36,5 +37,5 @@ if node_path=$(command -v node 2>/dev/null) && "$node_path" -e 'process.exit(Numexec "$node_path" "$@"fi-printf '%s\n' 'codex-attachment-manager: no Node 24 or newer found; update Codex or install Node 24' >&2+printf '%s\n' 'codex-attachment-manager: no Node 24 or newer found; install Node 24 or newer from nodejs.org (with Codex, updating Codex also works)' >&2exit 127diff --git a/plugin/scripts/launch.cmd b/plugin/scripts/launch.cmdindex 180fc33..cad35ae 100644--- a/plugin/scripts/launch.cmd+++ b/plugin/scripts/launch.cmd@@ -3,6 +3,7 @@ rem Purpose: P5 - start one of the plugin's scripts (the MCP server, the commandrem directly (Node 24 or newer). Tries the Node runtimes that Codex ships first, then a node on PATH.rem Codex finds this file for the plugin's MCP server (.mcp.json: ./scripts/launch); scripts/launch is the macOS andrem Linux version. Input: the script to run and its arguments. Output: whatever the script prints (the MCP stdio stream).+rem v0.4: Claude Code runs it too (.claude-plugin/plugin.json); without Codex, the node on PATH must be Node 24 or newer.setlocalif "%~1"=="" (@@ -44,5 +45,5 @@ node %*exit /b:missing-echo codex-attachment-manager: no Node 24 or newer found; update Codex or install Node 24 1>&2+echo codex-attachment-manager: no Node 24 or newer found; install Node 24 or newer from nodejs.org ^(with Codex, updating Codex also works^) 1>&2exit /b 127