Skip to content

docs(xai-oauth): note bare-code manual-paste form (#33917)#34459

Merged
teknium1 merged 2 commits into
mainfrom
docs/33917-bare-code-paste
May 29, 2026
Merged

docs(xai-oauth): note bare-code manual-paste form (#33917)#34459
teknium1 merged 2 commits into
mainfrom
docs/33917-bare-code-paste

Conversation

@teknium1

Copy link
Copy Markdown
Contributor

Summary

Tiny docs catch-up — the existing user-facing guides for --manual-paste mentioned the full URL and the bare ?code=...&state=... query string forms but didn't mention the third form (bare code, no state) that #33880 shipped in _parse_pasted_callback. xAI's current browser-based-console flow (Cloud Shell, Codespaces, EC2 Instance Connect, Gitpod) renders the auth code in-page instead of redirecting, so users on those surfaces need the bare-code form and were getting stale instructions.

Salvages PR #33917 (@r266-tech).

Salvage detail

@r266-tech's PR body described updates to two files (oauth-over-ssh.md and xai-grok-oauth.md), but the actual commit on the branch only modified oauth-over-ssh.md. The salvage adds the matching paragraph to xai-grok-oauth.md so users reading the primary entry point don't miss it.

Changes

  • website/docs/guides/oauth-over-ssh.md@r266-tech's original edit (cherry-picked verbatim): expanded the one-liner about manual-paste forms to mention all three (full URL, bare query string, bare code).
  • website/docs/guides/xai-grok-oauth.md — follow-up: add the bare-code paragraph after the existing --manual-paste walkthrough.

Validation

Pure docs, no tests. The in-CLI prompt (hermes_cli/auth.py _parse_pasted_callback docstring at L3118-3133) already documents the three accepted forms, so docs now match runtime behavior.

Credit

@r266-tech — caught a real documentation gap. The bare-code form is the load-bearing case for browser-only-console users today (the only path that works against current xAI consent-page behavior), and missing it from the docs left a discoverability hole.

r266-tech and others added 2 commits May 29, 2026 00:29
…3917)

The original PR diff updated two guides (oauth-over-ssh.md and
xai-grok-oauth.md) but only the oauth-over-ssh.md edit landed in the
PR's actual commit.  Mirror the note to the primary xai-grok-oauth.md
guide too so users reading the main entry point don't miss the
bare-code form that already shipped in #33880.
@alt-glitch alt-glitch added type/docs Documentation improvements P3 Low — cosmetic, nice to have area/auth Authentication, OAuth, credential pools provider/xai xAI (Grok) labels May 29, 2026
@teknium1 teknium1 merged commit c692000 into main May 29, 2026
9 checks passed
@teknium1 teknium1 deleted the docs/33917-bare-code-paste branch May 29, 2026 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/auth Authentication, OAuth, credential pools P3 Low — cosmetic, nice to have provider/xai xAI (Grok) type/docs Documentation improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants