Skip to content

fix(desktop): find bundled sidecars in production DMG builds#731

Merged
wpfleger96 merged 1 commit into
mainfrom
wpfleger/doctor-panel-fixes
May 23, 2026
Merged

fix(desktop): find bundled sidecars in production DMG builds#731
wpfleger96 merged 1 commit into
mainfrom
wpfleger/doctor-panel-fixes

Conversation

@wpfleger96
Copy link
Copy Markdown
Collaborator

@wpfleger96 wpfleger96 commented May 23, 2026

command_search_dirs gated the exe parent directory check behind if app.is_some(), but discover_acp_providersfind_command passes app: None. In production DMGs, bundled sidecars (sprout-agent, sprout-mcp-server, etc.) live in Sprout.app/Contents/MacOS/ next to the main exe — but that directory was never searched.

This caused the Doctor panel to show "Sprout Agent — Not installed" in released builds even though the binary was correctly bundled in the DMG.

  • Remove the AppHandle guard so current_exe().parent() is always included in the binary search path
  • In dev, workspace target/ paths already work — this only affects production app bundles

command_search_dirs gated the exe parent directory behind an AppHandle
check, but discover_acp_providers called find_command with app: None.
In production DMGs, bundled sidecars live in Sprout.app/Contents/MacOS/
next to the main exe, so they were never found. Remove the guard so the
exe parent is always searched.
@wpfleger96 wpfleger96 requested a review from a team as a code owner May 23, 2026 01:25
@wpfleger96 wpfleger96 merged commit 9d55bae into main May 23, 2026
13 checks passed
@wpfleger96 wpfleger96 deleted the wpfleger/doctor-panel-fixes branch May 23, 2026 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant