# agent: Include active file in recent history \(\#27914\) · gitcafe/zed

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

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

Visibility: public

Requested revision: fe27d11f083c5cd3d5ed5151afd78fff030e3ebc

Requested commit: fe27d11f083c5cd3d5ed5151afd78fff030e3ebc

Commit: fe27d11f083c5cd3d5ed5151afd78fff030e3ebc

Tree: 720a323c7eaad3a96eda302abe4414cd79620c69

Author: Agus Zubiaga

Committer: GitHub

## Message

```
agent: Include active file in recent history (#27914)

This happened because of two reasons:

- `Workspace::recent_navigation_history` didn't include the current file
- The context picker added the current file to a exclude list

The latter was actually intentional because we already show the file in
the suggested context, but now that we actually have mentions, it's just
inconvenient not to have it there.

Release Notes:

- N/A
```

## Parents

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

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