Skip to content

[Bug]: Can't copy code from the PR Code tab diff #20207

Open

Description

@xixixao

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/desktop

Steps to reproduce

  1. Start writing a PR comment
  2. Have it disappear (not sure why, maybe because of some sync?)
  3. Try to copy from the code you're commenting - it doesn't work

Expected behavior

I should never lose in-progress comment I'm writing
I should be able to copy code I'm commenting on

Actual behavior

I lost text
I could not copy

Impact

Major degradation or frequent failure

Version or commit

0.0.46-nightly.20261012.3010 (d83929a)

Environment

macOS

Logs or stack traces

Screenshots, recordings, or supporting files

No response

Workaround

No response

Activity

  1. added
    bugSomething is broken or behaving incorrectly.
    needs-triageIssue needs maintainer review and initial categorization.
    on Oct 16, 2026
  2. juliusmarminge commented on Oct 16, 2026

    @juliusmarminge
    Member

    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:

    1. Does copying fail with no comment open, with one open, or both?
    2. Can you highlight the text at all, and does Cmd+C or the right-click menu fail?
    3. Does it still happen on the latest nightly?
  3. added
    needs more infoInitial triage showed no bug. Awaiting more info
    via-triageFiled through npx t3 triage
    and removed
    needs-triageIssue needs maintainer review and initial categorization.
    bugSomething is broken or behaving incorrectly.
    on Oct 16, 2026
  4. changed the title [-][Bug]: PR commenting is unusable[/-] [+][Bug]: Can't copy code from the PR Code tab diff[/+] on Oct 16, 2026
  5. juliusmarminge commented on Nov 12, 2026

    @juliusmarminge
    Member

    @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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    via-triageFiled through npx t3 triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions