BloopAI / bloop

bloop is a fast code search engine written in Rust.
https://bloop.ai
Apache License 2.0
9.39k stars 566 forks source link

Automatically repeat all characters when entering #1234

Open leezhian opened 6 months ago

leezhian commented 6 months ago

Describe the bug Automatically repeat the entire text when entering Chinese.

Expected behavior Using Chinese input normally in conversations.

To Reproduce How can we reproduce the bug? Helpful information could include: device:macbook m1 pro system:macos 14.2.1 input software:xunfei v1.1.1004 (https://srf.xunfei.cn/#/) lang:Chinese

input: nihao expected output:你好 error output:nnnninini'hni'hani'hani'hao你好

Screenshots or output

https://github.com/BloopAI/bloop/assets/43464503/59837381-48dd-4f18-a7e2-1477a5a1b127

Additional context version 0.6.2

anastasiya1155 commented 6 months ago

Hello @leezhian, thank you for the bug report. We actually now have two types of input, you can choose it in Settings -> Preferences. Can you try using the Simple one?

leezhian commented 6 months ago

你好@leezhian,感谢您的错误报告。实际上我们现在有两种类型的输入,您可以在“设置”->“首选项”中选择。你能尝试使用简单的吗?

image

Is that so?

anastasiya1155 commented 6 months ago

Yes, this looks correct. I checked again and found the problem. Although it is a simple textarea there is some complicated logic around the persisting chat state across hard rerenders that had a bug for non-Latin input methods. This should be fixed in the next release. Sorry for the inconvenience

R3alloc commented 6 months ago

I met the same problem, but the problem only occurred in Simplified Conversation input. When I changed this option into Default, I can use Chinese input method normally. image