[GH-ISSUE #380] AI edits in files with spaces in name are marked as human #140

Closed
opened 2026-03-02 04:12:11 +03:00 by kerem · 0 comments
Owner

Originally created by @svarlamov on GitHub (Jan 20, 2026).
Original GitHub issue: https://github.com/git-ai-project/git-ai/issues/380

Originally assigned to: @svarlamov on GitHub.

Needs investigation as to root cause, but AI edits in a file that has a space in the name (at least on Mac OS) are always shown as human:

❯ Update @"human one.txt" with another line saying "ai 1"
  ⎿  Read human one.txt (2 lines)

⏺ Update(human one.txt)
  ⎿  Added 1 line
      1  human line 1
      2 +ai 1

⏺ Done. Added "ai 1" as a new line in the file.
➜  testing-git-10 git:(master) ✗
➜  testing-git-10 git:(master) ✗ git add .
➜  testing-git-10 git:(master) ✗ git status
On branch master
Your branch is ahead of 'origin/master' by 1 commit.
  (use "git push" to publish your local commits)

Changes to be committed:
  (use "git restore --staged <file>..." to unstage)
	new file:   human one.txt

➜  testing-git-10 git:(master) ✗ git commit -m'test'
[git-ai] [BENCHMARK] Starting checkpoint run
[git-ai] [BENCHMARK] Storage initialization took 56.667µs
[git-ai] [BENCHMARK] Pathspec filtering took 375ns
[git-ai] [BENCHMARK]   Reading INITIAL attributions in get_all_tracked_files took 2.666µs
[git-ai] [BENCHMARK]   Reading checkpoints in get_all_tracked_files took 180.416µs
[git-ai] [BENCHMARK]   git status call took 13.120416ms
[git-ai] [BENCHMARK]   get_status_of_files in get_all_tracked_files took 13.174791ms
[git-ai] [BENCHMARK] get_all_tracked_files found 1 files, took 13.480125ms
[git-ai] [BENCHMARK] Reading 2 checkpoints took 189.708µs
[git-ai] [BENCHMARK] save_current_file_states for 1 files took 272.25µs
[git-ai] [BENCHMARK] Hash computation took 16.208µs
[git-ai] [BENCHMARK] Reading initial attributions took 3.083µs
[git-ai] [BENCHMARK] Spawning 1 tasks took 63.5µs
[git-ai] [BENCHMARK] Awaiting 1 tasks took 168.166µs
[git-ai] [BENCHMARK] Processing 1 results took 1.417µs
[git-ai] [BENCHMARK] get_checkpoint_entries function total took 21.392458ms
[git-ai] [BENCHMARK] get_checkpoint_entries generated 0 entries, took 21.413708ms
[git-ai] [BENCHMARK] Total checkpoint run took 46.738792ms
[master 783e292] test
 1 file changed, 2 insertions(+)
 create mode 100644 human one.txt
[git-ai] Debug mode: moved checkpoint directory from e59c7acfd3f30ae50f13c251871721f5c616ebfc to old-e59c7acfd3f30ae50f13c251871721f5c616ebfc
you  ████████████████████████████████████████ ai
     100%                                   0%
➜  testing-git-10 git:(master)
Originally created by @svarlamov on GitHub (Jan 20, 2026). Original GitHub issue: https://github.com/git-ai-project/git-ai/issues/380 Originally assigned to: @svarlamov on GitHub. Needs investigation as to root cause, but AI edits in a file that has a space in the name (at least on Mac OS) are always shown as human: ``` ❯ Update @"human one.txt" with another line saying "ai 1" ⎿  Read human one.txt (2 lines) ⏺ Update(human one.txt) ⎿  Added 1 line 1 human line 1 2 +ai 1 ⏺ Done. Added "ai 1" as a new line in the file. ➜ testing-git-10 git:(master) ✗ ➜ testing-git-10 git:(master) ✗ git add . ➜ testing-git-10 git:(master) ✗ git status On branch master Your branch is ahead of 'origin/master' by 1 commit. (use "git push" to publish your local commits) Changes to be committed: (use "git restore --staged <file>..." to unstage) new file: human one.txt ➜ testing-git-10 git:(master) ✗ git commit -m'test' [git-ai] [BENCHMARK] Starting checkpoint run [git-ai] [BENCHMARK] Storage initialization took 56.667µs [git-ai] [BENCHMARK] Pathspec filtering took 375ns [git-ai] [BENCHMARK] Reading INITIAL attributions in get_all_tracked_files took 2.666µs [git-ai] [BENCHMARK] Reading checkpoints in get_all_tracked_files took 180.416µs [git-ai] [BENCHMARK] git status call took 13.120416ms [git-ai] [BENCHMARK] get_status_of_files in get_all_tracked_files took 13.174791ms [git-ai] [BENCHMARK] get_all_tracked_files found 1 files, took 13.480125ms [git-ai] [BENCHMARK] Reading 2 checkpoints took 189.708µs [git-ai] [BENCHMARK] save_current_file_states for 1 files took 272.25µs [git-ai] [BENCHMARK] Hash computation took 16.208µs [git-ai] [BENCHMARK] Reading initial attributions took 3.083µs [git-ai] [BENCHMARK] Spawning 1 tasks took 63.5µs [git-ai] [BENCHMARK] Awaiting 1 tasks took 168.166µs [git-ai] [BENCHMARK] Processing 1 results took 1.417µs [git-ai] [BENCHMARK] get_checkpoint_entries function total took 21.392458ms [git-ai] [BENCHMARK] get_checkpoint_entries generated 0 entries, took 21.413708ms [git-ai] [BENCHMARK] Total checkpoint run took 46.738792ms [master 783e292] test 1 file changed, 2 insertions(+) create mode 100644 human one.txt [git-ai] Debug mode: moved checkpoint directory from e59c7acfd3f30ae50f13c251871721f5c616ebfc to old-e59c7acfd3f30ae50f13c251871721f5c616ebfc you ████████████████████████████████████████ ai 100% 0% ➜ testing-git-10 git:(master) ```
kerem 2026-03-02 04:12:11 +03:00
  • closed this issue
  • added the
    bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/git-ai#140
No description provided.