mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-07-12 11:00:51 -07:00
fix(context): fix accidental mutation in snapshotGenerator
This commit is contained in:
@@ -10,6 +10,9 @@ import { LlmRole } from '../../telemetry/llmRole.js';
|
||||
import { formatNodesForLlm } from './formatNodesForLlm.js';
|
||||
import { randomUUID } from 'node:crypto';
|
||||
import { isRecord } from '../../utils/markdownUtils.js';
|
||||
import type { LiveInbox } from '../pipeline/inbox.js';
|
||||
import type { ContextEngineState } from '../../services/chatRecordingTypes.js';
|
||||
import { debugLogger } from '../../utils/debugLogger.js';
|
||||
|
||||
function isStringArray(value: unknown): value is string[] {
|
||||
return (
|
||||
@@ -80,10 +83,6 @@ export function findLatestSnapshotBaseline(
|
||||
return undefined;
|
||||
}
|
||||
|
||||
import type { LiveInbox } from '../pipeline/inbox.js';
|
||||
import type { ContextEngineState } from '../../services/chatRecordingTypes.js';
|
||||
import { debugLogger } from '../../utils/debugLogger.js';
|
||||
|
||||
export const SnapshotStateHelper = {
|
||||
exportState(nodes: readonly ConcreteNode[]): ContextEngineState {
|
||||
const baseline = findLatestSnapshotBaseline(nodes);
|
||||
|
||||
Reference in New Issue
Block a user