Skip to content

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.

fix(claude): /cam 面板的文字不传 undefined 属性,复制按钮用按下时的界面

chipfighterae93eaed8b30
diff --git a/hooks/register.js b/hooks/register.js
index 49ecf06..9a11385 100644
--- a/hooks/register.js
+++ b/hooks/register.js
@@ -166,14 +166,14 @@ async function drawPane($, e) {
flexDirection: 'column', rowGap: 1,
children: [
Text({ bold: true, children: [w.title] }),
- Text({ color: routing?.active ? undefined : 'yellow', dimColor: !!routing?.active, children: [status] }),
+ Text(routing?.active ? { dimColor: true, children: [status] } : { color: 'yellow', children: [status] }),
...(overview ? [Text({ children: [w.summary(overview.images, overview.off)] })] : []),
Box({
flexDirection: 'row', columnGap: 2,
children: [
Link({ href: url, label: w.open }),
Button({ key: 'copy', label: copied ? w.copied : w.copy, onPress: async (press) => {
- await $.ui.copy({ text: url, surface: press?.surface })
+ await $.ui.copy({ text: url, surface: press.surface })
copied = true
await $.ui.invalidate('ui.render')
} }),