openwork icon indicating copy to clipboard operation
openwork copied to clipboard

bug: Bundled opencode binary is outdated and lacks `opencode serve` subcommand

Open pedrohx26 opened this issue 8 months ago • 2 comments

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

  1. Install openwork from AUR
  2. Run /usr/bin/opencode serve — fails with "unknown subcommand"
  3. Launch OpenWork — engine fails to start

Expected behavior

The AUR package should either:

  • Depend on the opencode package and not bundle its own copy
  • Bundle a version that supports opencode serve
  • Not overwrite /usr/bin/opencode if 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

pedrohx26 avatar Mar 30 '26 17:03 pedrohx26

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.

src-opn avatar Apr 06 '26 16:04 src-opn

closed due to age, please reopen and tag me if still valid

OmarMcAdam avatar Oct 28 '26 22:10 OmarMcAdam