mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-11-29 02:39:13 +00:00
Modern Copilot clients no longer write ~/.config/github-copilot/hosts.json or apps.json, so the menubar reported "No GitHub Copilot credentials found" even after signing in through VS Code and the Copilot CLI. Discovery now walks an ordered read-only chain, first hit wins, every rung tolerating an absent, locked, or malformed source: the legacy plugin files, the Copilot CLI keychain item (service copilot-cli, read via /usr/bin/security so no partition-list prompt can fire), ~/.copilot/config.json and settings.json, COPILOT_GITHUB_TOKEN / GH_TOKEN / GITHUB_TOKEN, `gh auth token`, and finally a token pasted into Settings. The two subprocess rungs are cached for five minutes so eligibility checks and the 30s refresh cadence never spawn per call, and hasCredential stays spawn-free. VS Code's encrypted secret storage is deliberately untouched. The no-credentials message now says usage tracking still works and names every way to connect, and the Copilot settings pane gains a token field. |
||
|---|---|---|
| .. | ||
| ActivitySection.swift | ||
| AgentTabStrip.swift | ||
| CapacityDockView.swift | ||
| FindingsSection.swift | ||
| FlameWordmark.swift | ||
| HeatmapSection.swift | ||
| HeroSection.swift | ||
| MenuBarContent.swift | ||
| ModelsSection.swift | ||
| PeriodSegmentedControl.swift | ||
| PullRequestsSection.swift | ||
| SectionCaption.swift | ||
| SettingsView.swift | ||
| SparklineView.swift | ||
| ToolingSection.swift | ||