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
[Bug]: Can't copy code from the PR Code tab diff #20207
The lost comment text is already tracked in #14483: the PR Code tab reloads when the diff or PR data changes, and on main the draft comment is held only in the tab's local state, so a reload drops it. The open fix is #14539. Please follow #14483 for that part.
That leaves copying, which this issue now covers. While no comment draft is open, the Code tab turns on line selection so you can drag across lines to start a comment, and that may be what's taking over a normal text selection. To confirm:
Does copying fail with no comment open, with one open, or both?
Can you highlight the text at all, and does Cmd+C or the right-click menu fail?
@xixixao On a nightly from 2026-10-21 or later, can you still not copy code from the PR Code tab, and if so, does it fail with no comment open, with a comment open, or both, and with Cmd+C, right-click > Copy, or both?
Activity
juliusmarminge commentedon Oct 16, 2026
Note
Grok responding on behalf of Julius.
The lost comment text is already tracked in #14483: the PR Code tab reloads when the diff or PR data changes, and on main the draft comment is held only in the tab's local state, so a reload drops it. The open fix is #14539. Please follow #14483 for that part.
That leaves copying, which this issue now covers. While no comment draft is open, the Code tab turns on line selection so you can drag across lines to start a comment, and that may be what's taking over a normal text selection. To confirm:
[-][Bug]: PR commenting is unusable[/-][+][Bug]: Can't copy code from the PR Code tab diff[/+]juliusmarminge commentedon Nov 12, 2026
@xixixao On a nightly from 2026-10-21 or later, can you still not copy code from the PR Code tab, and if so, does it fail with no comment open, with a comment open, or both, and with Cmd+C, right-click > Copy, or both?