Skip to content

fix(agent): list both paths of a renamed file in changed_files - #299

Merged
adityankale190895 merged 1 commit into
DiffCI:mainfrom
FredApps:fix/agent-changed-files-renames
Nov 18, 2026
Merged

adityankale190895 merged 1 commit into
DiffCI:mainfrom
FredApps:fix/agent-changed-files-renames

Conversation

@FredApps

Copy link
Copy Markdown
Contributor

Fixes #298

changedPaths in agent-selection.ts passes --no-renames, as gate-checks.ts and working-tree.ts already do. A rename is then reported as both its old path and its new one.

Validation:

diffci_changed_files and the agent selection plan listed changed files
with git diff --name-only, which detects renames by default, so a
`git mv src/old.ts src/new.ts` was reported as src/new.ts alone. The
old path is gone, and whatever imports it is affected. The listing now
passes --no-renames, as the snapshot and gate-check code already do,
so a rename is its deletion plus its addition.

Signed-off-by: FredApps <[email protected]>
@FredApps
FredApps marked this pull request as ready for review November 18, 2026 00:55
@adityankale190895
adityankale190895 merged commit c26915b into DiffCI:main Nov 18, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Agent tools: changed_files lists only the new path of a renamed file

2 participants