File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
src/services/file-changes Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments