# agent_panel: Keep current title name when generating new title \(\#55512\) · gitcafe/zed

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

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

Visibility: public

Requested revision: c97ad4692f99df4cc5eaa0a83a91afaefb641076

Requested commit: c97ad4692f99df4cc5eaa0a83a91afaefb641076

Commit: c97ad4692f99df4cc5eaa0a83a91afaefb641076

Tree: a3febd9ce2cbc71f3036f46a790ab45253d3ebac

Author: Anthony Eid

Committer: GitHub

## Message

```
agent_panel: Keep current title name when generating new title (#55512)

When generating a title we replace the title text of the agent panel
with a hard coded "New Agent Thread" title, even when a title already
exists. This PR uses the pre existing title name as a place holder
during title generating instead of the hard coded value.

Self-Review Checklist:

- [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 or Added/Fixed/Improved ...
```

## Parents

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

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