Skip to content

Show the token usage and cost - #512

Draft
DinahK-2SO wants to merge 4 commits into
mainfrom
user/DinahK-2SO/show-usage-calc
Draft

Show the token usage and cost#512
DinahK-2SO wants to merge 4 commits into
mainfrom
user/DinahK-2SO/show-usage-calc

Conversation

@DinahK-2SO

@DinahK-2SO DinahK-2SO commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Summary of the Pull Request

Show the token usage and cost of the current session.

References and Relevant Issues

Detailed Description of the Pull Request / Additional comments

Show the <token usage> / <context window size> and cost: <number> <unit> of the current session.

The data displayed are from ACP, not altered.

Validation Steps Performed

  • Adds unit tests
  • Tested in local build:
image

PR Checklist

  • Closes Token consumption #269
  • Tests added/passed
  • Documentation updated
    • If checked, please file a pull request on our docs repo and link it here: #xxx
  • Schema updated (if necessary)

commit 9cd3838
Merge: ba701e6 84c4d7d
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Wed Jul 29 17:58:32 2026 +0800

    Merge branch 'main' into user/DinahK-2SO/acp-price-calc

commit ba701e6
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Wed Jul 29 16:44:12 2026 +0800

    fix: trust reported usage currency

commit 7073c09
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Wed Jul 29 16:29:09 2026 +0800

    fix: track stale usage per metric

commit d7558b8
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Wed Jul 29 16:14:16 2026 +0800

    fix: preserve coalesced usage cost

commit eb8c1b1
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Wed Jul 29 16:10:24 2026 +0800

    fix: preserve usage on local clear

commit c938975
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Wed Jul 29 16:04:33 2026 +0800

    fix: isolate optional usage cost

commit cbacd42
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Wed Jul 29 15:57:13 2026 +0800

    fix: keep rejected turns connected

commit baa47d9
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Wed Jul 29 15:53:34 2026 +0800

    fix: trust provider context capacity

commit 5c04a9d
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Wed Jul 29 04:05:59 2026 +0000

    fix: restrict usage to ACP context and cost

commit b819780
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Wed Jul 29 03:37:39 2026 +0000

    fix: show only context and monetary cost

commit 4a4639e
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Wed Jul 29 11:25:53 2026 +0800

    update status

commit 6ce7957
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Wed Jul 29 07:17:11 2026 +0800

    look into the usage/costs by turns

commit 1163e73
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Tue Jul 28 17:29:27 2026 +0800

    docs: capture same-session provider turns

commit 6a9c932
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Tue Jul 28 17:18:05 2026 +0800

    test: support same-session provider turns

commit 949dac1
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Tue Jul 28 17:05:08 2026 +0800

    single test report

commit d63b207
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Tue Jul 28 15:53:01 2026 +0800

    docs: capture per-provider ACP results

commit 7fe1102
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Tue Jul 28 15:39:19 2026 +0800

    test: add self-contained ACP provider capture

commit 35d91db
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Tue Jul 28 15:27:01 2026 +0800

    feat: report standard and Gemini token usage

commit 6f8d9b8
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Tue Jul 28 15:11:04 2026 +0800

    feat: show input and output token usage

commit aa5c340
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Tue Jul 28 15:03:00 2026 +0800

    docs: enforce TDD checkpoint workflow

commit a712fb2
Merge: 13c6f38 20188dd
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Tue Jul 28 14:56:37 2026 +0800

    Merge remote-tracking branch 'origin/user/DinahK-2SO/acp-price-calc' into user/DinahK-2SO/acp-price-calc

commit 13c6f38
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Mon Jul 27 17:01:38 2026 +0800

    update AGENTS.md

commit 20188dd
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Mon Jul 27 17:01:38 2026 +0800

    update AGENTS.md

commit fe3550a
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Thu Jul 23 05:27:02 2026 +0000

    Pin E2E tests to PowerShell 7

commit 62202f9
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Thu Jul 23 05:04:20 2026 +0000

    Add modular provider usage adapters

commit ff98b21
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Thu Jul 23 12:55:45 2026 +0800

    update instructions

commit c900ad9
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Thu Jul 23 02:46:31 2026 +0000

    Handle partial usage display states

commit ac0238f
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Wed Jul 22 21:51:30 2026 +0000

    Complete ACP usage integration

commit 2eb7d55
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Wed Jul 22 20:49:58 2026 +0000

    Contain malformed usage updates

commit 98d227e
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Wed Jul 22 20:30:15 2026 +0000

    Render usage in the Bottom Bar

commit 23d061d
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Wed Jul 22 19:38:06 2026 +0000

    Cache normalized usage in TerminalApp

commit 6aa06cc
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Wed Jul 22 19:08:30 2026 +0000

    Project usage through agent tab state

commit e99c07d
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Wed Jul 22 19:00:09 2026 +0000

    Reset usage across session lifecycle

commit e4feb7c
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Wed Jul 22 18:50:44 2026 +0000

    Route ACP usage into per-tab state

commit 4014506
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Wed Jul 22 18:37:34 2026 +0000

    Normalize standard ACP usage updates

commit 3094132
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Thu Jul 23 02:29:41 2026 +0800

    Route ACP usage reliably to helpers

commit c50396f
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Thu Jul 23 02:21:34 2026 +0800

    Prepare ACP usage provider baseline
assert!(!is_redundant_startup_model_error(
&PromptUsageIdentity {
family_id: Some("gemini".to_string()),
reporter_id: Some("lookalike-gemini".to_string()),
Comment thread tools/wta/src/usage.rs

#[test]
fn preserves_provider_reported_currency_without_shape_policy() {
for currency in ["US", "USDD", "usd", "US1", "U$D"] {
Comment thread tools/wta/src/usage.rs

#[test]
fn preserves_provider_reported_currency_without_shape_policy() {
for currency in ["US", "USDD", "usd", "US1", "U$D"] {
Comment thread tools/wta/src/usage.rs
"{} must not trust a private reporter before wire verification",
provider.family_id()
);
for reporter_id in [None, Some("lookalike-reporter")] {
@github-actions

This comment has been minimized.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds end-to-end support for surfacing ACP session usage (token context window + cumulative cost) in the Terminal UI, wiring ACP UsageUpdate notifications through WTA state/projection into the bottom bar.

Changes:

  • Plumb ACP UsageUpdate through WTA (helper/client → app state → WT protocol projection) and render it in the Terminal bottom bar.
  • Introduce a provider-usage adapter registry (currently no-op / “standard ACP only”) and normalize standard ACP usage into a stable schema for UI consumption.
  • Pin/update agent launch commands (Claude/Codex ACP adapters) and switch Gemini to the official --acp flag across Rust/C++/docs/tests.

Reviewed changes

Copilot reviewed 32 out of 32 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tools/wta/src/wsl_acp.rs Updates WSL ACP command expectations (pinned adapter versions).
tools/wta/src/usage/providers/mod.rs Adds provider usage adapter framework and registry.
tools/wta/src/usage/providers/claude.rs Claude provider adapter (currently standard ACP only).
tools/wta/src/usage/providers/codex.rs Codex provider adapter (currently standard ACP only).
tools/wta/src/usage/providers/copilot.rs Copilot provider adapter (reserved private usage slot).
tools/wta/src/usage/providers/gemini.rs Gemini provider adapter (currently standard ACP only).
tools/wta/src/usage/providers/opencode.rs OpenCode provider adapter + normalization test for standard usage.
tools/wta/src/usage.rs Defines usage snapshot/projection + standard ACP usage normalization + tests.
tools/wta/src/session_registry.rs Updates serialized metadata tests for pinned Claude adapter command.
tools/wta/src/protocol/acp/client.rs Handles ACP UsageUpdate, redacts trace logging, and improves Gemini model-set handling.
tools/wta/src/master/tests.rs Updates agent command expectations; adds coalescing tests for usage updates; extends master state for pending usage.
tools/wta/src/master/mod.rs Coalesces/delays usage notifications via pending_usage + watch to avoid backpressure and preserve cost across updates.
tools/wta/src/main.rs Exposes the new usage module.
tools/wta/src/coordinator.rs Updates adapter command strings and related tests.
tools/wta/src/app.rs Stores per-tab usage snapshot/staleness and clears it on session-boundary operations.
tools/wta/src/app_tests.rs Adds unit tests for usage lifecycle, projection, and staleness behavior.
tools/wta/src/app_status_projection.rs Projects usage into the WT protocol agent_state_changed event payload.
tools/wta/src/app_events.rs Updates app event handling to merge/clear usage and mark stale on transport loss.
tools/wta/src/app_contracts/event.rs Adds UsageReported / UsageCleared events.
tools/wta/src/agent_registry.rs Adds agent ID constants, pins adapter commands, switches Gemini to --acp, and updates identification aliases/tests.
src/cascadia/ut_app/TerminalApp.UnitTests.vcxproj Registers new TerminalApp unit test compilation unit.
src/cascadia/ut_app/AgentUsageTests.cpp Adds unit tests for parsing/validation and UI text formatting for usage.
src/cascadia/TerminalSettingsEditor/AIAgentsViewModel.cpp Updates default launch commands (adapter pins + Gemini --acp).
src/cascadia/TerminalApp/TerminalPage.xaml Adds UsageGroup container to the bottom bar UI.
src/cascadia/TerminalApp/TerminalPage.cpp Parses usage from agent_state_changed and renders usage summary in the bottom bar; updates command defaults.
src/cascadia/TerminalApp/TerminalAppLib.vcxproj Adds AgentUsage implementation to the build.
src/cascadia/TerminalApp/Resources/en-US/Resources.resw Adds new usage-related localized strings (en-US only in this PR).
src/cascadia/TerminalApp/AgentUsage.h Declares parsing/formatting helpers for usage payloads.
src/cascadia/TerminalApp/AgentUsage.cpp Implements usage payload validation + cost formatting for display.
src/cascadia/TerminalApp/AgentPaneContent.h Adds usage cache storage and accessors on the agent pane content.
src/cascadia/TerminalApp/AgentPaneContent.cpp Applies incoming usage payload into the cached usage state.
doc/installing-dependencies.md Updates docs to reflect pinned adapter commands.
Comments suppressed due to low confidence (1)

src/cascadia/TerminalApp/TerminalPage.cpp:5006

  • Applying usage can throw (e.g. AgentUsage::Parse rejects an unexpected schema). Right now the exception would propagate out of OnAgentStateChanged and potentially terminate the UI thread. Catch and log instead so a bad usage payload doesn’t crash the session UI.
        if (usage.has_value())
        {
            if (const auto agentContent = targetTab->FindAgentPaneContent())
            {
                winrt::get_self<implementation::AgentPaneContent>(agentContent)->ApplyAgentUsage(*usage);
            }
        }

Comment on lines +4871 to +4881
std::optional<Json::Value> usage;
if (params.isMember("usage"))
{
const auto& value = params["usage"];
if (!value.isNull() && !value.isObject())
{
throw std::invalid_argument{ "agent_state_changed usage must be null or object" };
}
usage = value;
logSuffix += value.isNull() ? " usage=null" : " usage=present";
}
Comment on lines +1320 to +1327
<data name="UsageGroup/[using:Windows.UI.Xaml.Automation]AutomationProperties/Name" xml:space="preserve">
<value>Usage</value>
<comment>Accessibility name for the session usage summary in the bottom bar.</comment>
</data>
<data name="Usage_TokensUnit" xml:space="preserve">
<value>Tokens</value>
<comment>Unit label for token counts reported by an AI agent. {Locked="Tokens"}</comment>
</data>
@github-actions

This comment has been minimized.

commit e1201fe
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Thu Jul 30 23:28:20 2026 +0000

    docs: finalize usage and cost toggle behavior

commit 94ac417
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Thu Jul 30 23:19:56 2026 +0000

    feat: name usage and cost visibility explicitly

commit cea0c05
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Fri Jul 31 07:00:36 2026 +0800

    fix: hide usage and cost together

commit 4f57608
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Thu Jul 30 18:14:32 2026 +0800

    docs: document token usage visibility controls

commit caa8a31
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Thu Jul 30 18:11:55 2026 +0800

    test: validate token usage toggles end to end

commit 45041de
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Thu Jul 30 17:24:59 2026 +0800

    fix: scope visibility toggle to token usage

commit eaa3cd1
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Thu Jul 30 17:01:32 2026 +0800

    feat: add agent usage toggle to first run

commit 85287d3
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Thu Jul 30 16:40:36 2026 +0800

    feat: add agent usage toggle to settings

commit 74c8911
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Thu Jul 30 16:24:28 2026 +0800

    feat: hide agent usage by default

commit 5202b60
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Thu Jul 30 15:56:02 2026 +0800

    update AGENTS.md

commit b30df3f
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Thu Jul 30 15:28:32 2026 +0800

    test: make Gemini usage coverage provider-neutral

commit b1ef044
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Thu Jul 30 14:59:27 2026 +0800

    feat: add one-click local MSIX installer

commit dfcd15b
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Wed Jul 29 22:59:20 2026 +0800

    chore: restore portable PowerShell E2E

commit 07c47fb
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Wed Jul 29 22:31:29 2026 +0800

    docs: record compact cost validation

commit a59f8e1
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Wed Jul 29 22:17:14 2026 +0800

    feat: compact reported cost display

commit 9cd3838
Merge: ba701e6 84c4d7d
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Wed Jul 29 17:58:32 2026 +0800

    Merge branch 'main' into user/DinahK-2SO/acp-price-calc

commit ba701e6
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Wed Jul 29 16:44:12 2026 +0800

    fix: trust reported usage currency

commit 7073c09
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Wed Jul 29 16:29:09 2026 +0800

    fix: track stale usage per metric

commit d7558b8
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Wed Jul 29 16:14:16 2026 +0800

    fix: preserve coalesced usage cost

commit eb8c1b1
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Wed Jul 29 16:10:24 2026 +0800

    fix: preserve usage on local clear

commit c938975
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Wed Jul 29 16:04:33 2026 +0800

    fix: isolate optional usage cost

commit cbacd42
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Wed Jul 29 15:57:13 2026 +0800

    fix: keep rejected turns connected

commit baa47d9
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Wed Jul 29 15:53:34 2026 +0800

    fix: trust provider context capacity

commit 5c04a9d
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Wed Jul 29 04:05:59 2026 +0000

    fix: restrict usage to ACP context and cost

commit b819780
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Wed Jul 29 03:37:39 2026 +0000

    fix: show only context and monetary cost

commit 4a4639e
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Wed Jul 29 11:25:53 2026 +0800

    update status

commit 6ce7957
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Wed Jul 29 07:17:11 2026 +0800

    look into the usage/costs by turns

commit 1163e73
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Tue Jul 28 17:29:27 2026 +0800

    docs: capture same-session provider turns

commit 6a9c932
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Tue Jul 28 17:18:05 2026 +0800

    test: support same-session provider turns

commit 949dac1
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Tue Jul 28 17:05:08 2026 +0800

    single test report

commit d63b207
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Tue Jul 28 15:53:01 2026 +0800

    docs: capture per-provider ACP results

commit 7fe1102
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Tue Jul 28 15:39:19 2026 +0800

    test: add self-contained ACP provider capture

commit 35d91db
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Tue Jul 28 15:27:01 2026 +0800

    feat: report standard and Gemini token usage

commit 6f8d9b8
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Tue Jul 28 15:11:04 2026 +0800

    feat: show input and output token usage

commit aa5c340
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Tue Jul 28 15:03:00 2026 +0800

    docs: enforce TDD checkpoint workflow

commit a712fb2
Merge: 13c6f38 20188dd
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Tue Jul 28 14:56:37 2026 +0800

    Merge remote-tracking branch 'origin/user/DinahK-2SO/acp-price-calc' into user/DinahK-2SO/acp-price-calc

commit 13c6f38
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Mon Jul 27 17:01:38 2026 +0800

    update AGENTS.md

commit 20188dd
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Mon Jul 27 17:01:38 2026 +0800

    update AGENTS.md

commit fe3550a
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Thu Jul 23 05:27:02 2026 +0000

    Pin E2E tests to PowerShell 7

commit 62202f9
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Thu Jul 23 05:04:20 2026 +0000

    Add modular provider usage adapters

commit ff98b21
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Thu Jul 23 12:55:45 2026 +0800

    update instructions

commit c900ad9
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Thu Jul 23 02:46:31 2026 +0000

    Handle partial usage display states

commit ac0238f
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Wed Jul 22 21:51:30 2026 +0000

    Complete ACP usage integration

commit 2eb7d55
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Wed Jul 22 20:49:58 2026 +0000

    Contain malformed usage updates

commit 98d227e
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Wed Jul 22 20:30:15 2026 +0000

    Render usage in the Bottom Bar

commit 23d061d
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Wed Jul 22 19:38:06 2026 +0000

    Cache normalized usage in TerminalApp

commit 6aa06cc
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Wed Jul 22 19:08:30 2026 +0000

    Project usage through agent tab state

commit e99c07d
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Wed Jul 22 19:00:09 2026 +0000

    Reset usage across session lifecycle

commit e4feb7c
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Wed Jul 22 18:50:44 2026 +0000

    Route ACP usage into per-tab state

commit 4014506
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Wed Jul 22 18:37:34 2026 +0000

    Normalize standard ACP usage updates

commit 3094132
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Thu Jul 23 02:29:41 2026 +0800

    Route ACP usage reliably to helpers

commit c50396f
Author: Dinah Xiaoman G <116714259+DinahK-2SO@users.noreply.github.com>
Date:   Thu Jul 23 02:21:34 2026 +0800

    Prepare ACP usage provider baseline
@github-actions

Copy link
Copy Markdown

@check-spelling-bot Report

⚠️ Dictionary not found

Problems were encountered retrieving check dictionaries (cspell:latex/dict/latex.txt cspell:python/src/python/python-lib.txt cspell:shell/dict/shell-all-words.txt cspell:r/src/r.txt cspell:css/dict/css.txt cspell:fullstack/dict/fullstack.txt cspell:cpp/src/stdlib-cmath.txt cspell:ada/dict/ada.txt cspell:rust/dict/rust.txt cspell:swift/src/swift.txt cspell:npm/dict/npm.txt cspell:sql/src/tsql.txt cspell:redis/dict/redis.txt cspell:powershell/dict/powershell.txt cspell:cpp/src/compiler-clang-attributes.txt cspell:svelte/dict/svelte.txt cspell:cpp/src/lang-keywords.txt cspell:dotnet/dict/dotnet.txt cspell:ruby/dict/ruby.txt cspell:elixir/dict/elixir.txt cspell:gaming-terms/dict/gaming-terms.txt cspell:lua/dict/lua.txt cspell:cpp/src/people.txt cspell:golang/dict/go.txt cspell:software-terms/dict/webServices.txt cspell:clojure/src/clojure.txt cspell:cpp/src/compiler-msvc.txt cspell:cpp/src/stdlib-cpp.txt cspell:public-licenses/src/additional-licenses.txt cspell:node/dict/node.txt cspell:java/src/java-terms.txt cspell:haskell/dict/haskell.txt cspell:cpp/src/lang-jargon.txt cspell:software-terms/dict/softwareTerms.txt cspell:python/src/additional_words.txt cspell:monkeyc/src/monkeyc_keywords.txt cspell:cpp/src/template-strings.txt cspell:django/dict/django.txt cspell:java/src/java.txt cspell:html/dict/html.txt cspell:public-licenses/src/generated/public-licenses.txt cspell:sql/src/sql.txt cspell:python/src/python/python.txt cspell:cpp/src/stdlib-c.txt cspell:k8s/dict/k8s.txt cspell:php/dict/php.txt cspell:typescript/dict/typescript.txt cspell:cpp/src/compiler-gcc.txt cspell:docker/src/docker-words.txt cspell:cpp/src/ecosystem.txt cspell:cpp/src/stdlib-cerrno.txt cspell:scala/dict/scala.txt cspell:dart/src/dart.txt cspell:python/src/common/extra.txt).

⚠️ For more information, see check-dictionary-not-found.

🔴 Please review

See the 📂 files view, the 📜action log, 👼 SARIF report, or 📝 job summary for details.

Unrecognized words (3)

lookalike
usd
USDD

These words are not needed and should be removed AHP Backgrounder CANTCALLOUT Ccc cplusplus ctl Debian dotnet drv endptr EOFs evt Fullwidth gitlab hdr idl IME inbox ININPUTSYNCCALL INJ intelligentterminal Ioctl KVM lbl lld lsb NODEFAULT NONINFRINGEMENT notif oss outdir Podcast pri prioritization rcv segfault SND sourced SWP Tbl testname transitioning unk unparseable unregisters Virt VMs webpage websites WINVER xsi

To accept these unrecognized words as correct and remove the previously acknowledged and now absent words, you could run the following commands

... in a clone of the git@github.com:microsoft/intelligent-terminal.git repository
on the user/DinahK-2SO/show-usage-calc branch (ℹ️ how do I use this?):

curl -s -S -L 'https://raw.githubusercontent.com/check-spelling/check-spelling/cfb6f7e75bbfc89c71eaa30366d0c166f1bd9c8c/apply.pl' |
perl - 'https://github.com/microsoft/intelligent-terminal/actions/runs/30603623022/attempts/1' &&
git commit -m 'Update check-spelling metadata'
Available 📚 dictionaries could cover words (expected and unrecognized) not in the 📘 dictionary

This includes both expected items (2093) from .github/actions/spelling/expect/alphabet.txt .github/actions/spelling/expect/expect.txt .github/actions/spelling/expect/web.txt and unrecognized words (3)

Dictionary Entries Covers Uniquely
cspell:csharp/csharp.txt 32 2 2
cspell:aws/aws.txt 232 2 2
cspell:fonts/fonts.txt 536 1 1

Consider adding to the extra_dictionaries array (in the .github/actions/spelling/config.json file):

    "cspell:csharp/csharp.txt",
    "cspell:aws/aws.txt",
    "cspell:fonts/fonts.txt",

To stop checking additional dictionaries, put (in the .github/actions/spelling/config.json file):

"check_extra_dictionaries": []
Warnings ⚠️ (1)

See the 📂 files view, the 📜action log, 👼 SARIF report, or 📝 job summary for details.

⚠️ Warnings Count
⚠️ check-dictionary-not-found 54

See ⚠️ Event descriptions for more information.

✏️ Contributor please read this

By default the command suggestion will generate a file named based on your commit. That's generally ok as long as you add the file to your commit. Someone can reorganize it later.

If the listed items are:

  • ... misspelled, then please correct them instead of using the command.
  • ... names, please add them to .github/actions/spelling/allow/names.txt.
  • ... APIs, you can add them to a file in .github/actions/spelling/allow/.
  • ... just things you're using, please add them to an appropriate file in .github/actions/spelling/expect/.
  • ... tokens you only need in one place and shouldn't generally be used, you can add an item in an appropriate file in .github/actions/spelling/patterns/.

See the README.md in each directory for more information.

🔬 You can test your commits without appending to a PR by creating a new branch with that extra change and pushing it to your fork. The check-spelling action will run in response to your push -- it doesn't require an open pull request. By using such a branch, you can limit the number of typos your peers see you make. 😉

If the flagged items are 🤯 false positives

If items relate to a ...

  • binary file (or some other file you wouldn't want to check at all).

    Please add a file path to the excludes.txt file matching the containing file.

    File paths are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your files.

    ^ refers to the file's path from the root of the repository, so ^README\.md$ would exclude README.md (on whichever branch you're using).

  • well-formed pattern.

    If you can write a pattern that would match it,
    try adding it to the patterns.txt file.

    Patterns are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your lines.

    Note that patterns can't match multiline strings.

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.

Token consumption

3 participants