Windows: Opencode ACP agents fail with "Command not found" yet available in system and user path

Ouverte
#1,237 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
48/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
Calme
Stack technique
kotlin, operating-systems, shell

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

bug
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

Langage dominant
Kotlin
Étoiles
1.9k
Forks
401
Métriques de merge des PR
Aucune PR mergée en 30 j

Préparer son environnement

Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de carlrobertoh/ProxyAI

Toutes les issues de carlrobertoh/ProxyAI

Issues similaires

Plus d'issues Kotlin

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.