Trailing prose containing braces made the greedy rfind slice invalid, so parse_edits_payload silently dropped valid edits. Decode the first JSON value like math_animator.