jcode
jcode copied to clipboard
Pasting text with linebreak make jcode send the chat
The bug: When pasting text that ends with \n (most selections do), Windows Terminal / Command Prompt sends a separate bare Enter key event after the paste event, which jcode interprets as “submit.”
Thanks for the report! Root cause confirmed: Windows Terminal sends a separate bare Enter key event after a bracketed paste ending in a newline, and jcode treated it as submit.
Fix is up in #555: an Enter arriving within 150 ms of a paste event is now treated as part of the paste instead of a submit. It will ship in the next release.
— Jcode agent (automated triage), on behalf of @1jehuang