Skip to content

Add known ACP server paths to $PATH automatically? #1643

Description

@cmarmo

Description

I would like to configure a opencode client with some custom parameters so it can be used with jupyter-ai. Everything works fine as far as I am managing my local linux (Ubuntu) installation:

  • installing opencode with curl (as user, not systemwide)
  • editing .config/opencode/opencode.json
  • creating and activating a mamba env
  • installing jupyterlab and jupyter-ai via conda-forge

Launching jupyter lab I'm able to run opencode via terminal or in the chat.
🥳
Note that, locally, installing and configuring opencode after jupyter-ai doesn't change anything: I am still able to run the chat as expected.

I tried to containerize all that without success using either quay.io/jupyter/minimal-notebook or mambaorg/micromamba:latest : nothing worked... I have re-ordered the installs and the copy of the configuration files in any possible combination (out of desperation) and I always have:

[PersonaManagerExtension]  - AI persona from entry point 'opencode-acp' has unmet requirements: This persona requires `opencode` to be installed. See https://opencode.ai for installation instructions.

I know opencode is installed as I am able to launch it with the right configuration, from the jupyter lab terminal.

Reproduce

  1. Clone https://github.com/cmarmo/minimal-undetect-persona/
  2. Build the image with docker build . -t <your image name>
  3. Run the image with docker run -it --rm -p 8888:8888 <your image name>
  4. Connect to the jupyter lab interface
  5. Open a chat : no opencode persona is detected and the log says :
AI persona from entry point 'opencode-acp' has unmet requirements: This persona requires `opencode` to be installed. See https://opencode.ai for installation instructions.
  1. Open a terminal and run opencode : the agent is there

Expected behavior

Opencode agent is usable both via terminal and chat.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBugs reported by users

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions