github / github/copilot-cli

/diff is hiding some lines seemingly at random

Đang mở
#3,139 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
area:terminal-rendering area:tools
Ngôn ngữ chính
Shell
Star
11.2k
Fork
1.9k
Merge trung bình
14 giờ 16 phút
Pull request đã merge (30 ngày)
6

Mô tả

### 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:
```c#
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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Start at the /diff entry point and reproduce the missing-line behavior on macOS in Ghostty while scrolling. Compare the rendered diff with git diff output; done means every diff line remains visible and stable during scrolling.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
shell
Lĩnh vực
cli
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
45/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.