mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-25 04:24:51 -07:00
robustness(core): static checks to validate history is immutable (#21228)
This commit is contained in:
@@ -226,7 +226,7 @@ export class GeminiCliSession {
|
||||
break;
|
||||
}
|
||||
|
||||
const transcript: Content[] = client.getHistory();
|
||||
const transcript: readonly Content[] = client.getHistory();
|
||||
const context: SessionContext = {
|
||||
sessionId,
|
||||
transcript,
|
||||
|
||||
@@ -51,7 +51,7 @@ export interface AgentShell {
|
||||
|
||||
export interface SessionContext {
|
||||
sessionId: string;
|
||||
transcript: Content[];
|
||||
transcript: readonly Content[];
|
||||
cwd: string;
|
||||
timestamp: string;
|
||||
fs: AgentFilesystem;
|
||||
|
||||
Reference in New Issue
Block a user