The Wire · Showcase
LARAVEL/BOOST CORRUPTS UTF-8 RULE FILES
By RepoJournal · Filed · About Laravel
A newline normalization bug in Boost is silently corrupting rule files with multi-byte characters, and the fix is critical before your next AI-assisted commit.
Laravel Boost's rule file writer has a critical bug: `preg_replace('/\R/', ...)` without the `u` modifier matches NEL (0x85) as a newline, corrupting any rule containing multi-byte UTF-8 like 'х' or '🙅' [1]. The tool still reports success, so broken bytes slip into `.ai/rules/*.md` unnoticed. Pull the fix from [2] which adds the proper handling for this exact issue. Meanwhile, Laravel AI shipped v0.11.0 with failover triggering on provider connection failures [5] and conformance testing for MCP servers [3], but the MCP suite requires pinning to an alpha tag for protocol revision 2026-07-28 [4]. Anthropic's web_fetch citations now surface correctly in Laravel AI, mirroring the existing web_search handling [6]. xAI file search support is also on the way, though metadata filters are not yet mapped [7]. Fix Boost first, then run the new MCP conformance suite to validate your protocol.
One email a day. Unsubscribe in one click.
Keep up with Laravel in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.
One email a day. Unsubscribe in one click. Read a past issue →
Action items
- → Apply the Boost UTF-8 fix from PR #947 before writing any new rules laravel/boost [immediate]
- → Run `composer test:conformance:server` in laravel/mcp to validate protocol laravel/mcp [plan]
- → Review Laravel AI v0.11.0 release notes before upgrading laravel/ai [monitor]
References
- [1] Fix newline normalization corrupting multi-byte UTF-8 in rule files ↗ laravel/boost
- [2] Fix newline normalization corrupting multi-byte UTF-8 in rule files (#947) laravel/boost
- [3] Add the MCP conformance suite for local runs ↗ laravel/mcp
- [4] Add the MCP conformance suite for local runs (#327) laravel/mcp
- [5] v0.11.0 ↗ laravel/ai
- [6] Surface Anthropic web fetch citations on the response ↗ laravel/ai
- [7] Add file search support to the xAI provider ↗ laravel/ai