zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
49.86k stars 3.06k forks source link

Token usage showing as 1.3k regardless of LLM or project #20690

Closed pchalasani closed 5 hours ago

pchalasani commented 5 hours ago

Check for existing issues

Describe the bug / provide steps to reproduce it

When I open the assistant pane, with just my short default prompt (< 30 tokens) and no other context inserted, it already shows I've used 1.3k tokens, e.g. with Claude 3.5 Sonnet it shows 1.3k/200k, see image. The 1.3k remains same regardless of which LLM or which project I open zed with.

Environment

Zed: v0.160.7 (Zed) OS: macOS 15.0.0 Memory: 64 GiB Architecture: aarch64

If applicable, add mockups / screenshots to help explain present your vision of the feature

image

If applicable, attach your Zed.log file to this issue.

Zed.log ``` ```
notpeter commented 5 hours ago

Upgrade Zed. Zed >= 0.161.x include this fix: