Skip to content

Fixes for assigning the default account to a repo - #63

Merged
pol-rivero merged 2 commits into
desktop-plus:multiple-accountsfrom
garethedwards-tass:multiple-accounts-fixes
Feb 15, 2026
Merged

pol-rivero merged 2 commits into
desktop-plus:multiple-accountsfrom
garethedwards-tass:multiple-accounts-fixes

Conversation

@garethedwards-tass

Copy link
Copy Markdown

No description provided.

@pol-rivero

Copy link
Copy Markdown
Member

Your changes seem very reasonable.

There are only 2 points that should be fixed:

  • The hardcoded 'default' login seems very fragile, and it also breaks for users whose username is @default. We should look for a better way to do this (maybe with an explicit TS type named something like ForceNullLogin)
  • In getAccountForRepository, the default value for strict should be false, to avoid breaking existing behavior (notice how this function is called in many points). You should only pass true when painting the account selector in the repository settings. In all other cases, the old strict=false behavior is correct.

@garethedwards-tass

Copy link
Copy Markdown
Author

Your changes seem very reasonable.

There are only 2 points that should be fixed:

  • The hardcoded 'default' login seems very fragile, and it also breaks for users whose username is @default. We should look for a better way to do this (maybe with an explicit TS type named something like ForceNullLogin)
  • In getAccountForRepository, the default value for strict should be false, to avoid breaking existing behavior (notice how this function is called in many points). You should only pass true when painting the account selector in the repository settings. In all other cases, the old strict=false behavior is correct.

Thanks, yeah the default of true was a mistake ( not intentional ), and the 'default' I think you're right, something more distinct is important, will update to 'ForceNullLogin' for now

@garethedwards-tass

Copy link
Copy Markdown
Author

@pol-rivero updated

@pol-rivero

Copy link
Copy Markdown
Member

Thanks!

@pol-rivero
pol-rivero merged commit 0a26b0d into desktop-plus:multiple-accounts Feb 15, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants