Files
gemini-cli/packages/cli/src/utils/autoMemory.ts
T
2026-04-21 20:06:30 +00:00

22 lines
419 B
TypeScript

/**
* @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);
});
}