fix(desktop): stage real sidecar binaries in _ensure-sidecar-stubs#2597
Open
sailorpepe wants to merge 1 commit into
Open
fix(desktop): stage real sidecar binaries in _ensure-sidecar-stubs#2597sailorpepe wants to merge 1 commit into
sailorpepe wants to merge 1 commit into
Conversation
_ensure-sidecar-stubs unconditionally `touch`es 0-byte placeholder files in desktop/src-tauri/binaries/. On the documented dev flow (`just setup && just build && just dev`) the real binaries are already compiled to the workspace target dir, but the stubs are never filled — so `tauri dev` stages a 0-byte buzz-acp next to the app binary and the desktop app fails to launch its agent auth helper: Couldn't load sign-in options: failed to run buzz-acp auth helper: Permission denied (os error 13) This breaks Claude Code / Codex harness sign-in on macOS out of the box. Copy the compiled binary into the stub when it exists (chmod +x), matching the cp + chmod pattern `desktop-standalone` / `desktop-release-build` already use. Fall back to `touch` only when the binary is not built yet, preserving the existing tauri-config-validation behavior for flows that have not built the workspace. Distinct from block#2492 / block#2496, which fix the Windows `.exe` stub suffix; this is the macOS empty-fill case. Signed-off-by: sailorpepe <kobumining@gmail.com>
sailorpepe
force-pushed
the
fix/desktop-sidecar-stubs-macos
branch
from
July 23, 2026 19:34
62268e8 to
8925431
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this fixes
On the documented dev flow (
just setup && just build && just dev), the desktop app fails to launch its agent auth helper on macOS:This blocks Claude Code / Codex harness sign-in during onboarding (the "Set up your agent harnesses" step) and in Settings → Agents.
Root cause
_ensure-sidecar-stubsunconditionallytouches 0-byte placeholder files indesktop/src-tauri/binaries/. They exist only to satisfy the tauriexternalBinconfig at build time and are never filled. On the documented flow the real binaries are already compiled byjust build(to the workspace target dir), but the stubs stay empty — sotauri devstages a 0-bytebuzz-acpnext to the app binary, and the app execs an empty file →os error 13.Fix
Copy the compiled binary into the stub when it exists (with
chmod +x), matching thecp+chmodpattern thatdesktop-standaloneanddesktop-release-buildalready use. Fall back totouchonly when the binary isn't built yet, so flows that haven't runjust buildkeep the existing config-validation behavior.Reproduction (macOS, aarch64)
. ./bin/activate-hermit && just setup && just build && just devos error 13above.desktop/src-tauri/binaries/buzz-acp-aarch64-apple-darwinis 0 bytes; the real 40 MB binary is intarget/debug/.buzz-acp --helpruns; the harness loads.Testing
Verified manually via the reproduction above. This is a build-tooling recipe and there is no automated test harness for justfile recipes in the repo — happy to add one if there's a preferred pattern.
Related
Distinct from #2492 / #2496, which fix the Windows
.exestub suffix. This is the macOS empty-fill case; the two are complementary.