You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is caused by the same root cause identified in #19607: GeminiChat.getHistory() was calling structuredClone(history) on every model call, creating O(n) deep-copy allocations per turn that compound into several GB of RSS when running multiple long-context agents concurrently.
That root cause has been fixed in #19608 (perf(core): fix OOM crash in long-running sessions), which replaces structuredClone with a shallow array spread ([...history]). The fix is already merged into main.
This issue can be closed as a duplicate / already fixed.
👋 Hi, I'm neeraj-kumarr — this is my new GitHub account. neeraj-par is my previous account. I will be continuing all contributions and follow-up work from neeraj-kumarr going forward. neeraj-par approves this transition.
👋 Signing off from neeraj-par — this account is no longer active. I've moved to neeraj-kumarr. All future contributions and follow-up work will come from there. Thanks for the collaboration!
Hello! As part of our effort to keep our backlog manageable and focus on the most active issues, we are tidying up older reports.
It looks like this issue hasn't been active for a while, so we are closing it for now. However, if you are still experiencing this bug on the latest stable build, please feel free to comment on this issue or create a new one with updated details.
Activity
neeraj-par commentedon Mar 5, 2026
This issue is caused by the same root cause identified in #19607:
GeminiChat.getHistory()was callingstructuredClone(history)on every model call, creating O(n) deep-copy allocations per turn that compound into several GB of RSS when running multiple long-context agents concurrently.That root cause has been fixed in #19608 (
perf(core): fix OOM crash in long-running sessions), which replacesstructuredClonewith a shallow array spread ([...history]). The fix is already merged intomain.This issue can be closed as a duplicate / already fixed.
neeraj-kumarr commentedon Mar 5, 2026
👋 Hi, I'm neeraj-kumarr — this is my new GitHub account. neeraj-par is my previous account. I will be continuing all contributions and follow-up work from neeraj-kumarr going forward. neeraj-par approves this transition.
neeraj-par commentedon Mar 5, 2026
👋 Signing off from neeraj-par — this account is no longer active. I've moved to neeraj-kumarr. All future contributions and follow-up work will come from there. Thanks for the collaboration!
gemini-cli commentedon Mar 15, 2026
Hello! As part of our effort to keep our backlog manageable and focus on the most active issues, we are tidying up older reports.
It looks like this issue hasn't been active for a while, so we are closing it for now. However, if you are still experiencing this bug on the latest stable build, please feel free to comment on this issue or create a new one with updated details.
Thank you for your contribution!