# assistant2: Allow adding directories as context that contain non-UTF8 files \(\#26135\) · gitcafe/zed

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

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

Visibility: public

Requested revision: a602c50a6c6ed88f0bd3f5d165bd41601af39740

Requested commit: a602c50a6c6ed88f0bd3f5d165bd41601af39740

Commit: a602c50a6c6ed88f0bd3f5d165bd41601af39740

Tree: 938e3e7d88dfd4e3a01afe4b6057c6eef7b82d61

Author: Bennet Bo Fenner

Committer: GitHub

## Message

```
assistant2: Allow adding directories as context that contain non-UTF8 files (#26135)

We would previously return an error if there was at least one non-UTF8
file. Now we just ignore them and only add text files. If no text files
are found we show an error.

Release Notes:

- N/A
```

## Parents

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

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