Repository navigation
[3879 by GPT-6.2 Sol] Stuck session when GitHub token renewal is temporarily unavailable: no way to sign out, refresh retried on every request - #3880
Conversation
Implemented #3879. Temporary GitHub renewal failures preserve the session and show a recovery notice on desktop and mobile, including when the failure comes from the socket. Retry re-checks `/api/auth/user` and clears the notice on success. Sign out works without a loaded profile and returns the user to login. Concurrent requests share one refresh attempt. Session fallbacks and legacy grants back off in memory from 30 seconds up to 5 minutes. Verified with 63 API tests, 77 UI tests, 3 Chromium tests, and both TypeScript checks. Captured desktop and mobile previews. ProPR-Agent: codex/gpt-6.2-sol
Checks FailedValidation failed during setup, tests, CLI packaging, linting, or build checks. View Logs |
|
CI failed: Validate Changes Please investigate and fix this CI failure.
Failure evidence
|
|
✅ Applied the requested follow-up changes in commit 74d66b4 Processed 2 comments:
Summary of ChangesFixed the four ESLint Both API and UI lint passed with zero warnings. The API build, UI typecheck and production build, targeted tests, and all three Chromium renewal tests passed locally. Review digestRisk-tiered paths
Diff size: 4 files changed, +58/−177 lines 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
Fixed the four ESLint `max-lines` warnings that caused **Validate Changes** to fail on PR #3880. The changes consolidate repeated token handling and reformat the route table while preserving the existing GitHub renewal behavior. Both API and UI lint passed with zero warnings. The API build, UI typecheck and production build, targeted tests, and all three Chromium renewal tests passed locally. PR: #3880 Comment by: @github-actions[bot] (ID: 7248167617) Comment by: @propr-dev[bot] (ID: 7248167887) Model: GPT-6.2 Sol ProPR-Agent: codex/gpt-6.2-sol
|
/ultrafix goal=8 max=10 |
|
🔄 Ultrafix loop started (goal: 8/10, max cycles: 10) First action:
|
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR is ready to merge within the reviewed scope. The supplied diff implements recovery messaging, preserves sessions during temporary renewal failures, and adds bounded refresh backoff without unnecessary architectural expansion. ✅ Recoverable session failures — Temporary refresh failures retain the session; the added API tests verify that logout and session destruction do not occur. ✅ Usable recovery controls — HTTP and socket failures surface the renewal notice. Retry revalidates the current user, and Sign out uses the existing profile-independent logout path. ✅ Bounded retry pressure — Refresh coordination shares concurrent work, while backoff grows from 30 seconds to five minutes and cleans up idle entries. The authoritative current-head checks show 15 passed and no failures or pending checks. This review used static inspection of the supplied code; no commands or tests were run. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Cover mixed refresh callersAdd focused regression tests for a forced caller joining an outstanding proactive refresh that returns unchanged credentials. Both S2: 🟢 Exercise established socket failuresThe new browser socket test exercises handshake rejection through ScoreThe implementation is scoped appropriately, includes meaningful recovery tests, and has passing current-head validation. Static review found no demonstrated PR-introduced merge blockers. Score: 9/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
Live verification after merge: passedRun on a Fly instance (device sign-in, relay-only) with #3868's head 7c0e6f7, which includes this PR through the epic.
|
AI Implementation Summary
Closes #3879
Branch:
3879/gpt-6.2-sol-stuck-session-when-github-20261129-0014-j5qCommits: ✅ Changes committed (44c8ceb)
AI Processing Completed
Execution Details:
Summary:
Implemented #3879. Temporary GitHub renewal failures preserve the session and show a recovery notice on desktop and mobile, including when the failure comes from the socket. Retry re-checks
/api/auth/userand clears the notice on success. Sign out works without a loaded profile and returns the user to login.Concurrent requests share one refresh attempt. Session fallbacks and legacy grants back off in memory from 30 seconds up to 5 minutes.
Verified with 63 API tests, 77 UI tests, 3 Chromium tests, and both TypeScript checks. Captured desktop and mobile previews.
Review digest
Risk-tiered paths
packages/api/auth.ts(+1/−4): auth-looking pathpackages/api/authGithubTokens.ts(+32/−8): auth-looking pathpackages/api/githubRefreshBackoff.ts(added, +32/−0)packages/api/githubUserGrantService.ts(+47/−20)packages/api/routes/githubRoutes.ts(+1/−1)propr-ui/src/App.tsx(+46/−3)propr-ui/src/api/apiClient.ts(+10/−3)propr-ui/src/api/githubTokenRefresh.ts(added, +8/−0)propr-ui/src/contexts/SocketProvider.tsx(+3/−0)propr-ui/src/hooks/useCurrentUserBootstrap.ts(+16/−3)packages/api/test/authGithubTokens.test.ts(+43/−18)packages/api/test/githubAuthCallback.test.ts(+36/−1)packages/api/test/githubGrantRotation.test.ts(+32/−0)propr-ui/e2e/github-token-renewal.pw.ts(added, +83/−0)Diff size: 14 files changed, +390/−61 lines
View task for the run's logs and conversation.
This PR was created automatically by ProPR after processing issue #3879.
💡 Need changes?
Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!
Visual preview
GitHub renewal notice on desktop
The 1440px-wide browser shows Retry and Sign out while GitHub renewal is temporarily unavailable.
Full-size original
GitHub renewal notice on mobile
The 390px-wide browser shows Retry and Sign out while GitHub renewal is temporarily unavailable.
Full-size original