fix(session): remove interrupted message in user's dialog history#218
Open
doraemon-hub-art wants to merge 1 commit into
Open
fix(session): remove interrupted message in user's dialog history#218doraemon-hub-art wants to merge 1 commit into
doraemon-hub-art wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题描述
当输入Ctrl + C 或者 Esc 打断对话后,终端打印的提示信息 “Interrupted.”,是通过 buildUserMessage 构造消息,会污染用户输入历史。
用户再通过方向键调整,想修改上一次的输入,就会需要多一次的向上操作。
改动点
改为 buildSystemMessage 构造一条不影响的 system 消息。
版本
0.1.33
效果
前
后