t3code
t3code copied to clipboard
[Bug]: Changed Files calls every file an edit: created and deleted files show +N −0 / +0 −N, binary files +0 −0
Before submitting
- [x] I searched existing issues and did not find a duplicate.
- [x] I included enough detail to reproduce or investigate the problem.
Area
apps/server
Steps to reproduce
- In a git project, have an agent turn create a 3-line file, delete a 3-line file, rename a file, and rewrite a binary file. One shell command is enough.
- Let the turn finish so its checkpoint is captured.
- Open the turn's Changed Files card.
Expected behavior
A created file shows only its additions, a deleted file only its deletions, and a binary file no line counts. The checkpoint records whether each file was added, deleted, renamed or modified.
Actual behavior
Every file is recorded as kind: "modified", because CheckpointService hardcodes it (CheckpointService.ts#L465). The created file shows +3 −0, the deleted file +0 −3, and the binary file +0 −0, because git's - line counts for binary files are stored as 0. Nothing downstream can tell a new file from an edit, so no client can say "created" or "deleted".
Impact
Minor bug or occasional failure
Version or commit
main @ 61c3794c32
Environment
macOS 26.5, web dev client; the iOS app shows the same data.
Workaround
Open the full diff.