Opening a chat with no machine selected read through the whole conversation on every open, looking for a machine to restore. That is the normal case for a chat, so large chats opened about 45% slower. A chat that already saved its selection, with no machine or with a machine saved under its former terminal name, now opens without that extra pass. Agent chats with nothing saved still get their machine and folder back.
Fastest of seven opens of a 130 MB chat on SQLite:
<table>
<tr><th></th><th>Context Compaction off</th><th>Context Compaction on</th></tr>
<tr><td>dev before Terminals were renamed to Machines</td><td>0.316 s</td><td>0.429 s</td></tr>
<tr><td>dev</td><td>0.469 s</td><td>0.608 s</td></tr>
<tr><td>this fix</td><td>0.325 s</td><td>0.437 s</td></tr>
</table>
Fixes#34962
Saving a router model whose pattern is not a valid regular expression showed only "[object Object]" in the error toast, so the admin could not tell what was wrong. The toast now shows the server's message, such as "Value error, Invalid pattern: missing ), unterminated subpattern at position 0". Any other rule the server refuses when a router model is saved reads the same way.
Fixes#34897
A pattern like "```|def |function " (the example in the docs) lost its trailing space when the router model was saved, from the dialog or through the API. "function" without a space after it then matched as well, so a message about "functionality" went to the model meant for code. Patterns are now saved exactly as typed, and a pattern saved before this needs its space typed again. Conditions saved through the API now keep their spaces as sent too.
Fixes#34898
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
On a phone, a quick pinch in the image preview could shrink the image to nothing, a quick spread could throw it off screen and stop zooming, and after zooming in and back out slowly the image ended up smaller than it opened. The previews made every pinch three and a half times stronger than the fingers moved, so a quick pinch reached a size of zero that the image could not recover from, and all other pinches overshot. Pinch now follows the fingers at normal speed in the image, file, diagram and slide previews.
Fixes#34939
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
On a phone or tablet, tapping Download in the full-screen image view did nothing, and the same went for the other buttons over a zoomable view, such as Download as SVG and Copy to clipboard on a diagram. The zoomable view under those buttons captured every touch, so a tap on a button never became a click. Taps on these buttons now reach them and no longer zoom or pan the view. The image view's buttons also sit on a dark bar now: on a zoomed light image their white icons were invisible, which left an iPhone user with no visible way to close the preview.
Fixes#34942
Responses API connections sent the system prompt as a developer message only when the model id looked like a newer OpenAI model. Azure deployments with a custom name and prefixed proxy ids like openai/gpt-6.2 still got it in the separate instructions field, which GPT-6.2 and later never cache, so the whole system prompt was billed at the full input price on every turn and every tool call. The system prompt now always goes out as a developer message in the conversation, which brings the Responses API connection to parity with OpenAI and follows the Open Responses spec. With ENABLE_RESPONSES_API_STATEFUL on, tool calls no longer send the system prompt again, because the provider already keeps that message from the first request.
Fixes#34801
Sign-in and sign-up entries in the audit log had an empty user, so nothing said whose account was involved. A password sign-in, a sign-up that signs the user in and the authenticator code step of two-factor sign-in now name the account in their entry. Failed sign-ins still have no user.
Part of #33249
At the METADATA and REQUEST audit levels the entry for each request had an empty response status, so a denied request looked the same as a successful one. The status code is now recorded at every audit level. It carries no request or response content, so the least detailed level can hold it too.
Part of #33249