mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-24 03:54:43 -07:00
fix(devtools): reduce memory usage and defer connection (#24496)
This commit is contained in:
@@ -124,7 +124,7 @@ export class DevTools extends EventEmitter {
|
||||
chunks: payload.chunk ? [payload.chunk] : undefined,
|
||||
} as NetworkLog;
|
||||
this.logs.push(entry);
|
||||
if (this.logs.length > 2000) this.logs.shift();
|
||||
if (this.logs.length > 10) this.logs.shift();
|
||||
this.emit('update', entry);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user