summaryrefslogtreecommitdiff
path: root/.opencode/plugin/superpowers.js
diff options
context:
space:
mode:
authorJosh Thomas <josh@joshthomas.dev>2025-11-26 11:38:35 -0600
committerGitHub <noreply@github.com>2025-11-26 09:38:35 -0800
commit207a23e4d554c87b63ceee0af5e868f940f476ec (patch)
tree4c164444d0a7a58b313fca5d4fc679ba69ef5a70 /.opencode/plugin/superpowers.js
parentc35c5f637e50e97c8d2577e710ebcd298c5ff3b6 (diff)
fix(opencode): Use `synthetic: true` for invisible content injection (#122)
The OpenCode plugin injects the bootstrap and skill content as visible user messages. While `noReply: true` prevents an AI response, the injected content still appears in the chat UI which makes it just a bit noisy. OpenCode's `TextPartInput` supports a `synthetic` Boolean property that hides parts from the UI while keeping them visible to the AI -- it's been available in the v2 message format since around the v1.0.0 version bump.
Diffstat (limited to '.opencode/plugin/superpowers.js')
-rw-r--r--.opencode/plugin/superpowers.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/.opencode/plugin/superpowers.js b/.opencode/plugin/superpowers.js
index 4645f5f..c9a6e29 100644
--- a/.opencode/plugin/superpowers.js
+++ b/.opencode/plugin/superpowers.js
@@ -67,7 +67,7 @@ ${toolMapping}
path: { id: sessionID },
body: {
noReply: true,
- parts: [{ type: "text", text: bootstrapContent }]
+ parts: [{ type: "text", text: bootstrapContent, synthetic: true }]
}
});
return true;
@@ -132,8 +132,8 @@ ${toolMapping}
body: {
noReply: true,
parts: [
- { type: "text", text: `Loading skill: ${name || skill_name}` },
- { type: "text", text: `${skillHeader}\n\n${content}` }
+ { type: "text", text: `Loading skill: ${name || skill_name}`, synthetic: true },
+ { type: "text", text: `${skillHeader}\n\n${content}`, synthetic: true }
]
}
});