fix: correct $ARGUMENTS token in plugin-compaction-init template

OpenCode's argument token is $ARGUMENTS, not $ARGUMENTS$. With the
extra dollar sign, OpenCode did not substitute the token, so the LLM
ended up writing the literal $ARGUMENTS$ line into the memory file
when no arguments were passed.
This commit is contained in:
2026-08-11 12:55:37 +05:30
parent 387457ea94
commit 9f549acfde
3 changed files with 9 additions and 5 deletions
+2 -2
View File
@@ -21,7 +21,7 @@ const initCommandName = "plugin-compaction-init";
/**
* Builds the prompt the auto-registered `/plugin-compaction-init` slash
* command sends to the model. `$ARGUMENTS$` is left unsubstituted so
* command sends to the model. `$ARGUMENTS` is left unsubstituted so
* OpenCode substitutes it at invocation time.
*
* @param memoryFile Literal path to the memory file, inserted verbatim.
@@ -46,7 +46,7 @@ Keep all details related to the keep topics below, and discard everything relate
- Any other older discussions not mentioned above.
$ARGUMENTS$
$ARGUMENTS
`;
}