Skip to content

fix: #561#563

Open
AshhKetchup wants to merge 1 commit intodifferent-ai:devfrom
AshhKetchup:bug/#561
Open

fix: #561#563
AshhKetchup wants to merge 1 commit intodifferent-ai:devfrom
AshhKetchup:bug/#561

Conversation

@AshhKetchup
Copy link

@AshhKetchup AshhKetchup commented Feb 14, 2026

Root cause: On macOS, GUI applications don't inherit shell profile modifications (.zshrc, .bashrc). When OpenWork spawns the opencode engine, the PATH doesn't include paths like
/opt/homebrew/bin where Homebrew-installed tools like npx reside.

The fix (packages/desktop/src-tauri/src/paths.rs): Added a common_tool_paths() function that returns typical locations where user-installed tools are found:

  • macOS: /opt/homebrew/bin, /usr/local/bin, ~/.nvm/current/bin, ~/.volta/bin, ~/.bun/bin, ~/.cargo/bin, etc.
  • Linux: Similar paths adapted for Linux conventions
  • Windows: volta, pnpm, cargo, npm global paths

These paths are now prepended to the PATH environment variable when spawning processes.

To test the fix: Build and run the app, then try enabling your Playwright MCP server - it should now find npx correctly without needing to specify the full path.
fixes #561

Root cause: On macOS, GUI applications don't inherit shell profile modifications (.zshrc, .bashrc). When OpenWork spawns the opencode engine, the PATH doesn't include paths like
  /opt/homebrew/bin where Homebrew-installed tools like npx reside.

  The fix (packages/desktop/src-tauri/src/paths.rs): Added a common_tool_paths() function that returns typical locations where user-installed tools are found:
  - macOS: /opt/homebrew/bin, /usr/local/bin, ~/.nvm/current/bin, ~/.volta/bin, ~/.bun/bin, ~/.cargo/bin, etc.
  - Linux: Similar paths adapted for Linux conventions
  - Windows: volta, pnpm, cargo, npm global paths

  These paths are now prepended to the PATH environment variable when spawning processes.

  To test the fix: Build and run the app, then try enabling your Playwright MCP server - it should now find npx correctly without needing to specify the full path.
@vercel
Copy link

vercel bot commented Feb 14, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openwork-software Ready Ready Preview, Comment Feb 14, 2026 7:03am

@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

Performing one time database migration, may take a few minutes...
sqlite-migration:done
Database migration complete.

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.

[Bug]:

1 participant