Skip to content

An account is called what its owner names it, everywhere at once - #327

Merged
vinzdg merged 1 commit into
vinzdg:mainfrom
rafaelbarea:pr/account-nicknames
Sep 23, 2026
Merged

vinzdg merged 1 commit into
vinzdg:mainfrom
rafaelbarea:pr/account-nicknames

Conversation

@rafaelbarea

Copy link
Copy Markdown
Contributor

What

Two logins on one provider are told apart by their directory names: "Claude" and "Claude (work)". That is the machine's word for them, not the person's.

  • A pencil on every connected usage row in Settings › Accounts opens a name field. Blank goes back to the provider's own name.
  • The name is kept in Preferences.accountNicknames (by provider id) and applied by UsageStore to every snapshot it publishes (nicknames property, bound from AppDelegate). ProviderSnapshot.displayName becomes var for that. So the notch, the menu bar, the hover cards and the notifications all use the same word as the row, and clearing the name restores the provider's own on the spot.
  • Three strings, with pt-BR.

Kept in Preferences and applied by the store rather than typed over in the row, because the row is the one place a name would otherwise be right while every other surface still said "Claude (work)".

On #321

#321 names a Claude ring after the signed-in address automatically. This is the manual layer above it: whatever displayName a provider computes stays the default and the placeholder in the field; a nickname wins only where one was typed. The two touch different code (ClaudeProfile there, Preferences/UsageStore/AccountRow here) and should merge in either order.

Tests

  • AccountNicknameTests: the store renames what it has already published (snapshots and notch snapshots), clearing goes back to the provider's name, a name for another account changes nothing, the preference survives a relaunch, blank means no name, surrounding spaces are trimmed.
  • make test: 1740 tests, 0 failures.

🤖 Generated with Claude Code

Two logins on one provider were told apart by their directory names:
"Claude" and "Claude (work)". That is the machine's word for them. The
pencil on a connected row in Accounts opens a name field; the name is kept
in Preferences by provider id and the store writes it into every snapshot
it publishes, so the notch, the menu bar, the cards and the notifications
all use the same word as the row. Blank goes back to the provider's own
name.

Kept in Preferences and applied by the store rather than typed over in the
row, because the row is the one place a name would otherwise be right
while every other surface still said "Claude (work)".

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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.

2 participants