Skip to content

Avoid blocking repo/workspace setup on GitHub CLI login - #2456

Merged
brennanb2025 merged 3 commits into
mainfrom
brennanb2025/repo-add-gh-login-timeout
May 20, 2026
Merged

brennanb2025 merged 3 commits into
mainfrom
brennanb2025/repo-add-gh-login-timeout

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented May 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • prefer repo-local Git username/email before probing GitHub CLI login for branch prefixes
  • bound optional GitHub CLI login probes with a 1.5s timeout
  • skip the auth-status fallback when the initial GitHub API login probe times out, keeping broken gh/keychain paths to one bounded probe

Validation

  • pnpm run typecheck
  • pnpm run lint
  • git diff --check
  • pnpm vitest run --config config/vitest.config.ts src/main/git/repo-username.test.ts src/main/git/repo.test.ts
  • Electron dev app launched from this worktree and identity verified
  • demo-project happy path: created workspace through UI, confirmed branch refs/heads/brennankbenson/gh-timeout-happy-1603, then cleaned up
  • demo-project no-username fallback: temporarily masked local Git identity, created workspace through UI, confirmed unprefixed branch refs/heads/gh-timeout-nogh-1605, then cleaned up
  • fresh-process disposable repo check: getGitUsername returned empty in ~3.1s before latest tightening; tests now cover skipping the second probe on timeout

Made with Orca 🐋

@brennanb2025 brennanb2025 changed the title Avoid blocking repo add on GitHub CLI login Avoid blocking repo/workspace setup on GitHub CLI login May 20, 2026
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