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
test: fix the language in the compaction and backfill tests
chipfighter0c95324e1f0d
diff --git a/spike/src/codex-compaction.test.ts b/spike/src/codex-compaction.test.tsindex 5dc67e5..4b6bda2 100644--- a/spike/src/codex-compaction.test.ts+++ b/spike/src/codex-compaction.test.ts@@ -16,6 +16,10 @@ import { writeSelection } from "../../plugin/src/selection.ts";import { loadThreadIndex } from "../../plugin/src/thread-index.ts";import { png } from "./testkit.ts";+// These tests check the Chinese wording: the language is fixed, so neither the system's language nor one a panel+// reported on this machine decides it (v0.1-14).+process.env.CAM_LANG = "zh";+type Json = Record<string, any>;const threadId = "01a0d301-0000-7000-8000-0000000000cc";const red = `data:image/png;base64,${png(16, 16, () => [220, 30, 30]).toString("base64")}`;diff --git a/spike/src/feature-backfill.test.ts b/spike/src/feature-backfill.test.tsindex 7f2a496..d62219d 100644--- a/spike/src/feature-backfill.test.ts+++ b/spike/src/feature-backfill.test.ts@@ -17,6 +17,10 @@ import { awaitingLine, loadThreadIndex } from "../../plugin/src/thread-index.ts"import { image, pngA, pngB, text, transcript } from "./claude-fixtures.ts";import { png } from "./testkit.ts";+// These tests check the Chinese wording: the language is fixed, so neither the system's language nor one a panel+// reported on this machine decides it (v0.1-14).+process.env.CAM_LANG = "zh";+type Json = Record<string, any>;const threadId = "01a0d301-0000-7000-8000-0000000000bf";const red = `data:image/png;base64,${png(16, 16, () => [220, 30, 30]).toString("base64")}`;