From 816237c101645954d2a0ecf4bb9360a9cc71ddf1 Mon Sep 17 00:00:00 2001 From: David Brailovsky Date: Mon, 3 Aug 2026 13:57:51 +0200 Subject: [PATCH] fix(coding-agent): target baseline x64 CPUs (#7390) Fixes #7149 Co-authored-by: Mario Zechner --- packages/coding-agent/CHANGELOG.md | 1 + scripts/build-binaries.sh | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/coding-agent/CHANGELOG.md b/packages/coding-agent/CHANGELOG.md index dd37d38b2..6c159b8ee 100644 --- a/packages/coding-agent/CHANGELOG.md +++ b/packages/coding-agent/CHANGELOG.md @@ -13,6 +13,7 @@ ### Fixed +- Fixed standalone x64 binaries requiring Haswell-era AVX2/BMI2 instructions by compiling release executables against Bun's baseline runtime ([#7149](https://github.com/earendil-works/pi/issues/7149)). - Fixed `Ctrl+X` copy confirmations in fullscreen mode adding a transcript status line instead of showing the transient `Copied!` marker. - Fixed Kitty image previews in fullscreen mode overlapping the sticky editor and footer dock while scrolling. - Fixed image-heavy fullscreen sessions lagging when layout changes retransmitted visible Kitty image payloads and rendered the transcript twice per frame. diff --git a/scripts/build-binaries.sh b/scripts/build-binaries.sh index 4b4df3590..bae8705f8 100755 --- a/scripts/build-binaries.sh +++ b/scripts/build-binaries.sh @@ -141,13 +141,18 @@ fi for platform in "${PLATFORMS[@]}"; do echo "Building for $platform..." + bun_target="bun-$platform" + if [[ "$platform" == *-x64 ]]; then + bun_target="${bun_target}-baseline" + fi + # Bun compiled executables only embed worker scripts when they are passed as # explicit build entrypoints. The runtime can still use new URL(...), but the # worker must be present in the compiled executable. if [[ "$platform" == windows-* ]]; then - bun build --compile --target=bun-$platform ./dist/bun/cli.js ./src/utils/image-resize-worker.ts --outfile "$OUTPUT_DIR/$platform/pi.exe" + bun build --compile --target="$bun_target" ./dist/bun/cli.js ./src/utils/image-resize-worker.ts --outfile "$OUTPUT_DIR/$platform/pi.exe" else - bun build --compile --target=bun-$platform ./dist/bun/cli.js ./src/utils/image-resize-worker.ts --outfile "$OUTPUT_DIR/$platform/pi" + bun build --compile --target="$bun_target" ./dist/bun/cli.js ./src/utils/image-resize-worker.ts --outfile "$OUTPUT_DIR/$platform/pi" fi done