Commit Graph
1359 Commits
Author SHA1 Message Date
Timothy Jaeryang Baek b6aac5dee5 refac 2026-11-25 02:33:34 +04:00
Timothy Jaeryang Baek 352c63be19 refac 2026-11-25 01:53:55 +04:00
Timothy Jaeryang Baek d5553c53e7 refac 2026-11-25 01:48:55 +04:00
Timothy Jaeryang Baek e85500e773 refac 2026-11-25 01:48:46 +04:00
Timothy Jaeryang Baek 8522af2d61 refac 2026-11-25 01:46:31 +04:00
Timothy Jaeryang Baek afd5ba59eb refac 2026-11-25 01:27:02 +04:00
Timothy Jaeryang Baek 46ac49fe09 refac 2026-11-25 01:20:55 +04:00
Timothy Jaeryang Baek c37725b7a3 refac 2026-11-25 01:07:47 +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
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
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 8b0a8ecceb refac 2026-11-24 19:04:58 +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 09bfdcfb14 refac 2026-11-24 18:41:26 +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
Timothy Jaeryang Baek 1612ec9817 refac 2026-11-23 18:54:00 +04:00
Timothy Jaeryang Baek 8e548c0f77 refac 2026-11-23 14:20:59 +04:00
Timothy Jaeryang Baek cc2e033b04 refac 2026-11-23 02:26:51 +04:00
Timothy Jaeryang Baek 9b6241e541 refac 2026-11-23 02:05:05 +04:00
Classic298 d22b3f303a fix: copying a reply with math pastes garbled formula text (#34779)
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
2026-11-22 20:22:32 +04:00
Timothy Jaeryang Baek 29c5fbef46 refac 2026-11-22 18:17:45 +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 828c3f122f refac 2026-11-22 15:56:30 +04:00
Timothy Jaeryang Baek 67863f310c refac 2026-11-22 15:54:36 +04:00
Timothy Jaeryang Baek 22e86fc807 refac 2026-11-21 19:38:57 +04:00
Timothy Jaeryang Baek c5c42fe3b7 refac 2026-11-21 16:20:44 +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 6e5f3fda3e refac 2026-11-19 18:34:48 +04:00
Classic298 04cedc89f5 fix: grouped tool call header says "Ran" while the command is still running (#34621)
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.
2026-11-18 04:57:33 +04:00
Timothy Jaeryang Baek c201472cf8 refac 2026-11-17 19:31:57 +09:00
Timothy Jaeryang Baek b4cc5b0afe refac 2026-11-17 01:13:22 +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
Classic298 87bdec44c7 fix: scrolling up in Firefox jumps when older messages load (#33998)
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
2026-11-16 22:51:29 +09:00
Timothy Jaeryang Baek 7be99d1e97 refac 2026-11-16 21:56:34 +09:00
Timothy Jaeryang Baek 205c2e97ce refac 2026-11-16 21:10:30 +09:00
Timothy Jaeryang Baek 6afb1681c9 refac 2026-11-16 19:38:00 +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
Timothy Jaeryang Baek a199370769 refac 2026-11-16 15:16:21 +09:00
Timothy Jaeryang Baek f085657a98 refac 2026-11-16 14:41:42 +09:00
Timothy Jaeryang Baek 06491f0132 refac 2026-11-13 22:40:53 +09:00
Classic298 dd3a6ca1f6 fix: a saved chat opened in a tab beside a temporary chat cannot be rated (#34212)
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
2026-11-13 19:05:13 +09:00
G30 ddc31ebbbc fix: Esc and Ctrl+Enter in a message edit box act on that edit box (#34321) 2026-11-13 18:39:53 +09:00