You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After PR #167, PawWork can preserve the GitHub CLI auth config directionally, but gh is now reported as missing inside PawWork shell or agent shell flows. On the same machine, the normal outer shell resolves gh at /opt/homebrew/bin/gh and reports version 2.91.0, so this is not a missing local installation.
The likely regression is in packages/desktop-electron/src/main/server.ts: buildServerEnv now builds mergedEnv as { ...shellEnv, ...process.env }. In a macOS GUI app, process.env.PATH can be narrower than the login shell PATH and can overwrite the shell PATH that contains Homebrew paths such as /opt/homebrew/bin.
Open a PawWork project where gh is installed and available in the user's normal terminal.
Run a shell or agent shell command that needs gh, for example gh --help or gh auth status.
Observe PawWork reporting that gh cannot be found.
What did you expect to happen?
PawWork should preserve the login shell PATH for command discovery, so gh resolves the same way it does in the user's normal terminal. The #167 behavior should still preserve GitHub CLI authentication by deriving and injecting GH_CONFIG_DIR before PawWork overrides XDG_CONFIG_HOME for its own runtime namespace.
macOS, observed on Apple Silicon with Homebrew gh installed under /opt/homebrew/bin
Can you reproduce it again?
Yes, every time
Screenshots, recordings, or extra context
Local evidence: outer shell resolves /opt/homebrew/bin/gh and gh version 2.91.0. PR #167 changed buildServerEnv to compute mergedEnv = { ...shellEnv, ...process.env }, which lets the GUI process PATH override the login shell PATH. A narrow fix should keep the shell PATH merge behavior while computing GH_CONFIG_DIR with explicit priority.
What happened?
After PR #167, PawWork can preserve the GitHub CLI auth config directionally, but
ghis now reported as missing inside PawWork shell or agent shell flows. On the same machine, the normal outer shell resolvesghat/opt/homebrew/bin/ghand reports version2.91.0, so this is not a missing local installation.The likely regression is in
packages/desktop-electron/src/main/server.ts:buildServerEnvnow buildsmergedEnvas{ ...shellEnv, ...process.env }. In a macOS GUI app,process.env.PATHcan be narrower than the login shell PATH and can overwrite the shell PATH that contains Homebrew paths such as/opt/homebrew/bin.Steps to reproduce
ghis installed and available in the user's normal terminal.gh, for examplegh --helporgh auth status.ghcannot be found.What did you expect to happen?
PawWork should preserve the login shell PATH for command discovery, so
ghresolves the same way it does in the user's normal terminal. The #167 behavior should still preserve GitHub CLI authentication by deriving and injectingGH_CONFIG_DIRbefore PawWork overridesXDG_CONFIG_HOMEfor its own runtime namespace.PawWork version
v0.2.5 dev build after PR #167
OS version
macOS, observed on Apple Silicon with Homebrew
ghinstalled under/opt/homebrew/binCan you reproduce it again?
Yes, every time
Screenshots, recordings, or extra context
Local evidence: outer shell resolves
/opt/homebrew/bin/ghandgh version 2.91.0. PR #167 changedbuildServerEnvto computemergedEnv = { ...shellEnv, ...process.env }, which lets the GUI process PATH override the login shell PATH. A narrow fix should keep the shell PATH merge behavior while computingGH_CONFIG_DIRwith explicit priority.