Skip to content

Commit 0de25d7

Browse files
committed
Don't include newly created files as context
1 parent 84bc373 commit 0de25d7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

evals/git-evals2/agent-runner.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,9 @@ export async function runAgentOnCommit({
108108

109109
const contextFilePaths = new Set<string>([
110110
...commit.supplementalFiles,
111-
...commit.fileDiffs.map((fd) => fd.path),
111+
...commit.fileDiffs
112+
.filter((fd) => fd.status !== 'added')
113+
.map((fd) => fd.path),
112114
])
113115

114116
for (const filePath of contextFilePaths) {

0 commit comments

Comments
 (0)