# agent_ui: Don't reset provisional title if we already have one \(\#52193\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 841ca10528909d189e4f44078c0fd08f893f7c61

Requested commit: 841ca10528909d189e4f44078c0fd08f893f7c61

Commit: 841ca10528909d189e4f44078c0fd08f893f7c61

Tree: 024a691059c9447ec7b87a597fbd9d307587ae6d

Author: Ben Brandt

Committer: GitHub

## Message

```
agent_ui: Don't reset provisional title if we already have one (#52193)

## Context

If you went back and edited the first message, we were resetting the
provisional title, even though the title had previously already been set
from a summarization pass.

In order to achieve this, we moved the default thread title logic up the
UI layer, and allowed AcpThreads to have an optional title.

## Self-Review Checklist

<!-- Check before requesting review: -->
- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- N/A

---------

Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>
```

## Parents

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

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