openwork icon indicating copy to clipboard operation
openwork copied to clipboard

bug: openwork-server AUR binary ships as bare Bun runtime with no embedded application code

Open pedrohx26 opened this issue 8 months ago • 3 comments

Summary

The AUR package ships /usr/bin/openwork-server as a bare Bun v1.3.6 runtime binary with no embedded application code. It appears bun compile was run without properly bundling the server TypeScript source. When Tauri spawns this binary via sidecar("openwork-server"), it starts a Bun process that does nothing — the server never starts, and the UI shows "Not connected".

To Reproduce

  1. Install openwork from AUR (yay -S openwork or paru -S openwork)
  2. Run file /usr/bin/openwork-server — shows it's a Bun runtime, not a compiled app
  3. Run /usr/bin/openwork-server --help — no server-specific flags, just Bun's default help
  4. Launch OpenWork — UI shows "Not connected"

Expected behavior

/usr/bin/openwork-server should be a working compiled binary that starts the OpenWork BFF server on port 8787, with all server TypeScript source properly embedded.

Actual behavior

The binary is a bare Bun runtime with zero application code. It exits silently or shows Bun's generic help. The server never starts. The UI remains disconnected.

OW version & Desktop info

  • OpenWork: 0.11.194-1 (AUR)
  • OS: Arch Linux x86_64
  • Bun: v1.3.6

Additional context

Workaround: replace /usr/bin/openwork-server with a wrapper script that runs bun cli.ts from a source checkout:

#!/bin/bash
BUN="$HOME/.bun/bin/bun"
cd "$HOME/.cache/openwork-source/packages/server/" || exit 1
exec "$BUN" src/cli.ts "$@"

pedrohx26 avatar Mar 30 '26 17:03 pedrohx26

We'd love some help getting linux stuff in order - unfortunately we dont have the systems or capacity to resolve all this are you able to contribute some PRs?

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

Yes, i can make some PR's out of the bugs i find. I now run a somewhat vibe-debugged version which breaks now and then.

pedrohx26 avatar Apr 07 '26 12:04 pedrohx26

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

OmarMcAdam avatar Oct 28 '26 22:10 OmarMcAdam