Repository navigation
docs(settings): describe the GitHub integration as the local gh CLI login, not OAuth - #26609
Conversation
|
No actionable comments were generated in the recent review. ℹ️ Recent review info
Walkthrough
Priority: Severity of issue fixed: Medium Merge Risk:
|
There was a problem hiding this comment.
Actionable comments posted: 2
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
36464ec8-42c5-4693-89e0-580fe12ceeea
📥 Commits
Reviewing files that changed from the base of the PR and between 907cb6e and b2e1ced8e7b38be1489184fbc9c56ac895efadb3.
📒 Files selected for processing (4)
docs/site/content/docs/settings.mdxsrc/main/agent-hooks/install-telemetry.test.tssrc/main/agent-hooks/install-telemetry.tssrc/shared/telemetry-daemon-event-schemas.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
6a3a331 to
0c84f97
Compare
…ogin, not OAuth Orca has no OAuth app; it reads tokens from the gh CLI on the machine running Orca. Document that, the per-host login for Remote Orca Servers, and the repo/read:org/project scopes auth-diagnose expects. Refs stablyai#26604 Co-authored-by: Neil <[email protected]>
0c84f97 to
d52c701
Compare
ELI5
The settings docs listed "GitHub OAuth" as an integration, but Orca has no OAuth app. It just uses whatever
ghCLI login exists on the machine running Orca. This rewrites that one line so it says what actually happens.What Changed
docs/site/content/docs/settings.mdx, Integrations section:GitHub OAuth.ghCLI login on the machine running Orca. On a Remote Orca Server you rungh auth loginon the server. There is no Orca OAuth app to approve or revoke. The line lists therepo,read:org, andprojectscopes Orca expects and links to Troubleshooting GitHub errors.The telemetry half of the original PR (sending an errno code instead of the raw message in
agent_hook_install_failed) already landed on main in #25287, so this PR now contains only the docs change.Why
The code is the source of truth.
src/main/github/gh-account-token.tsreads tokens through the localghCLI, and no OAuth flow exists anywhere. The scope list matchesREQUIRED_SCOPESinsrc/main/github/auth-diagnose.ts(project,read:org,repo). Remote servers resolveghauth on the host where Orca runs, so a user connecting from their laptop has to log in on the server too.Linked Issue
Fixes #26604
The docs half of the issue is fixed here. The telemetry half was fixed by #25287.
Visual Proof
N/A. This is a one-line wording change in the docs site. The app UI and behavior are unchanged.
Testing
Checked the new wording against the code: no OAuth path exists, token reads go through
gh auth token, and the scopes matchREQUIRED_SCOPESinauth-diagnose.ts.Checked that both linked pages exist (
docs/site/content/docs/remote-servers.mdx,docs/site/content/docs/github-errors.mdx).pnpm exec oxfmt --check docs/site/content/docs/settings.mdxpasses. No code was touched, so there are no tests to run.Rebased onto current main with no conflicts.
I manually tested these changes locally
Automated tests added/updated, or explained why not below (docs-only change)
Review
Agent skill upstream boundary
Notes
Docs-only. No cross-platform, remote compatibility, mobile, or performance impact. The new text documents the per-host
ghlogin for remote servers.Original fix by @eatmoreduck in #26609 (authorship preserved on the squashed commit).
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)