agent: Fix a panic when splitting streamed-in edits inside of a multibyte character#57100
Merged
Conversation
bennetbo
approved these changes
May 19, 2026
TomPlanche
pushed a commit
to TomPlanche/zed
that referenced
this pull request
May 20, 2026
…byte character (zed-industries#57100) This PR fixes a panic that could occur in the `edit_file` tool where streaming in text could split in the middle of a multibyte character. Closes FR-3 and [ZED-7ZX](https://zed-dev.sentry.io/issues/7480598098). Release Notes: - Fixed a panic that could occur when streaming in text with the `edit_file` tool.
This was referenced May 27, 2026
TomPlanche
pushed a commit
to TomPlanche/zed
that referenced
this pull request
Jun 2, 2026
…byte character (zed-industries#57100) This PR fixes a panic that could occur in the `edit_file` tool where streaming in text could split in the middle of a multibyte character. Closes FR-3 and [ZED-7ZX](https://zed-dev.sentry.io/issues/7480598098). Release Notes: - Fixed a panic that could occur when streaming in text with the `edit_file` tool.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR fixes a panic that could occur in the
edit_filetool where streaming in text could split in the middle of a multibyte character.Closes FR-3 and ZED-7ZX.
Release Notes:
edit_filetool.