agent: Remove unneeded tracking of request usage (#29894)

This PR removes some unneeded tracking of the model request usage in the
`ActiveThread` and `ThreadEvent::UsageUpdated` events.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2025-05-04 21:16:53 -04:00 committed by GitHub
parent fe177f5d69
commit 3db4744e18
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 4 additions and 18 deletions

View file

@ -283,7 +283,6 @@ impl ExampleContext {
| ThreadEvent::ReceivedTextChunk
| ThreadEvent::StreamedToolUse { .. }
| ThreadEvent::CheckpointChanged
| ThreadEvent::UsageUpdated(_)
| ThreadEvent::CancelEditing => {
tx.try_send(Ok(())).ok();
if std::env::var("ZED_EVAL_DEBUG").is_ok() {