Skip to content

feat(app): show each bot's crew in tokens by bot - #87

Merged
httpsphl merged 1 commit into
mainfrom
fix/usage-crew-name
Oct 1, 2026
Merged

httpsphl merged 1 commit into
mainfrom
fix/usage-crew-name

Conversation

@httpsphl

@httpsphl httpsphl commented Oct 1, 2026

Copy link
Copy Markdown
Owner

Two crews can have bots with the same name, and the tokens-by-bot list in the usage dialog only showed the name, so there was no telling them apart.

  • usage.tokens now returns crew, the name of the bot's crew (archived crews too). Ties in the order fall back to the crew's name.
  • Each row's second line starts with the crew: "Ops · Worked 2 times · 48k reread". The "All bots" total is unchanged.
  • Strings in en, pt-BR and es; spec 8.7 and the usage.tokens row updated; protocol.gen.ts regenerated.

Tests

  • Store: turn_tokens returns the crew's name.
  • App: two crews with a "Scout" each show their crew; existing rows expect the crew.
  • cargo fmt, clippy -D warnings, cargo test --workspace and pnpm check pass locally.

Manual check

Nothing depends on the real Claude Code. With two crews that each have a bot with the same name, let both reply once, open the account menu, then Usage: each row shows its own crew.

Two crews can have bots with the same name, and the usage dialog only
showed the name. usage.tokens now carries the crew's name, and each row
reads "Ops · Worked 2 times · ...".
@httpsphl
httpsphl enabled auto-merge October 1, 2026 12:06
@httpsphl
httpsphl merged commit e681d78 into main Oct 1, 2026
3 checks passed
@httpsphl
httpsphl deleted the fix/usage-crew-name branch October 1, 2026 12:24
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.

1 participant