robustness(core): static checks to validate history is immutable (#21228)

This commit is contained in:
Jacob Richman
2026-03-09 11:26:03 -07:00
committed by GitHub
parent e7b20c49ac
commit 4c9f9bb3e2
13 changed files with 34 additions and 31 deletions
+1 -1
View File
@@ -226,7 +226,7 @@ export class GeminiCliSession {
break;
}
const transcript: Content[] = client.getHistory();
const transcript: readonly Content[] = client.getHistory();
const context: SessionContext = {
sessionId,
transcript,
+1 -1
View File
@@ -51,7 +51,7 @@ export interface AgentShell {
export interface SessionContext {
sessionId: string;
transcript: Content[];
transcript: readonly Content[];
cwd: string;
timestamp: string;
fs: AgentFilesystem;