fix(cli): correct initial history length handling for chat commands (#15223)

This commit is contained in:
Sandy Tao
2025-12-17 14:04:02 -10:00
committed by GitHub
parent 5d13145995
commit 739c02bd6d
4 changed files with 16 additions and 20 deletions
+1
View File
@@ -73,6 +73,7 @@ export * from './utils/generateContentResponseUtilities.js';
export * from './utils/filesearch/fileSearch.js';
export * from './utils/errorParsing.js';
export * from './utils/workspaceContext.js';
export * from './utils/environmentContext.js';
export * from './utils/ignorePatterns.js';
export * from './utils/partUtils.js';
export * from './utils/promptIdContext.js';
@@ -8,6 +8,8 @@ import type { Part, Content } from '@google/genai';
import type { Config } from '../config/config.js';
import { getFolderStructure } from './getFolderStructure.js';
export const INITIAL_HISTORY_LENGTH = 1;
/**
* Generates a string describing the current workspace directories and their structures.
* @param {Config} config - The runtime configuration and services.