Sweep 19 Sep 2026 · 02:36Z Build v2.1.278 500 read Stable v2.1.267 Latest v2.1.278 Next v2.1.278 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.277 ·

Edit tool's \uXXXX-escape text search hardened with a length guard and clearer failure

Edit tool's handling of \uXXXX text in search strings is hardened with a size check and clearer error

TierYou'll noticehow much it should matter to you
Useful2my rating, 1 to 5
Signal2worth watching, 1 to 5
AreaElsewherewhat it touches
KindBug Fixesin v2.1.277,
You'll notice

Edit tool's handling of \uXXXX text in search strings is hardened with a size check and clearer error

What

The Edit tool can treat a literal search string containing \uXXXX unicode escape sequences as if it were a regular expression. Before building that regular expression, Claude Code now estimates how long the resulting pattern would be and checks that the escape sequences are well-formed, instead of just testing length and regex validity generically. If this check fails, it now logs a specific message explaining that the \uXXXX-escape search was skipped because the regex engine refused a pattern of a given length, rather than silently returning nothing.

Why

This makes it clearer when and why an edit search involving unicode escapes didn't work, instead of the tool failing silently.

How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's release notes agreeFixed the Edit tool treating an escaped backslash followed by uXXXX text as a \uXXXX escape, which could make an edit of a non-ASCII…

See this entry in the whole of v2.1.277 →