mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-03 08:24:10 -07:00
fix(cli): start auto memory in ACP sessions (#25626)
This commit is contained in:
committed by
GitHub
parent
189c0ac0a0
commit
194c779f9b
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2026 Google LLC
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import {
|
||||
debugLogger,
|
||||
startMemoryService,
|
||||
type Config,
|
||||
} from '@google/gemini-cli-core';
|
||||
|
||||
export function startAutoMemoryIfEnabled(config: Config): void {
|
||||
if (!config.isAutoMemoryEnabled()) {
|
||||
return;
|
||||
}
|
||||
|
||||
startMemoryService(config).catch((e) => {
|
||||
debugLogger.error('Failed to start memory service:', e);
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user