Skip to content

Conversation

h16rkim
Copy link
Contributor

@h16rkim h16rkim commented Oct 9, 2025

Issue #, if available: #3136

Description of changes:

When using checkpoint features, the user’s prompt is truncated through the truncate_message function. This function trims the prompt with a substring if its length is too long (length: 60).

However, in the case of multibyte characters such as those in CJK languages, if a character is cut across a UTF-8 boundary, a panic occurs and the program terminates.

This PR removes such crashes and fixes the truncate_message so that it works correctly.

Screen Capture

checkpoint-crash

@h16rkim
Copy link
Contributor Author

h16rkim commented Oct 9, 2025

Similar Pull Request(UTF-8 boundary issue): #3087

@evanliu048 evanliu048 merged commit 906a89d into aws:main Oct 10, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants