Providers and the proxies in front of them often write errors for people, with bold text, a list of things to try, a link to a status page or an id to quote, but the error box under a reply showed the Markdown marks as typed and the links as plain text. The error box now renders its message the way replies are rendered, so links open like links in replies, and single line breaks still show as line breaks, as they have since #34954. HTML and images in an error are shown as text and never rendered, and a plain one-line error looks exactly as before.
Fixes#34951
When a model connection answered with an error message spread over several lines, the error box under the reply ran all lines together into one paragraph. The box now keeps the message's line breaks, so each line shows on its own line, and long unbroken text still wraps inside the box. Spaces at the start or end of a line are still dropped, so the box shows no odd gaps.
Fixes#34950
Every page, the login page included, downloaded the full code highlighting library with all its languages before it appeared, about 300 KiB compressed. It now loads only where code is shown or edited. Code in chat messages and message inputs shows plain for a moment on first load and is colored as soon as the library arrives, while notes and other editors load it before they open, so a note is never modified just by opening it. Copying a response with formatting never actually used the library, so that leftover code is gone.
<table>
<tr><th>Cold load, 5 Mbps</th><th>Before</th><th>After</th></tr>
<tr><td>Login page JavaScript (compressed)</td><td>1062 KiB</td><td>769 KiB</td></tr>
<tr><td>Login page, password field visible</td><td>3440 ms</td><td>2945 ms</td></tr>
<tr><td>New chat JavaScript (compressed)</td><td>1747 KiB</td><td>1454 KiB</td></tr>
<tr><td>New chat, input usable</td><td>5528 ms</td><td>5105 ms</td></tr>
</table>
Fixes#34888
Selecting part of a reply that contains math and copying it put the rendered formula on the clipboard as scattered characters and line breaks, so a pasted $E = mc^2$ came out as "E=mc", "2" on separate lines. Each formula is now copied as its LaTeX source, wrapped in $...$ for inline math and $$...$$ for display math, also when pasting into an editor that keeps formatting. Selections without math copy exactly as before.
Fixes#34776
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.
When a tool call failed, the short label the model gives each call was hidden, and one failed call also hid the labels of the other calls grouped with it. Failed calls now keep their label, on their own and in a group. The red cross still marks the failure, and calls without a label keep the text they showed before.
Scrolling up through a long chat in Firefox kept throwing the view back down while older messages loaded, sometimes by several screens. Firefox does not hold the view in place when messages above it settle to their real height, so it now shows them at full height from the start. When two loads fired back to back it also shifted the view a second time on top of the app's own adjustment, so in every browser the adjustment now follows where the first message sits instead of how much the page grew. Measured on a 150 message chat, scrolling up in 100 px steps: Firefox went from 74 steps where the content jumped (largest jump 1197 px) to 8 steps (largest 123 px); Chromium stays at 3 steps and 101 px.
Fixes#33994
With a temporary chat in the main view, a saved chat opened in a tab beside it was treated as temporary too, so its answers showed no Good Response and Bad Response buttons. The saved chat in the tab can now be rated, while a temporary chat, in the main view or in a tab, still offers none.
Fixes#34211