t3code icon indicating copy to clipboard operation
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

Open Entrpi opened this issue 4 weeks ago • 0 comments

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

  1. 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.
  2. Let the turn finish so its checkpoint is captured.
  3. 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.

Entrpi avatar Nov 03 '26 06:11 Entrpi