fix(cli): start auto memory in ACP sessions (#25626)

This commit is contained in:
Jason Matthew Suhari
2026-04-22 04:06:30 +08:00
committed by GitHub
parent 189c0ac0a0
commit 194c779f9b
5 changed files with 61 additions and 7 deletions
+21
View File
@@ -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);
});
}