From 3be23d646bc5a4b936366c888158d4fe64d707a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Rossell=C3=B3=20Colom?= <74001504+PatrickSys@users.noreply.github.com> Date: Sat, 25 Jul 2026 20:03:26 +0200 Subject: [PATCH 1/2] test: keep scoped memory fixtures fresh --- tests/search-health-scope.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/search-health-scope.test.ts b/tests/search-health-scope.test.ts index 2b5e932..0e175bf 100644 --- a/tests/search-health-scope.test.ts +++ b/tests/search-health-scope.test.ts @@ -28,6 +28,7 @@ describe('search_codebase health and scoped memories', () => { beforeEach(async () => { searchMocks.search.mockReset(); tempRoot = await fs.mkdtemp(path.join(os.tmpdir(), 'search-health-scope-')); + const currentDate = new Date().toISOString(); const contextDir = path.join(tempRoot, '.codebase-context'); await fs.mkdir(contextDir, { recursive: true }); @@ -56,7 +57,7 @@ describe('search_codebase health and scoped memories', () => { category: 'architecture', memory: 'Avoid direct token reads', reason: 'They bypass AuthService refresh logic.', - date: '2026-04-17T00:00:00.000Z', + date: currentDate, scope: { kind: 'symbol', file: 'src/auth/auth.service.ts', @@ -69,7 +70,7 @@ describe('search_codebase health and scoped memories', () => { category: 'architecture', memory: 'Use auth interceptors', reason: 'They keep HTTP token injection consistent.', - date: '2026-04-17T00:00:00.000Z' + date: currentDate } ], null, From 7ad2fb6203c24f9293f7964cf89deed4e3c09541 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Rossell=C3=B3=20Colom?= <74001504+PatrickSys@users.noreply.github.com> Date: Sat, 25 Jul 2026 20:03:30 +0200 Subject: [PATCH 2/2] test: keep scoped memory fixtures fresh --- tests/search-scoped-memory.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/search-scoped-memory.test.ts b/tests/search-scoped-memory.test.ts index 37e4b62..0f6df64 100644 --- a/tests/search-scoped-memory.test.ts +++ b/tests/search-scoped-memory.test.ts @@ -28,6 +28,7 @@ describe('search_codebase scoped memories', () => { beforeEach(async () => { searchMocks.search.mockReset(); tempRoot = await fs.mkdtemp(path.join(os.tmpdir(), 'search-scoped-memory-')); + const currentDate = new Date().toISOString(); const contextDir = path.join(tempRoot, '.codebase-context'); await fs.mkdir(contextDir, { recursive: true }); @@ -55,7 +56,7 @@ describe('search_codebase scoped memories', () => { category: 'architecture', memory: 'Avoid direct token reads', reason: 'They bypass AuthService refresh logic.', - date: '2026-04-17T00:00:00.000Z', + date: currentDate, scope: { kind: 'symbol', file: 'src/auth/auth.service.ts', @@ -68,7 +69,7 @@ describe('search_codebase scoped memories', () => { category: 'architecture', memory: 'Use auth interceptors', reason: 'They keep HTTP token injection consistent.', - date: '2026-04-17T00:00:00.000Z' + date: currentDate } ], null,