Commit Graph
1996 Commits
Author SHA1 Message Date
Classic298 f3ef8b9491 fix: Sub-agents settings show blank and switched off when a limit is 0 (#33612)
Saving the Sub-agents admin tab could turn sub-agents off and clear their system prompt when one of the limits was still 0. Older releases accepted 0 there, also from the SUBAGENTS_MAX_* environment variables, but the tab now fails to load such a value and shows everything blank and switched off, so saving writes that blank state back. A limit of 0 now shows as empty, meaning no limit, which matches what sub-agents already do with a 0 while they run.

Fixes #33609
2026-11-03 20:28:38 +09:00
Timothy Jaeryang Baek 0c64e5d596 chore: format 2026-11-03 17:36:03 +09:00
Timothy Jaeryang Baek bab66b2c2f refac 2026-11-03 16:31:24 +09:00
Timothy Jaeryang Baek e789513ea6 refac 2026-11-03 16:25:23 +09:00
Timothy Jaeryang Baek f0cc1bb86e refac 2026-11-02 17:49:51 +09:00
Timothy Jaeryang Baek ddb43c83ba refac 2026-11-02 12:45:15 +09:00
Timothy Jaeryang Baek 6dd3cc216f refac 2026-11-02 10:54:47 +09:00
Timothy Jaeryang Baek 151f7a84d1 refac 2026-11-02 10:09:34 +09:00
Timothy Jaeryang Baek d99ec1c02c refac 2026-11-02 08:48:51 +09:00
Timothy Jaeryang Baek 3bd0cdd0f3 refac 2026-11-02 01:16:43 +09:00
Timothy Jaeryang Baek b51e68fbb3 refac 2026-11-02 00:31:46 +09:00
Timothy Jaeryang Baek 70c5e38fc7 refac 2026-11-01 23:26:19 +09:00
Timothy Jaeryang Baek c4c10aa255 refac 2026-11-01 23:10:27 +09:00
Timothy Jaeryang Baek a06aa230f7 refac 2026-11-01 21:30:24 +09:00
Timothy Jaeryang Baek e5a2e6438e refac 2026-11-01 19:33:45 +09:00
Classic298 b4b6cc936d refac: run the knowledge read check on every pending files poll (#33461)
The pending knowledge files stream now checks the user's current account and read access again on every poll.
2026-11-01 09:18:15 +09:00
Timothy Jaeryang Baek 3814b7b2f1 refac 2026-10-31 16:50:01 +09:00
Timothy Jaeryang Baek 91e8deee74 refac 2026-10-30 16:43:24 +09:00
Timothy Jaeryang Baek 9d1b4ef362 refac 2026-10-30 16:01:47 +09:00
Timothy Jaeryang Baek 0e0ba872a4 refac 2026-10-30 07:50:55 +09:00
Timothy Jaeryang Baek 5c4fb61d86 refac 2026-10-30 07:15:50 +09:00
Timothy Jaeryang Baek 7618df3f53 refac 2026-10-30 07:08:28 +09:00
Timothy Jaeryang Baek 5546e3c655 refac 2026-10-29 18:00:54 +09:00
Timothy Jaeryang Baek 858c1e9665 chore: bump 2026-10-29 17:47:24 +09:00
Timothy Jaeryang Baek 44a9d499db refac 2026-10-29 17:39:31 +09:00
G30 722f71f2cc fix: the Available Tools window lists an OpenAPI tool server's tools (#33205) 2026-10-29 17:02:14 +09:00
Classic298 a59cab0aa9 perf: knowledge base changes slow down as the knowledge base grows (#33335)
Adding, updating or removing knowledge base files through the API sent back the metadata of every file in the knowledge base, and so did renaming a knowledge base or changing its access. These calls got slower as the knowledge base grew, so bulk ingestion through the API lost speed with every batch. Adding or updating files now returns only those files, while removing a file, renaming or changing access returns an empty files list. API clients that read the files list from these responses now get only the affected files; the full list stays available, paginated, from `GET /api/v1/knowledge/{id}/files`. Timings with a local mock embedding server that answers instantly, median of 5 runs (at 1,000 files the per-file work of a batch still hides the difference):

| Files already in the knowledge base | Call | Before | After | Response size before | Response size after |
|---|---|---|---|---|---|
| 1,000 | batch add of 100 files | 519 ms | 528 ms | 437 KB | 39 KB |
| 10,000 | batch add of 100 files | 679 ms | 476 ms | 4.0 MB | 39 KB |
| 10,000 | single file add | 184 ms | 36 ms | 4.0 MB | 0.6 KB |

Closes #31397
2026-10-29 17:00:29 +09:00
G30 893dbc9bd8 fix: a cleared Embedding Batch Size no longer breaks file processing (#33288) 2026-10-29 08:53:19 +09:00
Timothy Jaeryang Baek fdaa240d44 refac 2026-10-29 06:49:47 +09:00
Timothy Jaeryang Baek 360d81dfe8 refac 2026-10-29 06:32:47 +09:00
Timothy Jaeryang Baek 58536b6503 refac 2026-10-29 05:27:31 +09:00
Classic298 f1f0a194ae feat: choose the Mistral OCR model and pass extra OCR request options (#33333)
Mistral OCR always sent the mistral-ocr-latest model with no other request options, so admins could not stay on an older OCR model or send the model name a Mistral-compatible endpoint such as Azure AI Foundry expects. A new Parameters field under Admin Panel > Settings > Documents, shown when Mistral OCR is the extraction engine and also available as the MISTRAL_OCR_PARAMS environment variable, takes a JSON object that is merged into every OCR request: {"model": "mistral-ocr-2512"} replaces the default model, and any other field is sent to the OCR endpoint as given. It works the same with and without the Use Base64 switch, and when it is left empty the request is unchanged.

Closes #19707
2026-10-29 05:25:53 +09:00
Timothy Jaeryang Baek b34885efc6 refac 2026-10-28 10:02:45 +09:00
Classic298 a4247cfde9 refac: refuse a compressed body when fetching a remote URL (#33271)
Remote fetches now ask for an uncompressed response: web pages, documents, remote images, profile pictures from a login provider and webhook deliveries. A response that comes back compressed anyway is refused, except for a webhook reply, which is only logged and is left unread instead.

A page or file whose host echoes a stored `Content-Encoding` regardless of what the client asks for (an S3 or MinIO object uploaded with that metadata) is no longer read, and a profile picture that arrives that way falls back to the default avatar.
2026-10-28 06:27:00 +09:00
Timothy Jaeryang Baek 4a10c093ab refac 2026-10-26 18:54:49 +09:00
G30 02821c5058 fix: a model's Chats tab in Analytics follows the User group filter (#33207) 2026-10-26 17:27:32 +09:00
Timothy Jaeryang Baek 7b303cf496 refac 2026-10-26 07:24:36 +09:00
G30 ec83763f13 fix: the search dialog understands and suggests its tag:, folder:, pinned:, shared: and archived: filters again (#33181) 2026-10-25 16:28:17 -05:00
Timothy Jaeryang Baek 148d40561b chore: format 2026-10-25 16:14:58 +09:00
Timothy Jaeryang Baek 97650bbbea refac 2026-10-25 16:02:56 +09:00
Timothy Jaeryang Baek 08bfaa4be6 refac 2026-10-25 15:09:48 +09:00
Timothy Jaeryang Baek 5f95008abd refac 2026-10-25 14:20:56 +09:00
Timothy Jaeryang Baek 7f1b618727 refac 2026-10-25 13:59:14 +09:00
Timothy Jaeryang Baek f21eadbc1a refac 2026-10-25 08:33:40 +09:00
Classic298 d1776b18a3 refac: record chat messages under the signed-in user on save (#32872)
Chats that are created, imported or saved now record their incoming messages under the signed-in user.
2026-10-25 07:58:36 +09:00
Timothy Jaeryang Baek 74fb7a8c56 refac 2026-10-25 04:50:39 +09:00
Timothy Jaeryang Baek 2262073146 refac 2026-10-24 04:50:12 +09:00
Timothy Jaeryang Baek 82d6f230b4 refac 2026-10-23 10:57:12 +09:00
Classic298 a9adb2b78e perf: posting in a channel takes seconds when many members are online (#32889)
Every message posted in a channel waited until the server had re-checked the login of every online member of that channel, one connected session at a time with a few database lookups each, before the post went through. In a large channel that added seconds to every single message. The result only decides who gets a notification, and the message is already delivered to everyone before this step, so the check now runs right after the post returns, as the first step of the work that sends notifications and bot replies. Members are re-checked exactly as before, including disconnecting any session whose login is no longer valid.

Postgres 16, standard channel, median time for a post to return:

| Online members | Before | After |
| --- | --- | --- |
| 100 | 0.37 s | 0.03 s |
| 300 | 1.6 s | 0.05 s |
| 1,000 | 3.4 s | 0.10 s |
2026-10-22 07:48:19 +09:00
Classic298 cb7d7e851d fix: model import silently skips a model whose ID is already taken (#32866)
Importing a model JSON on the Workspace Models page as a regular user skipped any model whose ID already belonged to another user's model they cannot edit, or to a model from one of the instance's connections such as OpenAI or Ollama. There was no message, so the model just never showed up. The import now stops at that model with the error "Uh-oh! This model id is already registered. Please choose another model id string."; the models before it in the file are imported and the ones after it are not. Admins, and users who can edit the existing model, are unaffected and still overwrite it.
2026-10-22 06:12:10 +09:00