mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-23 19:44:30 -07:00
robustness(core): static checks to validate history is immutable (#21228)
This commit is contained in:
@@ -664,7 +664,7 @@ export class ChatRecordingService {
|
||||
* Updates the conversation history based on the provided API Content array.
|
||||
* This is used to persist changes made to the history (like masking) back to disk.
|
||||
*/
|
||||
updateMessagesFromHistory(history: Content[]): void {
|
||||
updateMessagesFromHistory(history: readonly Content[]): void {
|
||||
if (!this.conversationFile) return;
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user