agents: showing two accounts of the same agent #9383
mikebronner
started this conversation in
Suggestions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
The agents panel picks up any record dropped in ~/.local/state/omarchy/agents/usage/, which makes a second Claude account almost work — I have a personal Max 20x and a work Team account in separate CLAUDE_CONFIG_DIRs, and a second collector writing its own record gives me two working tabs with correct per-account limits.
The one thing that can't be done from outside the plugin is the mark. The record's id is doing double duty as both the uniqueness key and the icon lookup:
So a second Claude account has to take a distinct id, and that id then has no assets/.svg and falls back to the generic glyph. Display naming already has this separation (providerName: String(record.name || record.id)) — the icon just didn't get the same escape hatch.
Smallest thing that would fix it: an optional iconId on the record, defaulting to id.
Backward compatible, no change for existing records, and it keeps the resolve-by-convention design with an opt-out. Happy to send a PR if that seems like the right shape — or if multiple accounts per agent is better modelled first-class, I'd rather follow that.
All reactions