anomalyco / anomalyco/opencode

Why does Opencode ACP agent get stuck with PowerShell process-launch scripts?

Open
#48,925 1 comment 0 reactions 1 assignee View on GitHub

@Hona is already working on this.

Since Sep 14, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

The plugin in Rider gets stuck with PowerShell process-launch scripts command like $log, $err, $p, $exe, and $sdk.
Not every time, but often enough it's annoying. I see the animation running and the process never finishes. I have to stop it and type continue.

Is this related to the model being used?

Examples of commands the tool created:

$log="$env:TEMP\graphrag-api.out.log"; $err="$env:TEMP\graphrag-api.err.log"; if(Test-Path $log){Remove-Item $log}; if(Test-Path $err){Remove-Item $err}; $p = Start-Process -FilePath "dotnet" -ArgumentList 'run','--project','src\GraphRag.Api','-c','Debug','--no-build' -WorkingDirectory "C:\inetpub\wwwroot\GraphRagGeneral" -RedirectStandardOutput $log -RedirectStandardError $err -PassThru -WindowStyle Hidden; $p.Id | Set-Content "$env:TEMP\graphrag-api.pid"; "PID=$($p.Id)"

$exe = "C:\inetpub\wwwroot\GraphRagGeneral\src\GraphRag.Api\bin\Debug\net10.0\GraphRag.Api.exe"; $log="$env:TEMP\graphrag-api.out.log"; $err="$env:TEMP\graphrag-api.err.log"; if(Test-Path $log){Remove-Item $log -Force}; if(Test-Path $err){Remove-Item $err -Force}; $p = Start-Process -FilePath $exe -WorkingDirectory "C:\inetpub\wwwroot\GraphRagGeneral\src\GraphRag.Api\bin\Debug\net10.0" -RedirectStandardOutput $log -RedirectStandardError $err -PassThru -WindowStyle Hidden; $p.Id | Set-Content "$env:TEMP\graphrag-api.pid"; "PID=$($p.Id)"

Plugins

Opencode Rider ACP Plugin

OpenCode version

1.18.30

Steps to reproduce

This happens wil all kinds of prompts. I am using .NET apps in Rider in Windows 11. It's been happening for a long time. Rider and the plugin have been updated several times.

I am not sure if changing models helps.

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

I am using Jetbrains Rider

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.