
Your agent's truncate() cuts emoji in half: a property test that finds it and an Intl.Segmenter fix
Ask for a string truncation helper and you get slice() and a length check. Two fast-check properties turn that into a failing test with a shrunk counterexample, and the fix is six lines. About 15 minutes to try.
8 min read