Skip to content

/diff is hiding some lines seemingly at random #3139

Description

@simonrozsival

Describe the bug

I noticed sometimes the diff is not showing all lines:

Image

The line 193 is not showing! The line "appears" (it's still looks like it's under the "original" line) when I move my cursor to the missing line:

Image

Git diff shows this code section just fine, I also can't see any weird characters in hexedit:

                internal static JniRuntime.JniValueManager CreateValueManager ()
                {
                        if (RuntimeFeature.IsMonoRuntime) {
                                return new AndroidValueManager ();
                        }

                        if (RuntimeFeature.IsCoreClrRuntime || RuntimeFeature.IsNativeAotRuntime) {
                                return new JavaMarshalValueManager ();
                        }

                        throw new NotSupportedException ("Internal error: unknown runtime not supported");
                }

I noticed that different lines disappear as I scroll. As I scroll, the line 193 appears, but now line 196 is hidden:

Image

Affected version

GitHub Copilot CLI 1.0.42-0.

Steps to reproduce the behavior

The bug appears seemingly at random, I don't know how to reliably reproduce it.

Expected behavior

All lines are shown in the diff.

Additional context

  • macOS
  • ghostty

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:terminal-renderingDisplay and rendering: flickering, scrolling, line wrapping, output formattingarea:toolsBuilt-in tools: file editing, shell, search, LSP, git, and tool call behavior

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions