Skip to content

Commit 4e9b9ea

Browse files
committed
v0.5.29: remove debug logging from ACM-11 heuristic
1 parent 18612fc commit 4e9b9ea

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://json.schemastore.org/package.json",
33
"name": "opencode-acm",
4-
"version": "0.5.28",
4+
"version": "0.5.29",
55
"type": "module",
66
"license": "MIT",
77
"description": "Active Context Management plugin for OpenCode — pin, prune, scan, compact, and manage context with surgical precision",

src/index.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -168,17 +168,12 @@ const plugin: Plugin = async (input, options) => {
168168
// — detected by the [Metadata: sender=...] prefix injected by the Mattermost plugin
169169
const lastUserParts = (lastUserMsg as any).parts ?? []
170170
const lastUserText = lastUserParts.find((p: any) => p.type === "text" && !p.synthetic)?.text ?? ""
171-
process.stderr.write(`[ACM debug] lastUserMsg id=${((lastUserMsg.info) as any)?.id?.slice(-12)} role=${((lastUserMsg.info) as any)?.role} parts=${lastUserParts.length}\n`)
172-
for (const p of lastUserParts) {
173-
process.stderr.write(`[ACM debug] part type=${p.type} synthetic=${!!(p as any).synthetic} text=${JSON.stringify((p.text ?? "").slice(0, 120))}\n`)
174-
}
175171
const heuristicMatched = (
176172
lastUserText.startsWith("[Metadata:") ||
177173
lastUserText.startsWith("The user sent the following message:") ||
178174
lastUserText.startsWith("<system-reminder>") ||
179175
lastUserText.includes("\n[Metadata: sender=")
180176
)
181-
process.stderr.write(`[ACM debug] heuristicMatched=${heuristicMatched}${heuristicMatched ? "SKIP" : "INJECT"}\n`)
182177
if (heuristicMatched) return
183178

184179
// 3. Remove previously injected system-reminder synthetic parts (dedup)

0 commit comments

Comments
 (0)