# More graceful invalid JSON handling \(\#29295\) · gitcafe/zed

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

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

Visibility: public

Requested revision: f6774ae60d52e3525d8603575c49be82d7dd9364

Requested commit: f6774ae60d52e3525d8603575c49be82d7dd9364

Commit: f6774ae60d52e3525d8603575c49be82d7dd9364

Tree: 4baace9f5e63b1364f80b36a0baac9284f0fd01c

Author: Richard Feldman

Committer: GitHub

## Message

```
More graceful invalid JSON handling (#29295)

Now we're more tolerant of invalid JSON coming back from the model
(possibly because it was incomplete and we're streaming), plus if we do
end up with invalid JSON once it has all streamed back, we report what
the malformed JSON actually was:

<img width="444" alt="Screenshot 2025-04-23 at 1 49 14 PM"
src="https://github.com/user-attachments/assets/480f5da7-869b-49f3-9ffd-8f08ccddb33d"
/>

Release Notes:

- N/A
```

## Parents

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

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