You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Windows: selecting error text says copied but clipboard is empty; Ctrl+C to copy kills jcode #497
Reported by tawa.kul in Discord #general (2026-07-16), Windows terminal.
Two related copy-UX bugs when trying to copy an error message:
Selecting the error text with the mouse shows a "copied" confirmation, but the clipboard is actually empty.
Pressing Ctrl+C to copy the selection is interpreted as interrupt and closes jcode entirely, losing the error.
Net effect: there is no way to copy an error message out of jcode on Windows. Users need error text to file bug reports, so this compounds every other bug.
Note: #487 (merged) touched Windows terminal mouse handling and added a scroll_copy test, but the false "copied" toast and Ctrl+C-during-selection behavior are not specifically addressed.
Both halves addressed in 13babd5 (pending Windows verification):
Ctrl+C killing jcode while copying: Ctrl+C with an active copy-mode selection now copies the selection (universal muscle memory) instead of falling through to the interrupt/quit handler. With no selection, Ctrl+C keeps its interrupt/quit behavior. Covered by 2 new regression tests.
False 'copied' with empty clipboard: on Windows the clipboard order was OSC 52 -> arboard, and OSC 52 'succeeds' by writing to stdout even when the console silently drops the sequence (conhost, older Windows Terminal), so we reported Copied without touching the clipboard. Windows now uses the Win32 clipboard (arboard) first, with OSC 52 only as a remote-session fallback. Unix order is unchanged so SSH/tmux copy keeps working.
Leaving open until verified on a real Windows machine (Azure Students sub has zero compute quota in every region, so this needs either the GitHub Actions windows runner or a physical box).
Windows CI verification: the windows-latest job on master (run 29620004948+) passed with the new regression tests in the targeted list, including test_ctrl_c_with_active_copy_selection_copies_instead_of_quitting and test_ctrl_c_in_copy_mode_without_selection_still_falls_through running natively on Windows. The clipboard-order fix (Win32 API before OSC 52) compiles and links on the msvc target via CI as well.
Closing. If anyone still sees a false 'copied' after the next release, please reopen with the terminal used (conhost vs Windows Terminal).
Activity
fix(tui): make Ctrl+C copy active selections and fix Windows clipboar…
1jehuang commentedon Jul 17, 2026
Both halves addressed in 13babd5 (pending Windows verification):
Ctrl+C killing jcode while copying: Ctrl+C with an active copy-mode selection now copies the selection (universal muscle memory) instead of falling through to the interrupt/quit handler. With no selection, Ctrl+C keeps its interrupt/quit behavior. Covered by 2 new regression tests.
False 'copied' with empty clipboard: on Windows the clipboard order was OSC 52 -> arboard, and OSC 52 'succeeds' by writing to stdout even when the console silently drops the sequence (conhost, older Windows Terminal), so we reported Copied without touching the clipboard. Windows now uses the Win32 clipboard (arboard) first, with OSC 52 only as a remote-session fallback. Unix order is unchanged so SSH/tmux copy keeps working.
Leaving open until verified on a real Windows machine (Azure Students sub has zero compute quota in every region, so this needs either the GitHub Actions windows runner or a physical box).
1jehuang commentedon Jul 17, 2026
Windows CI verification: the
windows-latestjob on master (run 29620004948+) passed with the new regression tests in the targeted list, includingtest_ctrl_c_with_active_copy_selection_copies_instead_of_quittingandtest_ctrl_c_in_copy_mode_without_selection_still_falls_throughrunning natively on Windows. The clipboard-order fix (Win32 API before OSC 52) compiles and links on the msvc target via CI as well.Closing. If anyone still sees a false 'copied' after the next release, please reopen with the terminal used (conhost vs Windows Terminal).
fix(tui): use native macOS clipboard before OSC 52 for copy
fix(tui): use native macOS clipboard before OSC 52 for copy
fix(tui): prefer native Linux clipboards before OSC 52 for copy
fix(tui): make Ctrl+C copy active selections and fix Windows clipboar…
fix(tui): use native macOS clipboard before OSC 52 for copy
fix(tui): prefer native Linux clipboards before OSC 52 for copy
fix(tui): make Ctrl+C copy active selections and fix Windows clipboar…
fix(tui): use native macOS clipboard before OSC 52 for copy
fix(tui): prefer native Linux clipboards before OSC 52 for copy
fix(tui): make Ctrl+C copy active selections and fix Windows clipboar…
fix(tui): use native macOS clipboard before OSC 52 for copy
fix(tui): prefer native Linux clipboards before OSC 52 for copy