Skip to content

feat: token usage in webchat - #40

Merged
melvincarvalho merged 1 commit into
gh-pagesfrom
issue-39-token-usage
Jun 11, 2026
Merged

melvincarvalho merged 1 commit into
gh-pagesfrom
issue-39-token-usage

Conversation

@melvincarvalho

Copy link
Copy Markdown
Contributor

Fixes #39. ContainerOutput.usage ({input_tokens, output_tokens}, cache counted as input), populated by the default runner (Agent SDK result event) and agent-micro (jsclaw/agent-micro#6, merged). Webchat shows a muted mono line under each agent reply plus a cumulative session counter in the header. Tokens only, no dollar costs. Tests 119/119; verified live end-to-end.

ContainerOutput gains optional usage; both runners populate it.
Webchat renders a small mono line under each reply and a running
session total beside the model badge. Also de-dups the rename
artifact in the intro line.
@melvincarvalho
melvincarvalho merged commit 44fe1c8 into gh-pages Jun 11, 2026
@melvincarvalho
melvincarvalho deleted the issue-39-token-usage branch June 11, 2026 17:38
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.

webchat: show token usage per reply and session total

1 participant