diff --git a/pkgs/openwork/default.nix b/pkgs/openwork/default.nix index e8c7f66..b019c2e 100644 --- a/pkgs/openwork/default.nix +++ b/pkgs/openwork/default.nix @@ -194,6 +194,15 @@ in -exec sed -i 's|^Exec=OpenWork.*|Exec=openwork|' {} + wrapProgram $out/bin/openwork \ --set WEBKIT_DISABLE_COMPOSITING_MODE 1 + + # Remove internal Tauri sidecar binaries from $out/bin. + # These (opencode, opencode-router, openwork-server, openwork-orchestrator, + # chrome-devtools-mcp, versions.json) are bundled into the app's resource + # directory at runtime and must NOT be top-level executables — they conflict + # with packages (e.g. opencode) that expose the same wrapped binary names. + for sidecar in opencode opencode-router openwork-server openwork-orchestrator chrome-devtools-mcp versions.json; do + rm -f "$out/bin/$sidecar" + done ''; meta = {