Commit Graph
1150 Commits
Author SHA1 Message Date
G30 0c336e072b fix: dismiss note formatting toolbar when focus leaves the editor (#34966) 2026-11-25 00:21:32 +04:00
G30 bb98273f9e fix(ui): dismiss dropdowns when dragging outside (#34959) 2026-11-24 22:51:38 +04:00
Timothy Jaeryang Baek 26f85aa220 refac 2026-11-24 21:50:41 +04:00
Timothy Jaeryang Baek acdb7b5038 refac 2026-11-24 21:30:58 +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 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
G30 f1aaad5d66 fix(ui): make file preview audio controls transparent (#34948) 2026-11-24 20:50:42 +04:00
Timothy Jaeryang Baek d89cd809cb refac 2026-11-24 20:04:48 +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
Timothy Jaeryang Baek 3e88289868 refac 2026-11-24 18:44:03 +04:00
Timothy Jaeryang Baek 57c955a033 refac 2026-11-24 16:39:36 +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 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 c3747e8449 refac 2026-11-23 15:06:29 +04:00
Timothy Jaeryang Baek cc2e033b04 refac 2026-11-23 02:26:51 +04:00
Timothy Jaeryang Baek b5a9aead84 refac 2026-11-22 17:23:24 +04:00
Timothy Jaeryang Baek df6be8c3a1 refac 2026-11-22 17:13:34 +04:00
Timothy Jaeryang Baek 22e86fc807 refac 2026-11-21 19:38:57 +04:00
G30 9116c6c017 fix: an open select menu closes when its page tab is hidden (#34716) 2026-11-21 16:04:26 +04:00
G30 8fdde92b3c fix: Ctrl+Shift+F formats a code block marked py (#34734) 2026-11-21 15:49:13 +04:00
Timothy Jaeryang Baek f80331e08c refac 2026-11-21 15:18:37 +04:00
Timothy Jaeryang Baek a78a66e7de refac 2026-11-21 13:27:07 +04:00
Timothy Jaeryang Baek 76339161b0 refac 2026-11-20 14:43:49 +04:00
Timothy Jaeryang Baek 2f70a0248a refac 2026-11-20 14:16:23 +04:00
Timothy Jaeryang Baek aae047766a refac 2026-11-19 19:38:20 +04:00
Timothy Jaeryang Baek 8fb2bf35ad refac 2026-11-19 19:13:33 +04:00
Timothy Jaeryang Baek 6e5f3fda3e refac 2026-11-19 18:34:48 +04:00
Classic298 01aae7268d perf: a running tool call makes the browser re-layout the whole chat on every frame (#34624)
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 |
2026-11-18 04:57:13 +04:00
Classic298 bd5445a791 perf: PDF preview opens large files in seconds (#34602)
Opening a long PDF in the preview drew every page at full resolution before showing anything and kept them all in memory, so a 1500-page manual took over half a minute, and one report had a 357-page scanned file push Firefox past 20 GB. The preview now lays out all pages right away, draws only the pages near the screen and releases pages once they scroll far away. Jumping to a cited page, zooming and scrolling work as before, and comment highlights and the zoom level apply to far-off pages as they are drawn. The page thumbnails also release each page after drawing it; without that, the scanned file below still passes 9 GB while its thumbnails load. The browser's find (Ctrl+F) now only matches text on pages near the screen, and selecting text across into far-off pages no longer works.

| Large PDF in the file preview | before | after |
| --- | --- | --- |
| 1500-page text PDF, opened at page 1200 | 35.7 s, 7.5 GB | 1.3 s, 1.0 GB |
| 400-page scanned PDF (39 MB), opened at page 300 | nothing shown, over 9.8 GB after 9.4 s (stopped) | 1.4 s, 1.1 GB, 1.5 GB peak scrolling the whole file |

Fixes #29576
2026-11-17 22:41:39 +09:00
Timothy Jaeryang Baek 916c03829d chore: format 2026-11-17 22:37:26 +09:00
Classic298 b4a88505e1 fix: long Markdown files freeze the page when opened from a terminal's Files (#34491)
Opening a long Markdown file from a terminal's Files froze the whole tab, and typing inside a code block froze it again on every keystroke. The editor guessed the language of every code block that names none by trying every language it knows, about 15 ms per block, so a 750 KB file with a thousand such blocks blocked the page for 19 seconds. Code blocks with no language, or one the editor does not know, now show as plain text, as chat and the read-only file view already show them, and the same file now freezes the page for about 2 seconds. Code blocks that name a language the editor knows are highlighted as before. The same goes for the other places that use this editor, such as notes and the message box with rich text on.

Fixes #34486
2026-11-17 20:34:23 +09:00
Timothy Jaeryang Baek b462a23a70 refac 2026-11-17 20:34:05 +09:00
Classic298 958edefcac fix: switching an optional valve to Custom in the chat controls shows an error (#34478)
* fix: switching an optional valve to Custom in the chat controls shows an error

Switching an optional valve, such as an optional on/off setting, from Default to Custom in the Valves section of the chat controls saved the still empty box right away, and the server refused it with "Error updating function user valves". Emptying the box later failed the same way. Switching to Custom now saves once something is entered, and an emptied optional on/off or number valve goes back to its default; optional text valves still save an empty text.

Fixes #34475

* Drop a comment that restates its condition

* Name schema entries the way the schema helpers do
2026-11-17 13:59:54 +09:00
Timothy Jaeryang Baek 9a379eaa73 refac 2026-11-17 01:21:35 +09:00
Timothy Jaeryang Baek b4cc5b0afe refac 2026-11-17 01:13:22 +09:00
Timothy Jaeryang Baek 8d7a8dbe54 refac 2026-11-17 00:47:42 +09:00
Timothy Jaeryang Baek c82ceaf1fc refac 2026-11-17 00:31:18 +09:00
Classic298 1a855ca9a3 feat: tool labels also show for failed tool calls (#34000)
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.
2026-11-17 00:01:23 +09:00
Timothy Jaeryang Baek 1588ce1bfc refac 2026-11-16 22:54:17 +09:00
Timothy Jaeryang Baek 21605e268d refac 2026-11-16 19:14:07 +09:00
Timothy Jaeryang Baek aa394849d8 refac 2026-11-16 17:52:06 +09:00
G30 77b70d3744 fix: a text box inside a submenu keeps the caret keys and stays open while typing (#34381) 2026-11-16 15:45:13 +09:00
Timothy Jaeryang Baek 86aac87f83 refac 2026-11-16 15:42:59 +09:00
Classic298 3dab13494c fix: label knowledge bases as Knowledge Base instead of Collection (#34432)
Knowledge bases are called Collection or Collections in the chat knowledge picker, the model editor knowledge selector, the knowledge base chips and their detail view, and the search box inside a knowledge base, while the rest of the app says knowledge. Collection is also the vector database term, so the two get mixed up. Those places now say Knowledge, Knowledge Base or Search Files, reusing labels that are already translated, and the tooltip on a file inside a knowledge base now says File.

Relates to #34424
2026-11-16 15:33:17 +09:00
G30 80bae38940 fix: the folder page's F shortcut moves focus into the Filter menu (#34501) 2026-11-16 15:27:46 +09:00
Timothy Jaeryang Baek a199370769 refac 2026-11-16 15:16:21 +09:00