Opening a chat loaded the whole conversation a second time to work out how full the model's context is, even with Context Compaction off, which is the default. The server only sends that figure while compaction is on, so with it off every open of a large chat read the conversation twice for nothing. Chats now skip the second read while Context Compaction is off, and nothing changes with it on.
Server time to open a chat with Context Compaction off, fastest of repeated opens:
| Chat size | Postgres before | Postgres after | SQLite before | SQLite after |
|---|---|---|---|---|
| 1 MB | 25 ms | 17 ms | 21 ms | 9 ms |
| 10 MB | 66 ms | 44 ms | 39 ms | 20 ms |
| 50 MB | 337 ms | 184 ms | 119 ms | 71 ms |
| 130 MB | 653 ms | 464 ms | 264 ms | 143 ms |
Fixes#34670
In a channel, typing an emoji shortcode like :swea or a slash command and pressing Enter sent the half-typed text right away. Enter only checked for an open suggestion list inside the message box, but that list is drawn outside it, so it was never found. Enter now picks the highlighted suggestion again, as it does in the main chat input.
Fixes#34616
Tool results returned as a JSON object or list were re-indented with two spaces before being handed to the model, so those tool calls paid tokens for whitespace nobody reads. They now go to the model as compact JSON. The tool call panel in the chat still shows them pretty-printed, because it formats the result on its own.
Measured on real Open Terminal responses (o200k tokenizer):
| Tool | Before | After | Saved |
|---|---|---|---|
| list_files | 1013 | 672 | 34% |
| glob_search | 2821 | 2061 | 27% |
| grep_search | 2233 | 1652 | 26% |
| run_command | 649 | 614 | 5% |
| read_file | 3254 | 3245 | 0% |
Fixes#34639
When a reply ended on a tool result, for example because it was stopped right after a tool returned or the model call after it failed, /status left that result out, since it came back after the model's last reported token count. The result is still sent with the next message and context compaction counts it, so compaction could run while /status showed the chat well under the threshold. /status now counts those results too, the same way the compaction check does.
Fixes#34617
When a group of agent tool calls has a call still in progress, the collapsed header already counts it in the past tense, so it reads "Ran 1 command, Edited 2 files" while the command is still running. The header now uses the running form for each kind of call that is still in progress ("Running 1 command, Edited 2 files") and switches to the past tense once it finishes, the same way each row already does.
While a tool call is running, its loading spinner sits next to the shimmering status text, and the browser then recalculates the layout of the entire page 60 times a second for as long as the chat waits. That shows up as constant CPU use and slows down other tabs. The spinner animated a part inside its SVG icon, which the browser can only redraw through a fresh layout once anything else on the page is animating; it now rotates the whole icon, which looks the same and stays off the layout path.
Measured with Chrome's performance counters over 10 seconds of an idle chat holding a long answer and one running tool call:
| | Layouts | Layout time |
|---|---|---|
| Before | 600 | ~300 ms |
| After | 0 | 0 ms |
The light sweep across a running tool call or status label was a gradient inside the text, which the browser can only animate by redrawing the page on the main thread 60 times a second, so a chat that just waits on a tool call keeps about a tenth of a CPU core busy. The sweep is now a band that moves over the text and brightens it, which the browser animates on the GPU without touching the page. It keeps the same angle, width, colours and timing, so in Chrome the text looks the same as before in light and dark mode and on grey surfaces (the old dark-mode colours never applied, their rule was not valid CSS). Icons in a shimmering row, like the spinner and the chevron, now catch the sweep too, accessibility mode still shows flat text, and a browser without backdrop filter support shows the plain grey label without the sweep.
Measured in Chrome with its performance counters over 10 seconds of an idle chat holding a long answer and one running tool call:
| | Main thread busy |
|---|---|
| Before | ~1070 to 1140 ms |
| After | ~8 to 113 ms |
A stopped reply was saved without the token counts the model had already reported for it, so the next message had to estimate the reply's size from its text. That estimate includes the model's thinking, which is often not sent back to the model, so after a long tool-calling run it could come out far larger than the real context and trigger compaction well before the threshold. A stopped reply now keeps the counts reported so far, marked incomplete, so the size check starts from the real number; text the stopped round produced after its last report is not counted, which is far less than what the old estimate added. Stopped replies now also show their token usage and count toward the analytics token totals, still not as complete responses.
Fixes#34626