Skip to content

docs(settings): describe the GitHub integration as the local gh CLI login, not OAuth - #26609

Merged
nwparker merged 1 commit into
stablyai:mainfrom
eatmoreduck:fix/26604-hook-install-error-code
Oct 26, 2026
Merged

nwparker merged 1 commit into
stablyai:mainfrom
eatmoreduck:fix/26604-hook-install-error-code

Conversation

@eatmoreduck

@eatmoreduck eatmoreduck commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

The settings docs listed "GitHub OAuth" as an integration, but Orca has no OAuth app. It just uses whatever gh CLI 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:
    • Before: GitHub OAuth.
    • After: GitHub uses the gh CLI login on the machine running Orca. On a Remote Orca Server you run gh auth login on the server. There is no Orca OAuth app to approve or revoke. The line lists the repo, read:org, and project scopes 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.ts reads tokens through the local gh CLI, and no OAuth flow exists anywhere. The scope list matches REQUIRED_SCOPES in src/main/github/auth-diagnose.ts (project, read:org, repo). Remote servers resolve gh auth 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 match REQUIRED_SCOPES in auth-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.mdx passes. 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

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Docs-only. No cross-platform, remote compatibility, mobile, or performance impact. The new text documents the per-host gh login for remote servers.

Original fix by @eatmoreduck in #26609 (authorship preserved on the squashed commit).

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

@coderabbitai

coderabbitai Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9104a1a1-c14d-484c-9aee-7dd81aa7dd69
📥 Commits

Reviewing files that changed from the base of the PR and between b2e1ced8e7b38be1489184fbc9c56ac895efadb3 and 6a3a331dea090444e1d50c3be1f08aa3a76ff47b.

📒 Files selected for processing (2)
  • src/main/agent-hooks/install-telemetry.test.ts
  • src/main/agent-hooks/install-telemetry.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.

Walkthrough

The GitHub integration documentation now describes authentication through the local gh CLI and lists the expected scopes. Install-failure telemetry now reports a validated error code or class name instead of an error message. The event schema and tests reflect this change.

Priority: Normal

Severity of issue fixed: Medium

Merge Risk: Minimal · up to 6a3a3

The reported path-bearing error-code form is rejected, and inspected install flows did not establish another current telemetry exposure. No concrete merge-blocking risk remains.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 3 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check Warning The description follows the required template and clearly explains the documentation change. However, it incorrectly states that the PR contains only documentation changes, while the changeset also up… Update the description to document the telemetry changes, their privacy rationale, affected files, and the related test and validation results. Correct the statements that no code was touched and that no tests were run.
Passed Passed checks: 3 passed
Check name Status Explanation
Linked Issues check Passed The PR satisfies the coding requirements in directly linked issue #26604. settings.mdx documents local gh CLI authentication, the repo, read:org, and project scopes, and the absence of an Or…
Out of Scope Changes check Passed The changes stay within issue #26604. The documentation edit corrects the GitHub integration description. The telemetry formatter, schema change, and focused tests implement and verify the required pr…
Title check Passed The title accurately describes the documentation change for GitHub authentication through the local gh CLI. It does not mention the telemetry changes, but a title does not need to cover every change…
Full details: Linked Issues check

Explanation

The PR satisfies the coding requirements in directly linked issue #26604. settings.mdx documents local gh CLI authentication, the repo, read:org, and project scopes, and the absence of an Orca OAuth app. agent_hook_install_failed now sends bounded error_code values instead of raw error messages. The updated tests cover sanitization, path and message exclusion, and fallback behavior.

Full details: Out of Scope Changes check

Explanation

The changes stay within issue #26604. The documentation edit corrects the GitHub integration description. The telemetry formatter, schema change, and focused tests implement and verify the required privacy behavior. No unrelated product behavior is shown.

Full details: Title check

Explanation

The title accurately describes the documentation change for GitHub authentication through the local gh CLI. It does not mention the telemetry changes, but a title does not need to cover every change.

Full details: Description check

Explanation

The description follows the required template and clearly explains the documentation change. However, it incorrectly states that the PR contains only documentation changes, while the changeset also updates telemetry implementation, tests, and the event schema.

Resolution

Update the description to document the telemetry changes, their privacy rationale, affected files, and the related test and validation results. Correct the statements that no code was touched and that no tests were run.

  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.mdx
  • src/main/agent-hooks/install-telemetry.test.ts
  • src/main/agent-hooks/install-telemetry.ts
  • src/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.

@eatmoreduck
eatmoreduck force-pushed the fix/26604-hook-install-error-code branch from 6a3a331 to 0c84f97 Compare October 26, 2026 07:32
…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]>
@nwparker
nwparker force-pushed the fix/26604-hook-install-error-code branch from 0c84f97 to d52c701 Compare October 26, 2026 11:14
@nwparker nwparker changed the title fix(telemetry): send hook-install error codes, align GitHub integration docs docs(settings): describe the GitHub integration as the local gh CLI login, not OAuth Oct 26, 2026
@nwparker
nwparker merged commit 15fc7a6 into stablyai:main Oct 26, 2026
24 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.

Docs disagree with code on the GitHub integration and on telemetry error messages

2 participants