mirror of
https://github.com/different-ai/openwork
synced 2026-04-25 17:15:34 +02:00
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.
13 lines
227 B
JSON
13 lines
227 B
JSON
{
|
|
"name": "@different-ai/openwork-workspace",
|
|
"version": "0.0.0",
|
|
"lockfileVersion": 3,
|
|
"requires": true,
|
|
"packages": {
|
|
"": {
|
|
"name": "@different-ai/openwork-workspace",
|
|
"version": "0.0.0"
|
|
}
|
|
}
|
|
}
|