Skip to content

SKILL.md with multi-codepoint grapheme at chunk boundary fails to load #57463

@roboticsdude60

Description

@roboticsdude60

Reproduction steps

  1. Create a skill
  2. Write valid frontmatter followed by body content where a multi-byte character (emoji, etc.) starts at byte 4095 of the file.
  3. Open Zed and the agents pane. I see the skill fail to load with an error about invalid utf-8

Current vs. Expected behavior

Image

I expect skills to load, even when they have an emoji at a given byte offset in the file

Zed version and system specs

Zed: v1.4.1+preview.287.084505b1bbdcf5047ff8438658492ed738a3b9f4 (Zed Preview)
OS: macOS 26.3.1 (a) (Build 25D771280a)
Memory: 32 GiB
Architecture: aarch64

Attach Zed log file

Zed.log

Relevant Zed settings

settings.json

Relevant Keymap

keymap.json

(for AI issues) Model provider details

No response

If you are using WSL on Windows, what flavor of Linux are you using?

None

Metadata

Metadata

Assignees

Labels

area:aiRelated to Agent Panel, Edit Prediction, Copilot, or other AI featuresfrequency:uncommonBugs that happen for a small subset of users, special configurations, rare circumstances, etcpriority:P3Papercuts, minor issues with a clear workaround, cosmetic bugsstate:needs reproNeeds reproduction steps and/or someone to reproduce

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions