Skip to content

agent: Fix a panic when splitting streamed-in edits inside of a multibyte character#57100

Merged
bennetbo merged 2 commits into
mainfrom
fix-zed-7zx
May 19, 2026
Merged

agent: Fix a panic when splitting streamed-in edits inside of a multibyte character#57100
bennetbo merged 2 commits into
mainfrom
fix-zed-7zx

Conversation

@maxdeviant

Copy link
Copy Markdown
Member

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.

Release Notes:

  • Fixed a panic that could occur when streaming in text with the edit_file tool.

@maxdeviant maxdeviant self-assigned this May 18, 2026
@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label May 18, 2026
@zed-community-bot zed-community-bot Bot added the staff Pull requests authored by a current member of Zed staff label May 18, 2026
@maxdeviant maxdeviant changed the title agent: Fix a panic when agent: Fix a panic when splitting streamed-in edits inside of a multibyte character May 18, 2026
@maxdeviant maxdeviant requested review from benbrandt and bennetbo May 18, 2026 22:33
@bennetbo bennetbo added this pull request to the merge queue May 19, 2026
Merged via the queue into main with commit 14befe2 May 19, 2026
47 checks passed
@bennetbo bennetbo deleted the fix-zed-7zx branch May 19, 2026 06:47
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.
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement staff Pull requests authored by a current member of Zed staff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants