The OpenCode Graphify plugin prepends its reminder message to the first terminal command using &&.
Example generated command:
echo "[graphify] knowledge graph at graphify-out/..." && git branch --show-current
This fails when OpenCode is using Windows PowerShell 5.1 because && is not supported as a statement separator.
Error
The token '&&' is not a valid statement separator in this version.
CategoryInfo: ParserError
FullyQualifiedErrorId: InvalidEndOfLine
Steps to reproduce
Use Graphify with OpenCode on Windows.
Run OpenCode with Windows PowerShell 5.1 as the terminal shell.
Execute the first terminal command after opening the project.
The Graphify plugin prepends the reminder using &&, causing the command to fail.
The relevant generated plugin code is similar to:
output.args.command =
'echo "[graphify] ... " && ' +
output.args.command;
Expected behavior
The reminder should be prepended using syntax that works in PowerShell and POSIX-compatible shells.
For example:
output.args.command =
'echo "[graphify] ... "; ' +
output.args.command;
Using ; works in Windows PowerShell 5.1 as well as Bash and similar shells.
Environment
OS: Windows
Shell: Windows PowerShell 5.1
Integration: Graphify OpenCode plugin
Plugin path: .opencode/plugins/graphify.js
The OpenCode Graphify plugin prepends its reminder message to the first terminal command using &&.
Example generated command:
echo "[graphify] knowledge graph at graphify-out/..." && git branch --show-current
This fails when OpenCode is using Windows PowerShell 5.1 because && is not supported as a statement separator.
Error
The token '&&' is not a valid statement separator in this version.
CategoryInfo: ParserError
FullyQualifiedErrorId: InvalidEndOfLine
Steps to reproduce
Use Graphify with OpenCode on Windows.
Run OpenCode with Windows PowerShell 5.1 as the terminal shell.
Execute the first terminal command after opening the project.
The Graphify plugin prepends the reminder using &&, causing the command to fail.
The relevant generated plugin code is similar to:
output.args.command =
'echo "[graphify] ... " && ' +
output.args.command;
Expected behavior
The reminder should be prepended using syntax that works in PowerShell and POSIX-compatible shells.
For example:
output.args.command =
'echo "[graphify] ... "; ' +
output.args.command;
Using ; works in Windows PowerShell 5.1 as well as Bash and similar shells.
Environment
OS: Windows
Shell: Windows PowerShell 5.1
Integration: Graphify OpenCode plugin
Plugin path: .opencode/plugins/graphify.js