Skip to content

Commit 3c3d39c

Browse files
committed
removed unused test
1 parent aaa4fed commit 3c3d39c

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/services/file-changes/FileChangeManager.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,20 @@ export class FileChangeManager {
5252
.map((entry) => entry.path),
5353
)
5454

55-
// Filter changeset to only include LLM-modified files that haven't been accepted
55+
// Filter changeset to only include LLM-modified files that haven't been accepted/rejected
5656
const filteredFiles = this.changeset.files.filter((file) => {
5757
if (!llmModifiedFiles.has(file.uri)) {
5858
return false
5959
}
6060
const baseline = this.acceptedBaselines.get(file.uri)
61-
// File is "not accepted" if baseline equals fromCheckpoint (initial baseline)
62-
// File is "accepted" if baseline equals toCheckpoint (updated baseline)
63-
return baseline === file.fromCheckpoint
61+
62+
// If no baseline is set, file should appear (this shouldn't normally happen due to setFiles logic)
63+
if (!baseline) {
64+
return true
65+
}
66+
67+
// File should appear if it has changes from its baseline
68+
return file.toCheckpoint !== baseline
6469
})
6570

6671
return {

0 commit comments

Comments
 (0)