mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-12 12:54:07 -07:00
fix(core): support jsonl session logs in memory and summary services (#25816)
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user