Skip to content

Conversation

@jamadeo
Copy link
Collaborator

@jamadeo jamadeo commented Nov 14, 2025

This started out as just a fix for windows, but we can simplify a lot here.

Copilot AI review requested due to automatic review settings November 14, 2025 17:50
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the binary path resolution logic to focus specifically on finding the goosed binary, removing the more general getBinaryPath function. The changes simplify the API surface by removing unused functionality for resolving other binaries like npx and uvx.

Key Changes

  • Renamed getBinaryPath to getGoosedBinaryPath and removed support for resolving multiple binary types
  • Added target/debug to the search paths for development builds
  • Removed the get-binary-path IPC handler and corresponding preload API

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
ui/desktop/src/utils/pathUtils.ts Simplified binary path resolution to only handle goosed, removed security checks that were overly defensive, added target/debug search path
ui/desktop/src/preload.ts Removed getBinaryPath from the Electron API type and IPC invocation
ui/desktop/src/main.ts Removed get-binary-path IPC handler and updated import
ui/desktop/src/goosed.ts Updated to use renamed getGoosedBinaryPath function
ui/desktop/src/components/settings/extensions/utils.test.ts Removed mockElectron definition that is no longer needed

Copilot AI review requested due to automatic review settings November 14, 2025 19:11
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.

@jamadeo jamadeo changed the title Do a better job of finding goosed on windows Simplify finding goosed Nov 14, 2025
@jamadeo jamadeo merged commit 8082c69 into main Nov 17, 2025
17 checks passed
aharvard added a commit that referenced this pull request Nov 18, 2025
* origin/main: (60 commits)
  chore: incorporate LF feedback (#5787)
  docs: quick launcher (#5779)
  Bump auto scroll threshold (#5738)
  fix: add one-time cleanup for linux hermit locking issues (#5742)
  Don't show update tray icon if GOOSE_VERSION is set (#5750)
  fix: get win node path from registry (#5731)
  Handle spaces in extension names also (#5770)
  Remove empty settings card for Scheduling Engine (#5771)
  fix windows cli build (#5768)
  fix: Implement a CredentialStore for auth (#5741)
  blog post: How to Successfully Migrate Your App with an AI Agent (#5762)
  Simplify finding `goosed` (#5739)
  More time for goosed (#5746)
  Match lower case (#5763)
  scan recipe for security when saving recipe (#5747)
  feat: trying grok for live test (#5732)
  Platform Extension MOIM (Minus One Info Message) (#5027)
  docs: remove hackathon banner (#5756)
  Fix: Recipes respect the quiet flag (#5743)
  docs: update cli commands (#5744)
  ...
katzdave added a commit that referenced this pull request Nov 18, 2025
* 'main' of github.com:block/goose: (125 commits)
  Document Mistral AI provider (#5799)
  docs: Add Community Stars recipe script and txt file (#5776)
  chore: incorporate LF feedback (#5787)
  docs: quick launcher (#5779)
  Bump auto scroll threshold (#5738)
  fix: add one-time cleanup for linux hermit locking issues (#5742)
  Don't show update tray icon if GOOSE_VERSION is set (#5750)
  fix: get win node path from registry (#5731)
  Handle spaces in extension names also (#5770)
  Remove empty settings card for Scheduling Engine (#5771)
  fix windows cli build (#5768)
  fix: Implement a CredentialStore for auth (#5741)
  blog post: How to Successfully Migrate Your App with an AI Agent (#5762)
  Simplify finding `goosed` (#5739)
  More time for goosed (#5746)
  Match lower case (#5763)
  scan recipe for security when saving recipe (#5747)
  feat: trying grok for live test (#5732)
  Platform Extension MOIM (Minus One Info Message) (#5027)
  docs: remove hackathon banner (#5756)
  ...
BlairAllan pushed a commit to BlairAllan/goose that referenced this pull request Nov 29, 2025
Signed-off-by: Blair Allan <Blairallan@icloud.com>
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.

3 participants