Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Feature request for file changes event

Open
#902 2 comments 47 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
csharp, java
Domain
api

Research direction

Start by reviewing the SDK's existing session-event model against the proposed AssistantFileChangesEvent and AssistantFileChangeData shape. The feature is done when file-change events expose each change's diff, kind, path, and move_path fields so clients can display modified files during an iteration.

Written by the indexing model from the issue text.

Description

This is a feature request.

Currently it seems that we don't receive any events for changed files with their diff, which makes it difficult with the SDK to report nicely what GitHub Copilot has changed during a prompt iteration.

An example of such API in C# could be:

public partial class AssistantFileChangesEvent : SessionEvent
{
    [JsonIgnore]
    public override string Type => "assistant.file_changes";

    [JsonPropertyName("changes")]
    public required List<AssistantFileChangeData> Changes { get; set; }
}

public partial class AssistantFileChangeData
{
    [JsonPropertyName("diff")]
    public string Diff { get; set; } = string.Empty;
    [JsonPropertyName("kind")]
    public AssistantFileChangeKind Kind { get; set; } = default!;
    [JsonPropertyName("path")]
    public string Path { get; set; } = string.Empty;
    [JsonPropertyName("move_path")]
    public string MovePath { get; set; } = string.Empty; // When kind == "update"
}

[JsonConverter(typeof(JsonStringEnumConverter<AssistantFileChangeKind>))]
public enum AssistantFileChangeKind
{
    [JsonStringEnumMemberName("add")]
    Add,
    [JsonStringEnumMemberName("delete")]
    Delete,
    [JsonStringEnumMemberName("update")]
    Update,  // Use "move_path"  
}

It would allow to display more nicely during a user/assistant iteration the files that were modified.

Dominant language
Java
Stars
10.5k
Forks
1.5k
Avg merge
1d 9h
Merged PRs (30d)
131

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from github/copilot-sdk

All issues in github/copilot-sdk

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.