fix: improve xAI Grok OAuth manual paste flow (#26923)#33297
Conversation
- Automatically trigger manual paste mode for remote/headless environments - Update prompt to be much clearer with step-by-step instructions - Fix state mismatch when user pastes bare authorization code only - Fix missing 'fallback' argument in _xai_validate_inference_base_url() Closes NousResearch#26923
|
Thanks for surfacing this — the underlying bug is real and worth fixing. The change we're going to land is the minimal state-mismatch fix from the bare-code paste path, scoped tight. I'm closing this PR in favor of #33880 because the broader changes here can't ship as-is: Substantive blockers
What we're shipping instead — #33880 A ~20-line fix that does just one thing: when the user pastes a bare opaque code on the Credit Both you and @AccursedGalaxy are credited in the #33880 PR body — you for surfacing the bug and pushing on it, and AccursedGalaxy for the root-cause analysis and proposed fix. Thanks for the contribution. |
Closes #26923
Changes
hermes modeland selecting xAI Grok OAuth (no need for--manual-pasteflag)fallbackargument in_xai_validate_inference_base_url()(the error you hit)Tested successfully after pasting the authorization code.
The manual paste flow is now the default experience for remote/headless setups.