github / github/copilot-cli

/diff is hiding some lines seemingly at random

オープン
#3,139 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
area:terminal-rendering area:tools
主要言語
Shell
スター
11.2k
フォーク
1.9k
平均マージ
14時間 16分
マージ済み PR(30日)
6

説明

### 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

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

/diff エントリポイントから開始し、スクロール中に macOS の Ghostty で欠落行の挙動を再現します。レンダリングされた diff と git diff の出力を比較します。スクロール中もすべての diff 行が表示されたまま安定していれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
shell
領域
cli
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。