Skip to content

Let Hide daemons find installed CLI tools from Finder - #215

Merged
yansfil merged 2 commits into
mainfrom
fix/gh-path
Sep 27, 2026
Merged

yansfil merged 2 commits into
mainfrom
fix/gh-path

Conversation

@yansfil

@yansfil yansfil commented Sep 27, 2026

Copy link
Copy Markdown
Contributor

Summary

Finder나 Dock에서 연 hide는 launchd의 짧은 PATH를 물려받아, 설치된 gh가 있어도 새 데몬이 실행 파일을 찾지 못했습니다.
데스크톱 호스트가 hide 자식 프로세스를 시작할 때 기존 PATH 뒤에 표준 사용자 설치 경로를 더하도록 바꿨습니다.
같은 조건에서 데몬이 설치 경로의 실행 파일을 찾는 데스크톱 E2E를 추가했습니다.

Review

  • 판단해 주세요: 기존 PATH를 우선하고 ~/.local/bin, /opt/homebrew/bin, /usr/local/bin을 뒤에 추가하는 검색 순서가 적절한지 확인해 주세요.
  • 조심해서 볼 파일: desktop/src/main/host.ts - 자식 CLI와 새 데몬의 실행 환경을 결정합니다.
  • 조심해서 볼 파일: scripts/verify-web.sh - 빈 작업 트리에서 hcoord 테스트 전에 빌드하도록 순서를 바로잡았습니다.

Evidence

  • 확인한 것: Finder식 PATH로 시작한 격리된 Electron E2E에서 새 데몬이 fixture gh를 실행했습니다. 전체 데스크톱 E2E는 14개 통과, 원격 SSH fixture 전용 1개 건너뜀입니다.
  • 확인한 것: 빈 작업 트리에서 bash scripts/verify-web.sh 전체 통과, bash scripts/verify-cargo.sh cli 통과했습니다.
  • 확인한 것: 로컬 앱 패키지가 생성됐고 코드 서명 검사와 번들 내 실행 파일 검사를 통과했습니다.
  • 확인하지 못한 것: 현재 실행 중인 사용자 데몬의 환경은 바뀌지 않습니다. 새 버전 설치 후 새 데몬을 시작해야 실제 사용자 앱에 적용됩니다.

@yansfil
yansfil merged commit abcf4b8 into main Sep 27, 2026
7 checks passed
@yansfil
yansfil deleted the fix/gh-path branch September 27, 2026 16:12
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