# agent_ui: Add per-file and total number of lines added and removed \(\#46454\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 7142e6a7817a3d88e37b41eaac156d08f6a41d4a

Requested commit: 7142e6a7817a3d88e37b41eaac156d08f6a41d4a

Commit: 7142e6a7817a3d88e37b41eaac156d08f6a41d4a

Tree: 018a434cd53c17c043821fe4ad2e46a2aa2b636e

Author: Danilo Leal

Committer: GitHub

## Message

```
agent_ui: Add per-file and total number of lines added and removed (#46454)

This PR adds the total and per-file number of lines added and removed
per thread, using the same logic to compute these as in the commit view.
Here's how they show up in the UI:

<img width="500" height="514" alt="Screenshot 2026-01-09 at 11  27@2x"
src="https://github.com/user-attachments/assets/e3a4a14f-a4ee-4e95-a77b-86d14914e9d6"
/>

Release Notes:

- Agent: Added the total and per-file number of lines added and removed
in a thread.
```

## Parents

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

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