Commit Graph
12034 Commits
Author SHA1 Message Date
Timothy Jaeryang Baek 1fbb42be97 refac 2026-11-24 22:11:32 +04:00
Timothy Jaeryang Baek 26f85aa220 refac 2026-11-24 21:50:41 +04:00
Classic298 8b185d8d2c feat: render Markdown in chat error messages (#34955)
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
2026-11-24 21:41:02 +04:00
Timothy Jaeryang Baek acdb7b5038 refac 2026-11-24 21:30:58 +04:00
Timothy Jaeryang Baek 451174d700 refac 2026-11-24 21:26:11 +04:00
Timothy Jaeryang Baek b1d3f90760 refac 2026-11-24 21:21:33 +04:00
Classic298 cf100751ec fix: image preview on phones gets stuck after pinch zoom (#34953)
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
2026-11-24 21:20:01 +04:00
Classic298 e2ae064770 fix: line breaks in a provider's error message are lost in the chat (#34954)
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
2026-11-24 21:17:37 +04:00
Classic298 9aafbf4f5c fix: buttons over a zoomable preview do nothing on touch screens (#34952)
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
2026-11-24 21:17:11 +04:00
Timothy Jaeryang Baek c6ef4a523f refac 2026-11-24 21:02:00 +04:00
Timothy Jaeryang Baek 2c1e50a463 refac 2026-11-24 21:01:50 +04:00
Timothy Jaeryang Baek 0f71ee15a1 refac 2026-11-24 20:58:02 +04:00
Timothy Jaeryang Baek 59c8184bf1 refac 2026-11-24 20:53:38 +04:00
G30 f1aaad5d66 fix(ui): make file preview audio controls transparent (#34948) 2026-11-24 20:50:42 +04:00
Timothy Jaeryang Baek 068fe7a39e refac 2026-11-24 20:49:51 +04:00
Timothy Jaeryang Baek 2be04aa5e2 refac 2026-11-24 20:30:47 +04:00
Timothy Jaeryang Baek e9bfa82d00 refac 2026-11-24 20:29:45 +04:00
G30 a667c3176a fix(ui): remove disabled connection URL backgrounds (#34946) 2026-11-24 20:27:28 +04:00
Timothy Jaeryang Baek 3a8b3fb8a1 refac 2026-11-24 20:26:57 +04:00
Timothy Jaeryang Baek d22ab1251d refac 2026-11-24 20:24:18 +04:00
Timothy Jaeryang Baek aa3f714c21 refac 2026-11-24 20:08:57 +04:00
Timothy Jaeryang Baek d89cd809cb refac 2026-11-24 20:04:48 +04:00
Timothy Jaeryang Baek 34888d6905 refac 2026-11-24 19:25:20 +04:00
Timothy Jaeryang Baek 1b5af66c4d refac 2026-11-24 19:21:40 +04:00
Timothy Jaeryang Baek af44e5f92c refac 2026-11-24 19:13:59 +04:00
Timothy Jaeryang Baek 1eb5274f83 refac 2026-11-24 19:10:42 +04:00
Timothy Jaeryang Baek 8b0a8ecceb refac 2026-11-24 19:04:58 +04:00
Timothy Jaeryang Baek a762df830b refac 2026-11-24 19:02:38 +04:00
Timothy Jaeryang Baek e1855444ae refac 2026-11-24 19:01:44 +04:00
Classic298 00cb737759 fix: clicking a cited file in a temporary side chat opens nothing (#34923)
In a temporary side chat, clicking a source from a knowledge base did nothing, both on the citation marker in the reply and in the source list. No tab opened beside the chat and no source dialog showed either. The file now opens in a tab beside the chat with the cited passage marked, the same as in a saved side chat or a temporary main chat.

Fixes #34921
2026-11-24 18:52:47 +04:00
Timothy Jaeryang Baek 3e88289868 refac 2026-11-24 18:44:03 +04:00
Timothy Jaeryang Baek 09bfdcfb14 refac 2026-11-24 18:41:26 +04:00
Timothy Jaeryang Baek 57c955a033 refac 2026-11-24 16:39:36 +04:00
Timothy Jaeryang Baek c94eb96b7f refac 2026-11-24 15:46:24 +04:00
Timothy Jaeryang Baek dc9886799a refac 2026-11-24 02:11:38 +04:00
Timothy Jaeryang Baek 2dffca8326 refac 2026-11-23 23:44:45 +04:00
Classic298 d07679e60c fix: selected skill files cannot be cleared with Escape or a click on empty space (#34691)
In the skill editor, files selected with a Shift or Ctrl/Cmd click stayed selected until each one was unchecked by hand, and while any file was selected a click on a file only added it to the selection. Escape and a click on the empty part of the file list now clear the selection, like the file browser in a chat's Files panel. An Escape that closes one of the editor's dialogs or menus, or cancels a rename, keeps the selection.

Fixes #34690
2026-11-23 22:17:11 +04:00
Classic298 306f9be784 perf: open the model editor without waiting for voices and tool lists (#34844)
The model editor waited for the tools list, skills, functions, tag suggestions and the TTS voice list one after the other before showing the form. With a TTS provider that lists voices over the network or a few tool servers, that took seconds on every open. Only the model defaults set by the admin are needed to draw the form, so the editor now waits for those alone and the other lists fill in when they arrive. Saved selections show right away, and saving before a list has arrived keeps them.

<table>
<tr><td></td><td>before</td><td>after</td></tr>
<tr><td>Edit model, voice list taking 1.5 s, 3 tool servers</td><td>2344 ms</td><td>240 ms</td></tr>
<tr><td>New model, same setup</td><td>2305 ms</td><td>227 ms</td></tr>
<tr><td>Edit model, voices and tools answering at once</td><td>231 ms</td><td>233 ms</td></tr>
</table>

Fixes #34843
2026-11-23 20:14:34 +04:00
Classic298 757eaad52a fix: Browser tab drops text typed with an input method or dead keys (#34738)
In the Chrome view of the Browser tab, text typed through an input method (Korean, Japanese, Chinese and others) never reached the page, and in some browsers neither did text typed with dead keys (an accent key followed by a letter, like ´ then e for é). Plain letters and paste worked. After you click into the page, composed text now reaches it when the input method finishes it, so with Korean each syllable shows up once you start the next one, press space or Enter, or click. Plain typing, shortcuts and paste work as before while nothing is being composed.

Fixes #34717
2026-11-23 20:13:06 +04:00
Classic298 3b6e0855da perf: load the code highlighter only when code needs highlighting (#34890)
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
2026-11-23 19:17:12 +04:00
Timothy Jaeryang Baek 6122544801 refac 2026-11-23 19:14:51 +04:00
Timothy Jaeryang Baek 072d0b51d6 refac 2026-11-23 19:13:20 +04:00
Classic298 d3ddbf715c fix: error box stays after Continue Response recovers a failed reply (#34822)
When a reply broke off mid-stream and Continue Response then finished it, the old error stayed under the answer, also after a reload. Continuing now clears the old error as soon as the new attempt starts, on screen and in the saved chat. A continuation that fails again shows and saves its own error, and nothing sent to the model changes.

Fixes #34814
2026-11-23 19:12:45 +04:00
Classic298 7d1f815625 fix: screen readers cannot tell a feature's default switch from its availability switch (#34797)
In the model editor's Features section, the switch that makes Web Search, Image Generation or Code Interpreter available and the switch that turns it on by default in new chats had the same name, so a screen reader announced two identical "Web Search" switches and labels. The default switches and their labels are now announced as "Start enabled in new chats: Web Search" and so on, matching the caption shown above them. The visible labels stay the same.

Fixes #34790
2026-11-23 19:12:15 +04:00
Timothy Jaeryang Baek 1612ec9817 refac 2026-11-23 18:54:00 +04:00
Classic298 74f2c2192e perf: stop reloading the model list on every settings save (#34847)
Every toggle in personal Settings and the Save button in General reloaded the full model list after storing the setting, which calls every connected provider live. The "Settings saved" message waited for that, so a slow connection made each click lag. None of these settings change the model list any more since personal connections were removed from user settings, so a save now just stores the setting and applies it.

<table>
<tr><td>Mock provider, 500 ms model list, 15 saves</td><td>Before</td><td>After</td></tr>
<tr><td>Interface toggle, click to save done</td><td>~580 ms</td><td>~45 ms</td></tr>
<tr><td>General Save, click to "Settings saved"</td><td>~585 ms</td><td>~70 ms</td></tr>
<tr><td>Provider model list calls per save</td><td>1</td><td>0</td></tr>
</table>

Fixes #34846
2026-11-23 18:53:20 +04:00
Timothy Jaeryang Baek c11a16f448 refac 2026-11-23 18:38:47 +04:00
Timothy Jaeryang Baek 1581377b69 refac 2026-11-23 18:38:06 +04:00
Classic298 e861fde7cd fix: Enter does nothing in the chat input after selecting all text (#34760)
After selecting everything in the chat input with Ctrl+A or Cmd+A, pressing Enter did nothing. The message was not sent, and the browser console showed a RangeError. Enter now sends the message as usual, and Shift+Enter no longer logs that error.

Fixes #34758
2026-11-23 18:37:17 +04:00
Timothy Jaeryang Baek b7ce1bd194 refac 2026-11-23 18:35:34 +04:00