Summary
A long AI chat gets slow when the app downloads every old step in full, redraws the whole message list on every streamed frame, and keeps every chat it has opened in memory.
In ZeroTwo 2.0 we cut each one and measured it: step data for the newest 1,000 rows fell from 3.30 MB to 1.36 MB, and list redraws during a stream from 45.7 to 1.2 a second.
One problem survived three rejected patches before we found its cause, a side panel narrowing the chat, and the lesson is to record what moves frame by frame before touching scroll code.
A Work session in ZeroTwo leaves a step for every action it takes: each file it reads, each web search, each edit to a document. Long agent chats pile those steps up, and one chat we test with holds 16,000 of them. ZeroTwo 2.0 shipped on November 22 with a round of speed work aimed at chats like that one.1
The short answer to why a long AI chat gets slow is that the app treats every old step as if it were new. It downloads finished tool results in full, renders the message list again on every streamed frame, and keeps every chat you opened in memory. On the 16,000-step chat, the newest 1,000 rows used to carry 3.3 MB of step data when the chat opened. They now carry 1.4 MB.2
This post walks through each change, the number behind it, and how we measured it, so another team can copy the method. The times and memory figures here come from development builds in headless Chrome, not from a production study. The last section says what we have not measured yet.
The chart below puts the six measured results side by side. Each bar is a figure after its change as a share of the same figure before, so a shorter bar is a bigger cut.
- Download
- Redraw
- Memory
Of the six, redraws fell furthest, to 2.6% of where they started. Returning to a chat moved least, to 79.4%, and its section below tells how our first measurement of it went wrong.
Send previews of finished steps, not full results
A closed step needs only enough data to draw its row. Before 2.0, opening a long chat still downloaded the full result of many built-in tools: the page a tool read, the files it listed, and the tools it searched for.
In 2.0, finished steps from 16 built-in tools arrive as short previews, up from 6, and load in full only when you open the step. On the newest 1,000 rows of the 16,000-step chat, step data fell from 3.30 MB to 1.36 MB.2
The method matters more than the list. Before a tool joined the list, a test drew each closed row twice, once from the whole step and once from the preview. It then compared what every part of the app that reads the chat received from each. A control tool that should fail the check did fail it, so we know the test can catch a mistake. Results from your own apps and connectors are not shortened, because only tools we audited join the list.3
Stop downloading what nobody reads at sign-in
Signing in used to download data that nothing on screen used. ZeroTwo fetched the tool list of every connected app, and each tool carried its full input and output schema. On an account with many connectors that came to about 14 MB, and no part of the app that reads those stored entries uses a schema.4
Sign-in now asks for the same list without the schemas, about 2 MB on the same kind of account. A database that cannot answer the slim read falls back to the full read, once per session. Any other failure stays a failed read.
The same habit applied to reading a whole chat. After every finished run, the app used to read a long chat by numbering and sorting the entire thread for each page of 1,000 rows. That made a chain of ever-growing database statements, each of which could hit an 8 second cap. It now reads pages from the newest row backwards with a cursor.5
Redraw only the reply that is being written
Streaming repeats its work on every frame, so a long chat pays for that work many times a second. Before 2.0, the message list rendered again on every streamed frame of a reply, however many finished rows sat above it.
Now the list renders only when a message is added, removed, or finishes. The reply being written reads its rows from the streaming store itself, so finished rows never see a frame. In its own test, the list went from 59 renders over 59 streamed frames to none, and in our streaming benchmark from 45.7 renders a second to 1.2.6
Inside the reply, we stopped reprocessing text that was already done. Once a blank line closes a plain paragraph and the next block has started, that paragraph is sealed and left alone. On 12,000 characters of prose without headings, each streamed update went from 8.5 ms to 1.4 ms on average. The slowest 5% of updates went from 14.5 ms to 2.3 ms.6
A set of 126 test cases checks that the sealed version renders exactly what one full pass would. Sealing stays off for text that a later line can change, such as a footnote.
Keep 10 chats in memory, and let the rest go
Before 2.0, every chat you opened stayed in memory for the rest of the session. Moving between many chats kept adding to what the app held, and nothing gave it back.
ZeroTwo now keeps the 10 chats you used most recently and releases the others 10 minutes after you leave them. It never releases a chat that is on screen, still working, or holding an edit you have not sent. Reopening a released chat loads it again, the same way a first open does. In a test that opened 12 chats in turn, the app's memory read as shown below.7
- 177 MB
- heap after opening 12 chats, before the change
- 142 MB
- heap after the same 12 chats, with the change
- 103 MB
- heap 11 minutes later, after chats were released
The first version freed nothing. A long-lived listener still held the old cache, so released chats never left memory. The fix was to stop that listener holding the cache directly. The lesson is to measure memory after a release instead of assuming a dropped reference is gone.
Keep the last five chats drawn, and find the real bug first
Going back to a chat you just left should not rebuild it. Since 2.0.2, the five chats you opened most recently stay drawn but hidden for up to 10 minutes, so a return reuses their rows and scroll position. A hidden chat keeps receiving a reply that is still streaming. In exchange, each kept chat holds its rows in memory while it is kept.8
On the short chats we measured first, a return went from 165 ms to 131 ms, the median of 12 tries. On our longest test chat, with 18,432 rows, the first measurement went the other way, with a return taking about 410 ms when kept against 220 ms when rebuilt.9
We tried three patches to how the chat grows its window of drawn rows and restores its position. We rejected all three, because each left the reader further from the bottom in at least one run. The real cause was a width change. A side panel sliding open narrowed the chat, the rows wrapped onto more lines, and the chat followed a reader at the bottom only while a reply streamed. So the chat drifted up and was remembered as if you had left it mid-read.
A frame-by-frame record of the chat opening showed the cause. For about 400 ms after the chat was placed at the bottom, its rows grew one line at a time while their text stayed the same. The fix keeps a reader at the bottom pinned there when the chat's width changes, and a check that replays the open and narrows the column fails without it.10
The early slow result also compared unlike states. The kept chat had its full window of 80 messages drawn, and the rebuilt one only its newest 17. Measured like for like after the fix, a return to a kept chat was faster than a rebuilt one on each chat in the table below, by about a quarter on the longest.
| Rebuilt | Kept drawn | |
|---|---|---|
| Short chats, median of 12 | 165 | 131 |
| 119-row chat | 196–263 | 142–167 |
| 232-row chat | 146–193 | 110–149 |
| 367-row chat | 188–210 | 150–213, median 164 |
| 18,432-row chat | 475–576 | 360–417 |
In milliseconds, the longest chat gained the most of any chat in the table. On the 367-row chat the two ranges overlap, so only the median shows a gain there.
What remains unproved
These changes shipped, and the numbers above are measured, but they are not yet a production study.
Release builds. The times and memory figures come from development builds, which run slower than the app you download. The byte counts do not depend on the build, but we have not repeated the times on a release build.
The desktop app. We measured memory release and kept chats in Chrome, not inside ZeroTwo's desktop app.
Frame time on real machines. We have not recorded scroll and stream frame times across a range of real hardware.
Long chats end to end. The 16,000-step and 18,432-row figures cover opening and returning, not a full session of scrolling, streaming, and editing in one of those chats.
When we have those numbers, we will add them here as an update, including any that come out worse.
Availability
Every plan: every change in this post is on by default on every plan from Free to Enterprise, with nothing to turn on. The changes live in the app itself, so they behave the same on each plan.11
Web and desktop app: the 2.0 changes arrived in 2.0.0 and kept chats in 2.0.2, on both. On the desktop, update the app to 2.0.2 or later to get kept chats.
What it does not do: it does not shorten results from your own apps and connectors, and it does not make a model answer faster. It cuts what the app downloads, redraws, and keeps in memory.
If you build a chat or agent interface, open your longest chat with the browser's Network panel (opens in a new window) recording and read the total it transferred before you tune anything else. Nothing downstream can save bytes that already arrived, so cut the download first.
Footnotes
- ZeroTwo 2.0.0 release notes, November 22, 2026, Speed section. Kept chats followed in the 2.0.2 release notes of November 23, 2026. ↩
- Bytes of step data the app receives for the newest 1,000 rows when the 16,000-step chat opens, counted before and after 10 more tools joined the preview list on November 21, 2026. Six tools were on the list before. The release notes round the same figures to 3.3 MB and 1.4 MB. ↩
- The preview test renders every closed row from the whole step and from the preview, compares the result for each part of the app that reads the chat, and runs a control tool that must fail. Tools whose output we have not audited, including every connector, stay off the list. ↩
- The 14 MB and 2 MB figures are from the 2.0.0 release notes and describe one account with many connected apps, so the saving on any account depends on how many apps it connects. The page and the connections store both request the slim list at startup. ↩
- The new read takes 1,000 rows at a time from the newest backwards and falls back to the old read on any failure. The old read numbered and sorted the full thread for every page, so each page cost more than the one before. ↩
- Render counts come from the list's own test and from our streaming benchmark. Update times are means over a streamed reply of 12,000 characters of plain prose on a development build of React, and the slowest 5% is the 95th percentile. ↩
- JavaScript heap of the web app on a development server in headless Chrome, read after opening 12 chats in turn without the change, again with it, and again 11 minutes later, once the release timer had run. We have not repeated this in the desktop app or on a release build. ↩
- Kept chats arrived in the 2.0.2 release, on the web and in the desktop app, together with the fix that keeps you at the bottom when a side panel opens. ↩
- Development build of React in headless Chrome at 1440 by 900 pixels, timed from the click to the chat being shown. The short chats are the median of 12 returns. The first 18,432-row figures are three returns each, measured before the fix described below. ↩
- From our measurement notes of November 23, 2026, and the change that fixed it the same day. The figures after the fix are two runs of four returns each, leaving out the first return of each run while older messages were still arriving. ↩
- The speed changes are app defaults with no plan check in the code we read on November 24, 2026. The 2.0.0 release notes name a plan wherever a change depends on one, and name none for these. ↩
