The name fallback used byte-index slice on the prompt, which panics on multi-byte UTF-8 characters like Chinese. Use is_char_boundary() to find a safe truncation point.
The name fallback used byte-index slice on the prompt, which panics on multi-byte UTF-8 characters like Chinese. Use is_char_boundary() to find a safe truncation point.