Skip to content

ACP Registry agent turns record zero usage on the Usage page #38941

Closed as not planned

Description

@Kietnehi

What happened

Turns run through ACP Registry agents—such as Qoder CLI running via the China endpoint (configured with instance ID qodercn)—produce no token counts, cost rows, or model breakdown on the Usage page.

Expected behavior

Turns completed using ACP Registry agents should record token counts and contribute to the Usage page breakdown and cost estimates, or documentation and settings should state that ACP agents are excluded from usage tracking.

Actual behavior

The Usage page reports zero tokens and zero cost for ACP Registry agent activity. Neither web nor mobile surfaces display usage data for ACP instances.

Evidence from the codebase

  1. docs/user/usage.md documents usage history collection for Codex, Claude Code, Grok Build, OpenCode, Antigravity, Pi, Muse Code, and Cursor only.
  2. packages/contracts/src/usage.ts defines UsageProviderKind without an entry for acpRegistry or acp.
  3. apps/server/src/provider/builtInDrivers.ts includes AcpRegistryDriver in BUILT_IN_DRIVERS, but omits it from BUILT_IN_USAGE_DRIVERS and BuiltInUsageReadersEnv.
  4. packages/provider-acp-registry/src/server/driver.ts implements AcpRegistryDriver without defining the optional usage property (ProviderUsageReader).
  5. apps/server/src/usage/UsageService.ts derives transcriptReaders and scanReaders strictly from BUILT_IN_USAGE_DRIVERS.
  6. packages/provider-acp-registry/src/server/adapter.ts restricts reportsPerTurnPromptUsage to glm-acp-agent, leaving other ACP registry agents (such as Qoder CLI) without prompt usage capture.
  7. apps/web/src/components/usage/usageProviders.ts (PROVIDER_PRESENTATION, PROVIDER_ORDER) and apps/mobile/src/features/usage/usageProviders.ts (PROVIDER_ORDER, PROVIDER_LABEL) lack presentation mappings for ACP providers.

Steps to reproduce

  1. Configure an ACP Registry provider instance (e.g., Qoder CLI endpoint qodercn) in Settings.
  2. Open a thread and run several turns using that provider instance.
  3. Open the Usage page via the sidebar or mod+u.
  4. Check token counts, cost summaries, and the model breakdown table.

Impact

Users executing tasks with ACP Registry agents cannot track token usage, estimate provider costs, or audit agent consumption.

Environment

  • Repository: pingdotgg/t3code (main as of 2026-11-19)
  • OS: Linux
  • Clients: Web, Desktop, Mobile

Labels: bug, usage

Activity

  1. juliusmarminge commented on Nov 19, 2026

    @juliusmarminge
    Member

    Thanks for writing this up. It asks for new behaviour rather than reporting a defect, so it does not belong in the bug tracker and I'm closing it as not planned here. Feature ideas are discussed in Discussions: please post it there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions