Commit Graph
12019 Commits
Author SHA1 Message Date
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
Classic298 ed1c7e45d8 perf: show the Admin Settings > Interface tab sooner (#34891)
The Interface tab in Admin Settings loaded its settings first, then the saved model settings, then the model list, waiting for each before starting the next. On a remote instance every one of those waits is a full network round trip before the task model selectors show up. All of them now load together.

<table>
<tr><th>Time until the task model selectors show, provider answering in 500 ms, median of 7</th><th>Before</th><th>After</th></tr>
<tr><td>no added latency (localhost)</td><td>635 ms</td><td>621 ms</td></tr>
<tr><td>40 ms latency</td><td>711 ms</td><td>625 ms</td></tr>
<tr><td>100 ms latency</td><td>787 ms</td><td>625 ms</td></tr>
</table>

Fixes #34889
2026-11-23 18:32:55 +04:00
Classic298 e70428af2d fix: expanding or collapsing a note's chat drops keyboard focus (#34799)
Pressing Expand above a note's chat, or Collapse in its header, removed the button that had focus, so keyboard focus fell back to the page and the next Tab started again from the top. Expanding now puts the focus in the chat's message box and collapsing gives it back to the Expand button.

Fixes #34798
2026-11-23 18:32:38 +04:00
Classic298 c3fcd04e9b fix: browser console shows a channels error on every page load when Channels is off (#34821)
With Channels turned off, or for a user without the Channels permission, every page load asked the server for the channel list right after connecting to it. The server refused, so the browser console logged a 403 (or 401) error each time. The channel list is now only requested when Channels is on and the user may use it, and it still refreshes after a reconnect when it is.

Fixes #34820
2026-11-23 18:30:16 +04:00
Timothy Jaeryang Baek 74fad78f1c refac 2026-11-23 18:23:07 +04:00
Classic298 347aceaf50 fix: generated titles of router model chats come from a model the router did not pick (#34900)
Generate in a router model chat's title editor or in its sidebar rename asked the router again, which matched its rules against the built-in title instructions instead of the conversation, so the title could come from a model unrelated to the chat and each click could cost a Decisions API call. It now comes from the model the router picked for the latest reply, as in a direct chat with that model. The automatic title, tags and follow-ups after a reply are fixed in #34895.

Refs #34887
2026-11-23 18:09:54 +04:00
Classic298 bd150cdf66 fix: machine skills show an internal name instead of Machine in the $ and / skill lists (#34810)
Since terminals were renamed to machines, skills that come from a machine showed an internal name such as terminal:my-skill next to them in the $ and / lists, while the Skills menu labels them Machine. Both lists now show the Machine label for them, matching the Skills menu.

Fixes #34809
2026-11-23 16:45:49 +04:00
Classic298 0b64d0c047 fix: a pinned model's new chat tab shows none of the model's prompt suggestions (#34845)
Since pinned models open their new chat in a tab, that tab only showed a plain New Chat heading, so the prompt suggestions set up for the model in Workspace > Models never appeared. Picking the same model in the model selector of a new chat still showed them. A new chat tab now lists the selected model's own prompt suggestions above the message input, and they filter as you type and send exactly as on the new chat screen.

Fixes #34830
2026-11-23 16:45:18 +04:00
Classic298 83e1d38d88 fix: clicking a PDF citation again does not go back to the cited page (#34836)
Once a cited PDF was open beside the chat, scrolling it or picking another page in the page strip broke the citation: clicking it again left the PDF where it was, and only closing the tab brought the cited page back. Every click on a citation now opens the PDF at its cited page again, wherever the reader went since.

Fixes #34834
2026-11-23 16:45:00 +04:00
Timothy Jaeryang Baek 411d030679 refac 2026-11-23 16:43:25 +04:00
Timothy Jaeryang Baek d599f7a08e refac 2026-11-23 16:23:46 +04:00
Timothy Jaeryang Baek 061aeae187 refac 2026-11-23 16:21:24 +04:00
Classic298 d59de004bb perf: show the Admin Settings > Models list sooner (#34873)
The Models tab in Admin Settings loaded the models config, the workspace models and the model list one after another, then loaded the provider model list, and after showing the list loaded the model list again. Every one of those waits costs a network round trip, so admins on a remote instance waited noticeably longer than needed. The first three now load together and the model list is only loaded once. The provider model list still loads after the model list, so the provider is still asked only once per visit.

<table>
<tr><th>Time until the list shows, provider answering in 500 ms, median of 7</th><th>Before</th><th>After</th></tr>
<tr><td>no added latency (localhost)</td><td>619 ms</td><td>620 ms</td></tr>
<tr><td>40 ms latency</td><td>730 ms</td><td>654 ms</td></tr>
<tr><td>100 ms latency</td><td>911 ms</td><td>710 ms</td></tr>
</table>

Fixes #34872
2026-11-23 16:16:26 +04:00
Classic298 2065ec9a80 perf: chats opened by link or reload start loading before the model list is in (#34869)
Opening a chat directly waited for the model list before it even asked for the chat, so a long chat on a slow connection added its whole download on top of the model list wait. The chat is now requested right away and the model choice, defaults and input still wait for the model list as before. The time saved is the chat download itself, so it grows with longer chats and slower links. Measured on a 500-message chat with a model list that takes 1 s, median ms until messages show and until the input is usable.

<table>
<tr><th></th><th>before</th><th>after</th></tr>
<tr><td>20 Mbit/s, messages shown</td><td>3568</td><td>3401</td></tr>
<tr><td>20 Mbit/s, input usable</td><td>3674</td><td>3485</td></tr>
<tr><td>5 Mbit/s, messages shown</td><td>7447</td><td>6442</td></tr>
<tr><td>5 Mbit/s, input usable</td><td>7519</td><td>6523</td></tr>
</table>

Fixes #34868
2026-11-23 16:14:51 +04:00
Classic298 41652d4a0a perf: Workspace Models list waits on an unused request before loading (#34871)
Opening Workspace > Models loaded every user group before it asked for the models, and nothing on the page used the groups. The list now starts loading as soon as the page opens, so it shows up one network round trip sooner. A failed groups request also no longer leaves the page blank.

<table>
<tr><th>Time to first model row (in-app click, 20 groups, 40 models)</th><th>Before</th><th>After</th></tr>
<tr><td>0 ms latency</td><td>263 ms</td><td>226 ms</td></tr>
<tr><td>50 ms latency</td><td>420 ms</td><td>327 ms</td></tr>
<tr><td>100 ms latency</td><td>658 ms</td><td>537 ms</td></tr>
</table>

Fixes #34870
2026-11-23 16:14:25 +04:00
Timothy Jaeryang Baek 5697a0939a refac 2026-11-23 16:10:09 +04:00