Skip to content

[WRONG BRANCH] fix(oauth): xAI login waits 20 minutes for the pasted address (AgentRadar 20115) - #12

Draft
vadymhimself wants to merge 1 commit into
release/2.65.0-vadymhimself.15from
sec-be-r2/xai-login-window
Draft

vadymhimself wants to merge 1 commit into
release/2.65.0-vadymhimself.15from
sec-be-r2/xai-login-window

Conversation

@vadymhimself

Copy link
Copy Markdown
Owner

A hosted Grok sign-in pastes the final address back by hand. XaiOAuthFlow passed no timeoutMs, so it kept the callback server's 300 s default, and a paste 5-6 minutes after the start failed with no reason (AgentRadar tester, 4 failed flows on 11-08). The flow now waits 20 minutes, the window AgentRadar offers for every pasted sign-in except Claude (whose code flow already sets 10 minutes).

  • src/oauth/xai.ts: XAI_LOGIN_TIMEOUT_MS = 20 * 60_000, passed as timeoutMs.
  • tests/oauth/xai-login-window.test.ts: the flow's timeoutMs is 20 minutes.

Local run: the new test passes (bun 1 pass 0 fail); the AgentRadar lane could not witness this checkout (git ENOBUFS), so CI here is the recorded run. tests/oauth/oauth-callback-server.test.ts 'a non-callback request cannot pin the socket to the retiring flow' fails on the base commit too, unchanged by this PR.

Draft on purpose: it ships only in a fork release after .16 (held by Vadym on AgentRadar lidge-jun#5330), together with an AgentRadar change that sets Grok's paste window back to 20 minutes.

Eval added/updated: N/A deterministic (unit test: tests/oauth/xai-login-window.test.ts)

🤖 Generated with Claude Code

…adar 20115)

A hosted Grok sign-in pastes the final address back by hand. The flow kept
the callback server's 300 s default, so a paste 5-6 minutes after the start
failed with no reason. It now waits 20 minutes, the window AgentRadar offers.

Co-Authored-By: Claude Code <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown

✅ Deterministic PR hygiene checks passed.

@github-actions github-actions Bot added the bug Something isn't working label Nov 9, 2026
@github-actions github-actions Bot changed the title fix(oauth): xAI login waits 20 minutes for the pasted address (AgentRadar 20115) [WRONG BRANCH] fix(oauth): xAI login waits 20 minutes for the pasted address (AgentRadar 20115) Nov 9, 2026
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown

⏳ DRAFT

  • wrong target branch (release/2.65.0-vadymhimself.15); retarget to dev.

What to do

  • Retarget this PR to dev — all contributions go to dev.

Its title has been prefixed with [WRONG BRANCH].
This pull request was already a draft. Its draft status will be preserved after every issue above is resolved.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant