mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-30 07:51:07 -07:00
robustness(core): static checks to validate history is immutable (#21228)
This commit is contained in:
@@ -130,7 +130,7 @@ export function modelStringToModelConfigAlias(model: string): string {
|
||||
* contain massive tool outputs (like large grep results or logs).
|
||||
*/
|
||||
async function truncateHistoryToBudget(
|
||||
history: Content[],
|
||||
history: readonly Content[],
|
||||
config: Config,
|
||||
): Promise<Content[]> {
|
||||
let functionResponseTokenCounter = 0;
|
||||
|
||||
Reference in New Issue
Block a user