Skip to content

/diff display broken for new files #1544

@FedeArre

Description

@FedeArre

Describe the bug

When trying to visualize the diff of a new file, the visualization is fully broken, displaying only 1 line (censored on red, is just a random line from the file).

Image

Affected version

GitHub Copilot CLI 0.0.411.

Steps to reproduce the behavior

  1. Have the agent create a new file
  2. Use /diff

Expected behavior

The diff should work fine, showing the whole file green (Because is new)

Additional context

Windows 11 (x64), Powershell.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions