# assistant2: Suggest recent files and threads as context \(\#22959\) · gitcafe/zed

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

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

Visibility: public

Requested revision: a267911e83742c741284aa737aa5c6d5baa5cd16

Requested commit: a267911e83742c741284aa737aa5c6d5baa5cd16

Commit: a267911e83742c741284aa737aa5c6d5baa5cd16

Tree: 7d4e0219cfbe862ee828131254417c70f9c8c942

Author: Agus Zubiaga

Committer: GitHub

## Message

```
assistant2: Suggest recent files and threads as context (#22959)

The context picker will now display up to 6 recent files/threads to add
as a context:

<img
src="https://github.com/user-attachments/assets/80c87bf9-70ad-4e81-ba24-7a624378b991"
width=400>



Note: We decided to use a `ContextMenu` instead of `Picker` for the
initial one since the latter didn't quite fit the design for the
"Recent" section.

Release Notes:

- N/A

---------

Co-authored-by: Danilo <danilo@zed.dev>
Co-authored-by: Piotr <piotr@zed.dev>
Co-authored-by: Nathan <nathan@zed.dev>
```

## Parents

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

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