Skip to content

Token usage metadata shows zeros despite high input token consumption from Zed editor #119

@matifali

Description

@matifali

Description

When using Zed editor with AI Bridge, the input token count is significantly higher than expected, but the Token Usage Metadata display shows all zeros.

Image

Problem

  • Sending a simple message like "Hello from Zed" results in 6353 input tokens
  • Zed's "Text" mode: ~6000+ input tokens
  • Zed's "Agent" mode: ~11000+ input tokens
  • Token Usage Metadata in AI Bridge displays all zeros, making it impossible to track/debug token consumption

Expected Behavior

Token Usage Metadata should accurately reflect actual token consumption so users can understand what's contributing to high token input counts.

Questions

  • Where in AI Bridge can users see what's consuming the extra input tokens?
  • Why does the Token Usage Metadata show zeros when tokens are clearly being consumed?

Context

This may be related to Zed injecting additional context (system prompts, editor context, etc.) that isn't being tracked properly by the metadata display or AI Bridge in general.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions