feat(core): Render memory hierarchically in context. (#18350)

This commit is contained in:
joshualitt
2026-02-09 18:01:59 -08:00
committed by GitHub
parent 5d0570b113
commit 89d4556c45
25 changed files with 1189 additions and 530 deletions
+3 -3
View File
@@ -121,7 +121,7 @@ describe('memory commands', () => {
describe('refreshMemory', () => {
it('should refresh memory and show success message', async () => {
mockRefresh.mockResolvedValue({
memoryContent: 'refreshed content',
memoryContent: { project: 'refreshed content' },
fileCount: 2,
filePaths: [],
});
@@ -136,14 +136,14 @@ describe('memory commands', () => {
if (result.type === 'message') {
expect(result.messageType).toBe('info');
expect(result.content).toBe(
'Memory refreshed successfully. Loaded 17 characters from 2 file(s).',
'Memory refreshed successfully. Loaded 33 characters from 2 file(s).',
);
}
});
it('should show a message if no memory content is found after refresh', async () => {
mockRefresh.mockResolvedValue({
memoryContent: '',
memoryContent: { project: '' },
fileCount: 0,
filePaths: [],
});