Skip to content

Desktop and web: multiple saved GitHub accounts with isolated account switching #2269

Closed

Description

@integry

User wants multiple GitHub users available in desktop, switching user or opening another app window; requests same for web if practical. Implement desktop-first account switching using shared web/desktop account UI where secure. Base and target 1950-epic-cross-platform-dsk (#1970), not main. First inspect existing instance profiles and auth/session model. Model account separately from instance: allow two approved GitHub identities against same endpoint; label username/avatar and current instance clearly. One active account per window for initial delivery; do not claim simultaneous multi-window accounts unless fully implemented and validated. Separate-window expansion can be a linked follow-up if it needs significant additional session partition work. All desktop secrets stay main-owned OS secure storage. Scope REST, sockets, query caches, background tasks, tray counts, notifications, pairing and revocation by account+instance; cancel/drain old work, reject late responses, avoid cross-account leaks or restoring previous account accidentally. Shared browser GitHub session can select wrong account: make actual approved identity visible and require deliberate confirmation; never collect GitHub password or silently log user out of GitHub. For web, do not pretend changing visible username changes authorization: use properly isolated server auth/session namespaces or explicitly constrain/defer browser switching if that requires broader server deployment. Preserve session/CSRF and authorization checks. Separate logout bug task is being implemented independently: do not duplicate its edits; coordinate via child PR or depend on it. Add two-users/same-instance and different-instance tests including rapid switch/reload, expired credentials, revocation, stale socket/data, account removal, permissions. If architecture requires material choices beyond saved-account switching, publish concrete plan and blockers rather than silently weakening isolation. Closes this issue only when stated delivered scope works, link remaining separate-window/web gaps clearly. No deployment/reset of user credentials or Windows-specific work.

Activity

  1. propr-dev commented on Sep 10, 2026

    @propr-dev
    Contributor

    🤖 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:

    • Agent: codex
    • Model: gpt-6-astra
    • Branch: 2269/gpt-6-astra-desktop-and-web-multiple--20260910-2009-dyd
    • Base Branch: 1950-epic-cross-platform-dsk
    • Worktree: issue-2269-20260910-2009-gpt-6-astra-dyd

    🔍 Track Task Execution

  2. added a commit that references this issue on Sep 10, 2026
  3. integry commented on Sep 10, 2026

    @integry
    OwnerAuthor

    Web account switching now has a dedicated implementation follow-up: #2272. Desktop switching and scoped logout integration remain in #2271/#2270. Do not treat desktop delivery as completion of the web follow-up; independent simultaneous desktop windows remain outside the current one-active-account-per-window delivery.

  4. integry commented on Sep 10, 2026

    @integry
    OwnerAuthor

    Desktop implementation merged through #2271 into epic #1970 at 4954e79; scoped logout #2270 is merged too. Root independently verified combined 60 UI/integration tests, 152 main/storage tests, native Electron two-account HTTP/socket regression, Linux packaging/fuse inspection, and production sandbox launch. Installed a0c75f8 successfully reconnects to the existing live ProPR Connect endpoint as propr-ultrafix using its preserved credential. Keep this issue open for final live two-GitHub-account UI/logout acceptance; native synthetic switching is passed, not a claim of real GitHub/OS-keychain two-account acceptance. Web implementation was explicitly deferred by user to #2272; proposal-only #2273 no longer has a closing keyword. Separate stale Linux packaged-frame verifier is tracked in #2276; preserve the approved 44px frame.

  5. integry commented on Sep 10, 2026

    @integry
    OwnerAuthor

    OAuth handoff blocker #2286 fixed by #2287, merged into desktop epic at da737ee and deployed API-only to api.gitfix.dev. Root verified 31 focused auth tests plus API typecheck on epic integration; running API image 84814671826682d4533339013a8a7e75485f6a55d80518df6ba56cded2e0fd15 contains the fix, discovery returns 200. Worker/daemon/analysis/indexing/Redis IDs, StartedAt and RestartCount unchanged across deployment. Need fresh real-user Add account approval; old pairing may be expired. Two-real-user switching/logout acceptance remains open; no completion claim from simulated OAuth tests.

  6. integry commented on Sep 10, 2026

    @integry
    OwnerAuthor

    Desktop-first saved-account switching acceptance completed on running Linux package a0c75f8 with remote API da737ee (OAuth fix #2287). Two real approved GitHub identities against the same https://api.gitfix.dev endpoint: integry -> propr-ultrafix -> integry -> propr-ultrafix all connected and loaded current data; displayed identity and admin-only navigation changed accordingly. Logged out propr-ultrafix via actual app logout control: sign-in-required screen, activeProfileId null, only that account credential slot removed, integry slot retained, no pending revocations. Selected saved integry afterward: reconnected without OAuth, dashboard and admin navigation loaded. App left connected as integry; propr-ultrafix intentionally signed out by logout test. This complements prior IPC/REST/socket scope-isolation and packaged secure-storage tests. Implementation PR #2271, logout #2270, handoff #2287 merged into desktop epic #1970. Delivered scope is one active account per desktop window. Web switching remains explicitly deferred under #2272; simultaneous independent windows and physical macOS acceptance are not claimed by this Linux verification.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions