Repository navigation
Description
Follow-up to #2269 and desktop PR #2271; user explicitly requests account switching on web too where practical. Target 1950-epic-cross-platform-dsk (#1970), not main. Keep this independent of the active desktop/logout integration in #2271 and #2270: avoid editing desktop transport or duplicating those changes. Inspect existing browser auth, hosted tunnel auth, cookies and CSRF before implementation. Implement a server-owned collection of separately authorized GitHub sessions with a clear account picker showing actual GitHub username/avatar and add/switch/sign-out actions. Never place GitHub/access/refresh tokens in browser-readable storage, weaken CSRF or authorization, or treat a client-provided account ID as authority. Each saved identity must be explicitly authenticated and confirmed. Preserve existing single-account sessions through migration. Logout/removal affects the selected saved account only; signing out must remain signed out after reload. Switching must invalidate account-specific caches, sockets and late responses, including notifications. Choose and document cross-tab semantics explicitly: if using one active browser session, synchronize/invalidate other tabs rather than claiming simultaneous isolated users per tab. Account isolation across simultaneous desktop windows is NOT in this task. Reuse shared account presentation where possible without blocking or modifying active desktop integration. Require integration tests with two users on the same instance, wrong-identity approval, unauthorized switching, switch/logout races, delayed HTTP/socket responses, reload, expired sessions, CSRF and cross-tab behavior. Add deployment/compatibility notes. If this needs a materially broader authentication redesign, report a concrete scoped proposal before implementing that redesign. No live deployment, user credential resets, Windows work, or removal of existing login flows. PR must contain Closes ; link #2269 and #2271. Report tests and limitations honestly.
Activity
propr-dev commentedon Sep 10, 2026
🤖 AI processing has started for this issue using codex agent with gpt-6-astra model.
I'll analyze the problem and work on a solution. This may take a few minutes.
Processing Details:
codexgpt-6-astra2272/gpt-6-astra-web-securely-switch-betwe-20260910-2051-qr11950-epic-cross-platform-dskissue-2272-20260910-2051-gpt-6-astra-qr1🔍 Track Task Execution
fix(ai): Resolve issue #2272 - Web: securely switch between saved Git…
integry commentedon Sep 10, 2026
User decision: desktop first. Defer web application implementation; keep the current architecture proposal as a separate follow-up only. Do not start the broader browser-session redesign or deploy anything. If a proposal PR is produced, make clear that it does not implement account switching and must not close #2272. Desktop delivery continues independently in #2271/#2270.
integry commentedon Sep 28, 2026
Postponing for later