jcode icon indicating copy to clipboard operation
jcode copied to clipboard

Pasting text with linebreak make jcode send the chat

Open ViruzBlank opened this issue 4 months ago • 1 comments

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.”

ViruzBlank avatar Jul 22 '26 06:07 ViruzBlank

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

1jehuang avatar Jul 22 '26 10:07 1jehuang