Workflows view shows stale data after switching GitHub accounts

Open
#4 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
68/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
electron, github, github-actions, react, typescript

Research direction

Start by tracing the account-switching UI and the Workflows tab's workflow-run loading and selected-repository state. Reproduce the switch between two gh CLI accounts, then verify that inaccessible repository data is cleared, replaced with a repository-selection prompt, or reported as an error rather than remaining visible.

Written by the indexing model from the issue text.

Description

Description

When multiple GitHub accounts are configured via gh CLI, switching accounts from the UI does not refresh the workflows view. If a private repo was selected under account A, switching to account B (which has no access to that repo) still shows stale workflow runs from account A's private repo instead of clearing or showing an error.

Steps to Reproduce
  1. Have multiple GitHub accounts logged in via gh CLI
  2. Select a private repo under account A
  3. Go to the Workflows tab - runs load fine
  4. Switch to account B from the UI (account B has no access to account A's private repo)
  5. Workflows tab still shows runs from account A's private repo
Expected Behavior

Switching accounts should refresh the workflows view. If the currently selected repo is not accessible under the new account, the app should either clear the view, prompt to select a new repo, or show an appropriate error.

Actual Behavior

Stale workflow data from the previous account's inaccessible repo persists in the UI after switching accounts.

Dominant language
TypeScript
Stars
2
Forks
1
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from binbandit/dispatch

All issues in binbandit/dispatch

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.