Skip to content

fix(desktop): show new files' contents in Review and the Changes panel - #4415

Merged
LHagfoss merged 1 commit into
mainfrom
fix/desktop-untracked-file-diff
Nov 25, 2026
Merged

LHagfoss merged 1 commit into
mainfrom
fix/desktop-untracked-file-diff

Conversation

@LHagfoss

Copy link
Copy Markdown
Owner

What

The Review screen and the Changes panel show a new, untracked file's lines instead of "No text diff". git_changes now adds a diff that adds every line for each untracked text file (binary files and files over 1 MB are skipped, and the total stays under the 2 MB cap). The extra diffs are built only when the diff body is requested (summary reads skip them).

Changelog

New files an agent creates now show their contents in Review and the Changes panel, and can be commented on.

Testing

  • Rust unit tests in native.rs: a_new_file_patch_adds_every_line, and a_summary_counts_changes_without_the_diff_body now checks the new file's diff and that the oversized file is left out (CI runs them).
  • cargo fmt --check in the workspace and src-tauri, bun run check, comment and size lints.

Closes #4389

@github-actions github-actions Bot added the fix A bug fix label Nov 25, 2026
@LHagfoss
LHagfoss merged commit 97d25fc into main Nov 25, 2026
12 checks passed
@LHagfoss
LHagfoss deleted the fix/desktop-untracked-file-diff branch November 25, 2026 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix A bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(desktop): show new files' contents in Review and the Changes panel

2 participants