Repository navigation
Run from source on macOS and find agent tools however they were installed - #1
Merged
Merged
Conversation
…lled macOS from source: - Start Commonroom.command launcher (desktop app if set up, else Python 3.10+ and the browser) - Clear error for Python older than 3.10 (macOS ships 3.9) - Stopping the service (Ctrl-C, closed Terminal, SIGTERM, /api/shutdown) ends running agents - A turn no longer hangs on processes an agent left holding its pipes - Refuse a port another program listens on via the wildcard address - Desktop shell: own profile folder and log folder, user PATH first, Python 3.14/3.15 - Folder picker opens in front; Add project shortcut shown as Cmd+O - README, CONTRIBUTING, ARCHITECTURE and bug template cover macOS; CI runs on macOS Tool detection (macOS and Windows): - macOS: search the login shell's PATH (nvm, fnm, asdf, mise, Homebrew) plus common install folders - Windows: search the PATH saved in the registry plus npm, winget, Scoop, Chocolatey, Volta, nvm-windows, pnpm and bun folders; children get the same PATH - Scan again clears cached lookups, so new installs show up without a restart - Codex: ChatGPT.app bundle, official installer folders, CODEX_CLI_PATH, and the Windows Store app's runnable copy instead of the WindowsApps one that is access-denied - Claude Code: skip the desktop app's WindowsApps alias; legacy ~/.claude/local install - Antigravity: ~/.local/bin/agy on macOS - ExecutableHints gains env, exclude and wildcard paths Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The macOS module now spells out its own PATH separator and absolute-path rule, as the Windows module does, so its tests behave the same on any OS. The Windows search-path tests keep USERPROFILE/HOME, which Path.home() needs on Windows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The desktop job became a Windows/macOS matrix, so its checks are named per OS and the ruleset's required "Desktop" check never reported, blocking merge. A small job named Desktop now passes only when every desktop job passes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Summary
Two related changes:
Install locations come from research into each tool's official installers, package managers and desktop apps.
Related issue
None.
Changes
macOS from source
Start Commonroom.commandlauncher, the macOS counterpart ofStart Commonroom.cmd. It opens the desktop app ifdesktop/node_modulesexists. Otherwise it finds Python 3.10+ and opens the browser once/api/healthanswers.python -m commonroomexits with a clear message on Python older than 3.10. The/usr/bin/python3that macOS ships is 3.9./api/shutdown. Agents run in their own process groups on macOS, so before this they were orphaned.RpcProcess.__exit__no longer hangs when a process an agent left behind still holds stdout/stderr.MacPlatform.kill_process_treealso reaches the group after its leader was reaped.*:<port>. SO_REUSEADDR otherwise lets127.0.0.1bind over it.Commonroom Desktop.Commonroomis the service's data folder.~/Library/Logs/Electron.Tool detection (macOS and Windows)
$SHELL -ilc, between markers, cached 60s), then~/.local/bin, npm-global, volta, bun, pnpm, mise and asdf, then Homebrew. Apps opened from Finder get launchd's minimal PATH, so this matters for them.NVM_SYMLINK), pnpm and bun. It also honoursSCOOP,ChocolateyInstallandVOLTA_HOME. Children get the same PATH, so npm.cmdshims can findnode.Platform.refresh(), so tools installed after start are found without a restart.ExecutableHintsgainsenv(a user-set full path, checked first),exclude(folders whose match is never the tool), and*wildcards inpaths(the newest match wins). New placeholders:{appdata},{programfiles},{programdata}.CODEX_CLI_PATH;%LOCALAPPDATA%\OpenAI\Codex\bin\<hash>\codex.exe. Users report "Access is denied" when another program runs theWindowsAppscopy, so that copy is now the last resort.%LOCALAPPDATA%\Microsoft\WindowsAppsis excluded on Windows. Older Claude desktop apps register aClaude.exealias there that opens the GUI. Also adds the legacy~/.claude/localinstall. The desktop app's private copy is deliberately not used, because its path changes with every update.~/.local/bin/agyon macOS.Testing
python3 -m pytest tests -q: 135 passed, 4 skipped on macOS (Python 3.15)npm test(indesktop/): 3 passedenv -i PATH=/usr/bin:/bin).npm startand spawns the service.Reviewers should know:
agy acp --stdio: Antigravity is still started this way, but its docs show onlyagy acp. Someone withagyinstalled should confirm--stdiois accepted.agy: an old Antigravity IDE "install agy command" launcher can also be namedagy. It only opens the IDE and has no ACP server.commonroom/__init__.pyanddesktop/package.json.Checklist
--data), not my real chats.signing.local.ps1, local config, databases) are included in the diff.🤖 Generated with Claude Code