Repository navigation
[STALE: REBASE FROM NEW FORK] fix(oauth): xAI login waits 20 minutes for the pasted address (AgentRadar 20115) - #12
Conversation
…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>
|
✅ Deterministic PR hygiene checks passed. |
⏳ DRAFT
What to do
Its title has been prefixed with |
|
This PR is based on the superseded 2.65 gateway line. Rebuild the change from |
|
Trial evidence: before the merge the build ran 30.5 h on the laptop gateway and 24 h on the personal Mac Mini gateway, both with For new work:
Before opening a PR, use pinned Bun 1.4.4 with an isolated
Hosted-only behavior needs For this PR: only the Antigravity 20-minute paste window is carried. Re-check the xAI login wait on 🤖 Generated with Claude Code |
A hosted Grok sign-in pastes the final address back by hand.
XaiOAuthFlowpassed notimeoutMs, 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 astimeoutMs.tests/oauth/xai-login-window.test.ts: the flow'stimeoutMsis 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