# agent_ui: Move fully complete plan to the thread view \(\#52462\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 73226701c022acdac3dc7b20a39717705da6614b

Requested commit: 73226701c022acdac3dc7b20a39717705da6614b

Commit: 73226701c022acdac3dc7b20a39717705da6614b

Tree: 774486ceff29648f01ec64bf4bc1ce0f7a834efc

Author: Danilo Leal

Committer: GitHub

## Message

```
agent_ui: Move fully complete plan to the thread view (#52462)

When a plan generate by the plan tool fully completes, there's no need
for that to be in the activity bar anymore. It's complete and in the
next turn, the agent may come up with another plan and the cycle
restarts. So, this PR moves a fully complete plan to the thread view, so
that it stays as part of a given turn:

<img width="600" height="1858" alt="image"
src="https://github.com/user-attachments/assets/43ad4eb0-49d0-488c-bbbf-ab7956c1dd5a"
/>

The way this PR does this is by adding a new entry to `AgentThreadEntry`
and snapshotting the completed plan so we can display it properly in the
thread.

Release Notes:

- N/A
```

## Parents

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

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