镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

fix(plugins): distinguish usage and costs from agent activity - #1392

Merged
tellaho merged 1 commit into
mainfrom
tho/token-spend
Oct 20, 2026
Merged

tellaho merged 1 commit into
mainfrom
tho/token-spend

Conversation

@tellaho

@tellaho tellaho commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Overview

Category: improvement

User Impact: Users can find local agent token usage and estimated costs under Usage & costs in Agent tools.

Problem: The generic Usage name and Agents category make the local resource dashboard easy to confuse with Agent Activity.

Solution: Rename it Usage & costs, move it to Agent tools, and explain that it shows token usage and estimated costs from local agent sessions. Keep the existing plugin/page identifiers and calculations.

Changes

File changes

src/bundled/usage/manifest.json
Set the discovery name, category, and description.

src/bundled/usage/index.tsx
Match the navigation title to Usage & costs.

src/bundled/usage/UsagePage.tsx
Match the pane title, accessible region name, and empty-state help.

src/bundled/usage/README.md
Use the new name in the heading and getting-started instructions.

docs/agents.md
Update the documented destination name.

docs/plugin-architecture.md
Update the default-off plugin name.

Reproduction steps

  1. Open Settings → Manage plugins and search for Usage & costs.
  2. Confirm it appears under Agent tools with “Token usage and estimated costs from local agent sessions.”
  3. Open its right-hand details pane and read the full README.
  4. Enable it and open Usage & costs from navigation; confirm the pane uses the same name.

Validation

At 9344591508c482a651290dcb01f938db1ffe4f92: commit hooks passed and the real app's plugin search/details flow was checked headlessly. The screenshots below are from that revision at 1440×1000, dark theme with magenta accent. The README fits fully without a disclosure control.

Pre-push checks passed: types and related unit tests, design-system checks, and the Rust/Clippy lane (no Rust changes).

Draft: human/native acceptance, populated-session checks, and the full theme/width/enlarged-text matrix remain pending. No independent review has been requested. No browser tests were added or removed.

Screenshots

Plugin list Right pane with full README
Usage & costs under Agent tools Usage & costs details with full README

Rename Usage to Usage & costs and group it under Agent tools. Clarify that costs are estimates from local agent sessions while preserving plugin and page identifiers.

Co-authored-by: Carl <acda9e433d19dcd0e6b6840f7f4b98f3a56f1fab98049d444c087019e6d36560@buzz.block.builderlab.xyz>

Signed-off-by: Taylor Ho <taylorkmho@gmail.com>
@tellaho
tellaho marked this pull request as ready for review October 20, 2026 17:24
@tellaho
tellaho requested a review from a team as a code owner October 20, 2026 17:24

@wesbillman wesbillman left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Star Lord’s automated source review via Wes’s account.

No actionable findings. 9/10 for minimalness, clarity and correctness: the six-file change consistently names the page “Usage & costs” and assigns the existing Agent tools category while retaining plugin ID buzz.usage, page ID usage, default-off behavior, usage calculations and lifecycle ownership. The visible pane heading and accessible region name match. Existing shared PanelHeaderLabel, FullPageSurface and EmptyState owners remain in place.

Reviewed head: 9344591
Base: cb28028

Coverage: Star Lord integration plus independent Rocket systems/lifecycle, Mantis correctness/security and Groot product/accessibility source reviews. Reviewed the public PR description and both attached screenshots; no disclosure finding. Documentation line wrapping is an optional cosmetic cleanup only.

Validation limits: source-only review; no PR code, tests, builds or app were executed. One hosted-check snapshot reports CI required successful; Windows and flake lanes were skipped. Author-reported app checks were not reproduced. Native/human acceptance, populated-session behavior, narrow widths, both themes, enlarged text, live screen-reader/focus behavior and runtime performance remain unverified. This COMMENT is not approval or merge authorization.

@tellaho
tellaho merged commit 7a68e01 into main Oct 20, 2026
59 of 61 checks passed
@tellaho
tellaho deleted the tho/token-spend branch October 20, 2026 20:23
wpfleger96 pushed a commit that referenced this pull request Oct 20, 2026
…-sessions

* origin/main: (23 commits)
  Add Marketplace tab and shared agent profile panels (#1411)
  fix: publish scoped typing indicators from conversation composers (#1435)
  feat: add configurable composer and pane focus shortcuts (#1418)
  perf(messages): reuse captured video opening frames on remount (#1437)
  FOR OCT 22: let agents clone and push their channel's repository (#1324)
  perf(relay): keep row profile map identity while new authors load (#1431)
  perf: avoid redundant relay channel derivation (#1412)
  Normalize dialog sizing, headers, spacing, and motion (#1403)
  Polish agent activity pills and popover actions (#1429)
  feat(agents): ask to resume claude and codex turns stopped by reload or quit (#1235)
  test(sign-out): join listed paths with / so the tests pass on Windows (#1247)
  fix(deps): remove distrusted emsign certificate roots (#1436)
  fix(plugins): distinguish usage and costs from agent activity (#1392)
  refactor(design-system): extract named Appearance palettes and revise plugin gradients (#1339)
  fix(channels): cancel inert activity popover opens (#1426)
  fix(codex): set up Codex in a dialog from the agent creation card, as Claude does (#1419)
  Add community-local settings (#1363)
  Fix sidebar and pane header alignment (#1409)
  Show recorded Codex scripts in Activity (#1413)
  fix(agents): restore emoji avatars in the agent avatar picker (#1404)
  ...

# Conflicts:
#	crates/agent-controller/src/app_agent.rs
wpfleger96 added a commit that referenced this pull request Oct 20, 2026
…-sessions

* origin/main: (23 commits)
  Add Marketplace tab and shared agent profile panels (#1411)
  fix: publish scoped typing indicators from conversation composers (#1435)
  feat: add configurable composer and pane focus shortcuts (#1418)
  perf(messages): reuse captured video opening frames on remount (#1437)
  FOR OCT 22: let agents clone and push their channel's repository (#1324)
  perf(relay): keep row profile map identity while new authors load (#1431)
  perf: avoid redundant relay channel derivation (#1412)
  Normalize dialog sizing, headers, spacing, and motion (#1403)
  Polish agent activity pills and popover actions (#1429)
  feat(agents): ask to resume claude and codex turns stopped by reload or quit (#1235)
  test(sign-out): join listed paths with / so the tests pass on Windows (#1247)
  fix(deps): remove distrusted emsign certificate roots (#1436)
  fix(plugins): distinguish usage and costs from agent activity (#1392)
  refactor(design-system): extract named Appearance palettes and revise plugin gradients (#1339)
  fix(channels): cancel inert activity popover opens (#1426)
  fix(codex): set up Codex in a dialog from the agent creation card, as Claude does (#1419)
  Add community-local settings (#1363)
  Fix sidebar and pane header alignment (#1409)
  Show recorded Codex scripts in Activity (#1413)
  fix(agents): restore emoji avatars in the agent avatar picker (#1404)
  ...

Co-authored-by: Will Pfleger <wpfleger@block.xyz>
Signed-off-by: Will Pfleger <wpfleger@block.xyz>
ngoodger-block added a commit to ngoodger-block/buzz-app that referenced this pull request Oct 21, 2026
* origin/main: (56 commits)
  Polish huddle portraits and thread layout (block#1406)
  fix(goose): keep long model names inside the Settings model row (block#1432)
  feat(agents): show a timestamp on each activity feed entry (block#1443)
  feat(agents): add buttons to compact and start new session (block#1434)
  feat(activity): request and show Claude Code and Codex thinking (block#1452)
  add inline renaming for Solo sidebar chats (block#1345)
  fix(goose): say why the profile has no model to choose (block#1445)
  Add Marketplace tab and shared agent profile panels (block#1411)
  fix: publish scoped typing indicators from conversation composers (block#1435)
  feat: add configurable composer and pane focus shortcuts (block#1418)
  perf(messages): reuse captured video opening frames on remount (block#1437)
  FOR OCT 22: let agents clone and push their channel's repository (block#1324)
  perf(relay): keep row profile map identity while new authors load (block#1431)
  perf: avoid redundant relay channel derivation (block#1412)
  Normalize dialog sizing, headers, spacing, and motion (block#1403)
  Polish agent activity pills and popover actions (block#1429)
  feat(agents): ask to resume claude and codex turns stopped by reload or quit (block#1235)
  test(sign-out): join listed paths with / so the tests pass on Windows (block#1247)
  fix(deps): remove distrusted emsign certificate roots (block#1436)
  fix(plugins): distinguish usage and costs from agent activity (block#1392)
  ...

Signed-off-by: Nikolaj Goodger <ngoodger@squareup.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.

3 participants