# agent: Hide token usage after running \`/compact\` \(\#58937\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/0bc6c76fcf2d7e9f30e48f891a7fd457c939c0f9)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 0bc6c76fcf2d7e9f30e48f891a7fd457c939c0f9

Requested commit: 0bc6c76fcf2d7e9f30e48f891a7fd457c939c0f9

Commit: 0bc6c76fcf2d7e9f30e48f891a7fd457c939c0f9

Tree: 9aec85f74572244aa869c754fccdc02f64fec424

Author: Bennet Bo Fenner

Committer: GitHub

## Message

```
agent: Hide token usage after running `/compact` (#58937)

We can't compute the actual token usage until we send a new request, so
we hide the token count until you send another message. Matching the
behaviour that we have for new threads

Release Notes:

- N/A

Co-authored-by: Richard Feldman <oss@rtfeldman.com>
```

## Parents

- [0e9e8d0e68bbb5095668671b5f1c2a90834cfbd2](https://git.cafe/gitcafe/zed/commit/0e9e8d0e68bbb5095668671b5f1c2a90834cfbd2?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/0bc6c76fcf2d7e9f30e48f891a7fd457c939c0f9?format=markdown)
