Windows: Opencode ACP agents fail with "Command not found" yet available in system and user path
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 48/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Lĩnh vực
- desktop-dev, developer-experience, tooling
Hướng nghiên cứu
Start with ExternalAcpAgentService.kt, especially the ensureState logic around the command-not-found error, and trace how the IDE process resolves opencode on Windows. Review AcpAgentService.kt and the external-agent configuration entry points, then reproduce with where opencode and opencode acp --help from the same IDE environment. Done means the plugin reliably launches the installed executable, including when it is available through the Windows PATH or an absolute executable path, with regression coverage for the lookup behavior.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What happened?
Hi,
I was trying to connect the opencode acp to proxyAi but i always get the following message :
OpenCode unavailable. Command 'opencode' not found. Ensure it is installed and available to the IDE process. You can also point the runtime to an absolute executable path.
I am running phpstorm on windows 11, with proxyAi 3.8.0-241.1
opencode was installed using chocolatey,
chocolatey bin folder is available in the sytem and user path
('where opencode' is working in cmd console, as well as 'opencode --version', or 'opencode acp --help')
I couldn't find the option to force the opencode.exe path in the plugin settings.
Did I miss something ?
Thanks in advance.
Relevant log output or stack trace
java.lang.IllegalStateException: Command 'opencode' not found. Ensure it is installed and available to the IDE process. You can also point the runtime to an absolute executable path.
at ee.carlrobert.codegpt.agent.external.ExternalAcpAgentService.ensureState(AcpAgentService.kt:248)
at ee.carlrobert.codegpt.agent.external.ExternalAcpAgentService.ensureSessionReady(AcpAgentService.kt:223)
at ee.carlrobert.codegpt.agent.external.ExternalAcpAgentService.runPromptLoop(AcpAgentService.kt:80)
at ee.carlrobert.codegpt.agent.AgentService$submitExternalMessage$1.invokeSuspend(AgentService.kt:249)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:34)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
at kotlinx.coroutines.internal.SoftLimitedDispatcher$Worker.run(SoftLimitedDispatcher.kt:130)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:89)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:610)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:1188)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:775)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:762)
Steps to reproduce
Have opencode installed using chocolatey
choco install opencode
Activate ProxyAi plugin in phpstorm
Activate Opencode acp in proxyAi plugin Options
Select Opencode in the Agent dropdown menu
CodeGPT version
3.8.2-261
Operating System
Windows
- Ngôn ngữ chính
- Kotlin
- Star
- 1.9k
- Fork
- 401
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của carlrobertoh/ProxyAI
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
carlrobertoh/ProxyAI#1250 ·
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
carlrobertoh/ProxyAI#1233 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
carlrobertoh/ProxyAI#1203 · 1 reaction ·
-
Anthropic Models - HaikuĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
carlrobertoh/ProxyAI#1160 · 2 reaction ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
carlrobertoh/ProxyAI#1068 ·
Tất cả issue của carlrobertoh/ProxyAI
Issue tương tự
-
Location search keeps showing stale "Open-Meteo can't find ..." message after clearing search queryĐang mởBug Needs review
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
breezy-weather/breezy-weather#3082 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
【使用提醒】Mika 操作微信后出现安全风险提示,请谨慎使用Đang mở
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 76/100
wangzan101/Mika#1033 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
commons-app/apps-android-commons#7486 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: ci area: local-media area: startup area: ui platform: bilibili platform: netease platform: youtube status: needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
cwuom/NeriPlayer#794 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:android area:ui bug priority:P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
meraxes89/streamify-apk#449 ·
Maintainer thường phản hồi trong vòng 1 ngày