Commit Graph
21279 Commits
Author SHA1 Message Date
Timothy Jaeryang Baek aa8d32e9f3 refac 2026-11-27 03:14:04 +04:00
G30 c63565927d fix: keep the main chat's address while a chat tab beside it is in front (#35137) 2026-11-27 03:09:43 +04:00
Classic298 60d9094f67 fix: asking about a file from a folder's Files tab never gets a reply (#35084)
Selecting a spreadsheet cell or some text in a file opened from a folder's Files tab and asking about it opened a new chat with the question and the file, but nothing was sent to the model and no error showed up. Chats in a folder now accept files opened from their own folder, so the question goes out and the reply appears. Files from another folder, another chat or another machine are still refused.

Fixes #35080
2026-11-27 02:44:13 +04:00
Timothy Jaeryang Baek 25d880bd62 refac 2026-11-27 02:42:47 +04:00
Classic298 78bd95f21e fix: native knowledge citations open PDFs at page 1 instead of the cited page (#35116)
With native function calling and page numbers turned on for sources (page in RAG_SOURCE_METADATA_KEYS), clicking a citation from a search of a knowledge base or of files attached to the chat opened the PDF at the first page, even though the search had found the right page. The citation now opens the PDF at the cited page. Without native function calling it already did.

Fixes #35108
2026-11-27 02:37:45 +04:00
Classic298 b6f0d483ed perf: removing files from a large knowledge base on pgvector gets slower the bigger it grows (#35123)
With pgvector, removing, updating or re-syncing a file in a knowledge base scanned every chunk of that knowledge base to find the file's own chunks, and so did the check for a duplicate upload. A cleanup of 94 files through the knowledge base sync API, in a knowledge base of 756,000 chunks, took about a minute, long enough for sync clients to time out. These lookups now use indexes instead of scanning the whole knowledge base. The indexes are built once on the first start after upgrading, which took under 3 seconds on a table of 1.5 million chunks. They are skipped when PGVECTOR_PGCRYPTO is enabled, because encrypted metadata cannot be indexed, so those setups keep the old speed.

<table>
<tr><th>756,000 chunks in the knowledge base</th><th>Before</th><th>After</th></tr>
<tr><td>Sync cleanup, 94 files</td><td>60.8 s</td><td>0.96 s</td></tr>
<tr><td>Remove one file</td><td>631 ms</td><td>22 ms</td></tr>
<tr><td>Update one file</td><td>973 ms</td><td>488 ms</td></tr>
<tr><td>Reject a duplicate upload</td><td>204 ms</td><td>70 ms</td></tr>
</table>

Fixes #35122
2026-11-27 02:37:19 +04:00
Classic298 ee188b4316 fix: use the Youtube Proxy URL for YouTube transcripts even when HTTPS_PROXY is set (#35124)
With HTTPS_PROXY set on the server, fetching a YouTube transcript went through that proxy instead of the configured Youtube Proxy URL, without any message saying so. Servers behind a company proxy got the "YouTube blocked the transcript request" error even though they had set a separate proxy for YouTube. The Youtube Proxy URL now always wins when it is set, and HTTPS_PROXY is still used when it is not. Custom CA certificates set through REQUESTS_CA_BUNDLE keep working either way.

Fixes #35121
2026-11-27 02:36:54 +04:00
Timothy Jaeryang Baek 8103755d47 refac 2026-11-27 02:25:06 +04:00
Classic298 4aaf19191f fix: slide preview shows the first slide when opened at a later one (#35107)
When a PowerPoint preview opened at a given slide, it often showed the first slide while the slide number and the highlighted thumbnail said the requested one. It stayed on the wrong slide until the user moved to another slide and back. The preview now shows the slide that was asked for.

Fixes #35106
2026-11-27 01:19:43 +04:00
Classic298 1e68fa8d18 fix: with several workers, chats go to the wrong connection after a connection is deleted (#35119)
With UVICORN_WORKERS above 1, deleting an OpenAI or Ollama connection left every worker except the one that saved the change sending some models to the wrong connection, so chats failed with "model not found" until a restart. The admin panel showed the right connection the whole time. The workers now share which connection serves each model through Redis, which several workers already require, so a change reaches all of them at once.

Fixes #35114
2026-11-27 01:19:28 +04:00
G30 1362747031 i18n: fill missing translations in 48 languages (#35135) 2026-11-27 01:17:58 +04:00
Timothy Jaeryang Baek 833f32f8f4 refac 2026-11-27 00:58:20 +04:00
Timothy Jaeryang Baek 7b37a62240 refac 2026-11-27 00:31:51 +04:00
G30 a8399f68fb fix: hide finished reasoning blocks that have no text (#35126) 2026-11-27 00:12:28 +04:00
Timothy Jaeryang Baek f0acd8e771 refac 2026-11-27 00:07:04 +04:00
G30 de696d4b4a fix: check ui translation placeholders against the default text (#35127) 2026-11-26 23:44:04 +04:00
G30 26b6484e11 fix: add browser history entries for page tabs and follow back and forward (#35131) 2026-11-26 23:41:12 +04:00
G30 42b06ada7c i18n: fill missing translations in 48 languages and fix 13 existing ones (#35130) 2026-11-26 23:37:35 +04:00
Timothy Jaeryang Baek 4d49c6d950 refac 2026-11-26 21:25:16 +04:00
Timothy Jaeryang Baek 90eae9507c refac 2026-11-26 21:08:30 +04:00
Timothy Jaeryang Baek c4b71322ae refac 2026-11-26 18:27:34 +04:00
Timothy Jaeryang Baek ee7846286c refac 2026-11-26 18:25:14 +04:00
Timothy Jaeryang Baek 65f64e37b8 refac 2026-11-26 18:21:10 +04:00
Timothy Jaeryang Baek c456a6dbfd refac 2026-11-26 18:14:38 +04:00
Timothy Jaeryang Baek 2d4a3f622f refac 2026-11-26 17:24:30 +04:00
Timothy Jaeryang Baek 5fc1b1b591 refac 2026-11-26 17:21:33 +04:00
Timothy Jaeryang Baek c6b06567b8 refac 2026-11-26 17:19:16 +04:00
Timothy Jaeryang Baek 24f49bf467 refac 2026-11-26 17:16:55 +04:00
Timothy Jaeryang Baek 7a797bee44 refac 2026-11-26 17:08:19 +04:00
Timothy Jaeryang Baek 536032a9ef refac 2026-11-26 16:57:06 +04:00
Timothy Jaeryang Baek ee38c0213c refac 2026-11-26 16:55:05 +04:00
Timothy Jaeryang Baek 3854a4d086 refac 2026-11-26 16:36:45 +04:00
Timothy Jaeryang Baek e0eb2297d1 refac 2026-11-26 16:20:36 +04:00
Timothy Jaeryang Baek 54d1b41fd3 refac 2026-11-26 15:48:48 +04:00
Timothy Jaeryang Baek 376e77cee0 refac 2026-11-26 15:45:31 +04:00
Timothy Jaeryang Baek d331f062e6 refac 2026-11-26 03:52:50 +04:00
Timothy Jaeryang Baek 4043ad64ac refac 2026-11-26 03:50:42 +04:00
Timothy Jaeryang Baek 871159e7d7 refac 2026-11-26 03:22:32 +04:00
Timothy Jaeryang Baek 0d142e96ba refac 2026-11-26 03:21:43 +04:00
Timothy Jaeryang Baek fdfcb03a0a refac 2026-11-26 03:20:54 +04:00
Timothy Jaeryang Baek d6812c851b refac 2026-11-26 03:08:54 +04:00
joaoback e629c35c3e i18n: add pt-BR translations for newly added UI items and consistency pass (#35100)
New **pt-BR** translations for items introduced in the latest releases, plus a small consistency pass across existing strings. Placeholders preserved. No logic changes.
2026-11-26 02:05:04 +04:00
Timothy Jaeryang Baek 4b648ec4e7 refac 2026-11-26 02:04:30 +04:00
Timothy Jaeryang Baek 9c9a3ca0d6 refac 2026-11-26 01:31:48 +04:00
Timothy Jaeryang Baek 301ae2cf7d refac 2026-11-26 01:15:35 +04:00
Classic298 b7a7ddff18 perf: fewer requests when opening the inbox or clicking a notification (#35068)
Opening the notification inbox fetched the badge count again right away, although opening the inbox already returns it. Clicking a notification fetched the badge count and the list after the click and a second time from the server's realtime notice that notifications changed. Both duplicates are gone, and the badge and the list still update from that notice as before, which reaches all of the user's connected tabs and so carries changes from other tabs and other users. Each tab still refetches once in reaction to the notice its own action caused, which is left for a separate change. Times are summed server time per action for a typical user on a test instance with 50 users and 22,600 notifications, at two chat counts because each request checks which of the user's chats they can see.

<table>
<tr><th></th><th>Requests</th><th>SQLite, 5,000 chats on the instance</th><th>SQLite, 25,000 chats on the instance</th><th>Postgres, 5,000 chats on the instance</th><th>Postgres, 25,000 chats on the instance</th></tr>
<tr><td>Open the inbox</td><td>4 → 3</td><td>102 → 85 ms</td><td>264 → 221 ms</td><td>142 → 118 ms</td><td>227 → 188 ms</td></tr>
<tr><td>Click a notification that links to an item</td><td>5 → 3</td><td>94 → 54 ms</td><td>227 → 137 ms</td><td>136 → 79 ms</td><td>216 → 128 ms</td></tr>
<tr><td>Click an announcement</td><td>4 → 3</td><td>77 → 54 ms</td><td>184 → 137 ms</td><td>112 → 79 ms</td><td>177 → 128 ms</td></tr>
</table>

Refs #35066
2026-11-26 01:02:36 +04:00
Timothy Jaeryang Baek 90ef1f6b0d refac 2026-11-26 00:59:00 +04:00
Timothy Jaeryang Baek 572974f73f refac 2026-11-26 00:50:07 +04:00
Timothy Jaeryang Baek 9a596e2eed refac 2026-11-26 00:47:50 +04:00
Timothy Jaeryang Baek ec0ef19474 refac 2026-11-26 00:40:06 +04:00