# agent: Fix issues with usage display sometimes showing initially fetched usage \(\#33125\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 7e801dccb0e7d2296120dbf277f63ecfecd223d3

Requested commit: 7e801dccb0e7d2296120dbf277f63ecfecd223d3

Commit: 7e801dccb0e7d2296120dbf277f63ecfecd223d3

Tree: 0273fe3d18fd87cbc849b169763dd6f6d943e9bb

Author: Michael Sloan

Committer: GitHub

## Message

```
agent: Fix issues with usage display sometimes showing initially fetched usage (#33125)

Having `Thread::last_usage` as an override of the initially fetched
usage could cause the initial usage to be displayed when the current
thread is empty or in text threads. Fix is to just store last usage info
in `UserStore` and not have these overrides

Release Notes:

- Agent: Fixed request usage display to always include the most recently
known usage - there were some cases where it would show the initially
requested usage.
```

## Parents

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

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