bug: Bundled opencode binary is outdated and lacks `opencode serve` subcommand
Summary
The openwork AUR package bundles its own /usr/bin/opencode binary that is too old to support the opencode serve subcommand, which OpenWork requires for engine functionality. The bundled binary also conflicts with the opencode package from the Arch extra repository.
To Reproduce
- Install
openworkfrom AUR - Run
/usr/bin/opencode serve— fails with "unknown subcommand" - Launch OpenWork — engine fails to start
Expected behavior
The AUR package should either:
- Depend on the
opencodepackage and not bundle its own copy - Bundle a version that supports
opencode serve - Not overwrite
/usr/bin/opencodeif a newer version is already installed
Actual behavior
The bundled opencode binary is too old to have the serve subcommand. OpenWork's engine start fails silently. Every openwork upgrade re-overwrites the binary, undoing manual fixes.
OW version & Desktop info
- OpenWork: 0.11.194-1 (AUR)
- OS: Arch Linux x86_64
- opencode (extra repo): v1.3.5+
Additional context
Workaround — must be re-applied after every openwork upgrade:
sudo pacman -S --overwrite /usr/bin/opencode opencode
we are pinned at opencode v1.2.27
that does have the correct commands and works fine
if you're wanting to use a different version of opencode, there are settings in the desktop app to point to a different path
but we dont recomend it as it can break multiple things.
closed due to age, please reopen and tag me if still valid