Skip to content

[Bug]: Creating a new workspace fails with git: command not found and scutil: command not found #17

@brentpep

Description

@brentpep

Platform

macOS

Operating system version

macOS Sequoia 15.5 (Darwin 24.5.0)

System architecture

ARM64 (M1, M2, etc)

PolyScope Version

0.6.0

Bug description

Creating a new workspace fails with git: command not found and scutil: command not found. The app spawns /bin/sh to run commands, but the child process has an extremely minimal PATH that does not include /usr/bin or /usr/sbin.

Both git and scutil are present on the system at their standard locations (/usr/bin/git, /usr/local/bin/git, /usr/sbin/scutil), so this is not a missing dependency — the spawned shell simply cannot find them.

Setting the system-wide GUI app PATH via sudo launchctl config user path and rebooting does not resolve the issue, suggesting the app may be explicitly overriding or clearing the PATH environment variable when spawning child processes.

Steps to reproduce

  1. Add a repository
  2. Click "Create Workspace"
  3. Workspace creation fails immediately

Relevant log output

[server:err] /bin/sh: git: command not found
[server:err] [ws] worktree.create error: Command failed: git checkout --orphan "zippy-koi"
[server:err] /bin/sh: git: command not found
[server:err] /bin/sh: scutil: command not found

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions