Skip to content

Find gh through the login shell in Kosmo's GitHub view - #170

Merged
elcritch merged 2 commits into
mainfrom
feat/kosmo-gh-login-shell
Oct 18, 2026
Merged

elcritch merged 2 commits into
mainfrom
feat/kosmo-gh-login-shell

Conversation

@elcritch

@elcritch elcritch commented Oct 18, 2026 •

Copy link
Copy Markdown
Owner

Kosmo opened from Finder or another desktop launcher can inherit a PATH that cannot find gh. Run the GitHub viewer's default CLI through $SHELL -l -c on POSIX, then replace the shell with gh so the existing timeout, cancellation, and process cleanup still apply.

Restore the project directory, clear GH_REPO, and disable prompts and paging after login initialization. Quote each command argument so project paths containing spaces, quotes, or shell syntax remain literal. Explicit executable paths retain direct execution.

Validation: compiled the shared integration runner with nim ic; all 10 GitHub CLI integration tests pass, including actual login-profile PATH discovery, project/settings preservation, shell quoting, cancellation, timeouts, and child-process cleanup. The shared test import check and git diff --check also pass.

CI: all 12 build and test jobs passed, including full macOS/Linux suites, ARC/ORC ownership sanitizers, example builds, and release builds for macOS, Windows, Linux, and FreeBSD. Both the zsh and Bash login-profile regressions passed under Nim 2.2.10.

@elcritch
elcritch merged commit 389ce0a into main Oct 18, 2026
12 checks passed
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.

1 participant