Skip to content

Unable to run opencode from source outside of packages/opencode directory on opentui branch #3220

Closed

Description

@kalvenschraut

There is no build available for alpine atm so I am force to clone the repo and just do
bun $HOME/opencode/packages/opencode/src/index.ts as an alias for opencode to start the UI where I want to run agents for. I swapped to the opentui branch due to perf issues I noticed on bigger monitors when full screened. Everything was working mostly great until I pulled in 22f8c228 which now results running into the below error.

Image

This error occurs if running opencode in any directory that is not packages/opencode. Seems like the relative path is assuming its always going be ran from the opencode package, which may be fine if it is bundled into the binary but breaks the only way I have been able to run this on alpine.

So to replicate, checkout the opentui branch of this repo.
from the root do bun packages/opencode/src/index.ts and see the workers error. then do git checkout 22f8c228~ to see it work just fine

Activity

  1. github-actions commented on Oct 16, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  2. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Oct 19, 2025
  3. kalvenschraut commented on Oct 29, 2025

    @kalvenschraut
    Author

    I have actually discovered another working way for alpine support and that is to just clone the repo, build the opencode package and run the linux-x64 bin file. Not sure if this is because it is built on an alpine system with only glibc available or some other reason 🤷 but allows me to use the latest opentui code now

  4. paralin commented on Nov 4, 2025

    @paralin
    Contributor

    This is fixed now by #3922 and can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

opentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions