你需要在你的全局 AGENTS.md 中添加:

On Windows, when running Gradle build/test commands from opencode, prefer adding --no-daemon (for example ./gradlew.bat --no-daemon build) unless the user explicitly needs the Gradle Daemon. This avoids long-lived Gradle Daemon processes causing the shell tool to appear stuck after the command output has finished.

即可解决,lol 😄


解释一下:opencode 通过判断进程是否结束来确认命令的运行状态,但 Gradle🐘 会启动一个守护进程,导致 opencode 在编译结束后死那儿了bbbbbbb

标签: none

添加新评论