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
- Clone https://github.com/cmarmo/minimal-undetect-persona/
- Build the image with
docker build . -t <your image name>
- Run the image with
docker run -it --rm -p 8888:8888 <your image name>
- Connect to the jupyter lab interface
- 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.
- Open a terminal and run opencode : the agent is there
Expected behavior
Opencode agent is usable both via terminal and chat.
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:
.config/opencode/opencode.jsonLaunching 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-notebookormambaorg/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:I know opencode is installed as I am able to launch it with the right configuration, from the jupyter lab terminal.
Reproduce
docker build . -t <your image name>docker run -it --rm -p 8888:8888 <your image name>Expected behavior
Opencode agent is usable both via terminal and chat.