fix(core): support jsonl session logs in memory and summary services (#25816)

This commit is contained in:
Sandy Tao
2026-04-22 16:07:39 -07:00
committed by GitHub
parent 9c0a6864da
commit 5318610c1d
13 changed files with 1396 additions and 256 deletions
+15 -1
View File
@@ -3501,7 +3501,7 @@ describe('Config JIT Initialization', () => {
});
describe('isMemoryV2Enabled', () => {
it('should default to false', () => {
it('should default to true', () => {
const params: ConfigParameters = {
sessionId: 'test-session',
targetDir: '/tmp/test',
@@ -3510,6 +3510,20 @@ describe('Config JIT Initialization', () => {
cwd: '/tmp/test',
};
config = new Config(params);
expect(config.isMemoryV2Enabled()).toBe(true);
});
it('should return false when experimentalMemoryV2 is explicitly false', () => {
const params: ConfigParameters = {
sessionId: 'test-session',
targetDir: '/tmp/test',
debugMode: false,
model: 'test-model',
cwd: '/tmp/test',
experimentalMemoryV2: false,
};
config = new Config(params);
expect(config.isMemoryV2Enabled()).toBe(false);
});