diff --git a/src/App.tsx b/src/App.tsx
index 0cd9ff68..fd2dacd6 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -202,7 +202,7 @@ function App() {
-
+
diff --git a/src/components/NoteList.test.tsx b/src/components/NoteList.test.tsx
index e137d511..9e86aea6 100644
--- a/src/components/NoteList.test.tsx
+++ b/src/components/NoteList.test.tsx
@@ -950,5 +950,17 @@ describe('NoteList — virtual list with large datasets', () => {
expect(screen.getByText('Build Laputa App')).toBeInTheDocument()
expect(screen.queryByText('Facebook Ads Strategy')).not.toBeInTheDocument()
})
+
+ it('shows modified notes when both getNoteStatus and modifiedFiles are provided', () => {
+ // Regression: App.tsx passes both getNoteStatus and modifiedFiles.
+ // The changes filter must use modifiedFiles for filtering even when getNoteStatus is present.
+ const getNoteStatus = (path: string) => modifiedFiles.some((f) => f.path === path) ? 'modified' as const : 'clean' as const
+ render(
+
+ )
+ expect(screen.getByText('Build Laputa App')).toBeInTheDocument()
+ expect(screen.getByText('Facebook Ads Strategy')).toBeInTheDocument()
+ expect(screen.queryByText('Matteo Cellini')).not.toBeInTheDocument()
+ })
})
})