With an Open Terminal running on Windows, asking the model to edit an image stored on the terminal failed with a 404, because a path such as C:\Users\user\photo.jpg was treated as a link instead of a terminal file. Starting a video from a terminal image failed the same way. Both now read Windows paths, written with forward or back slashes, from the terminal just like Linux and macOS paths. Links, data URLs and files uploaded to Open WebUI work as before.
Fixes#34719
When the model searched knowledge, chat or skill files with an escaped character such as Art\. 40, \(note\) or \$100, the search took the backslash literally and came back empty even though the text was there. A backslash in front of a regex special character now marks the pattern as a regex, so these searches find the text. Searches without a backslash, like C++, 1.5 or $100, still match exactly what was typed.
Fixes#33933
* feat: optional size limit for chat history tool results
Reading a long earlier chat through the Chat History tools could return far more text than a model's context window holds, so the next request failed. Admins can now set VIEW_CHAT_MAX_CHARS to cap what is returned. The newest messages are kept, older ones are dropped, and the result says it was cut and how many messages came back. Unset keeps the full chat as before.
Fixes#33608
* feat: set the chat read limit from the admin settings
The limit on how much of an earlier chat a model can read could only be set with an environment variable. It is now a Chat Read Limit field in Admin Settings under General, next to the skill limits. The environment variable still works as the starting value, and the setting saved in the panel takes precedence.
* fix: chat read limit failing on chats with empty or non-text messages
With a chat read limit set, reading an imported chat that held empty or non-text message content ended in an error instead of the chat. Such content is now counted and cut as plain text.
The built-in tool for creating automations showed its example schedules with a literal backslash-n between the start time and the rule. Models copied that, and the schedule was rejected with an "Invalid RRULE" error, so they retried until they happened to write it differently. The examples now show a real line break, which is what the schedule parser expects.
Fixes#33730
Asking for a line range (for example the whole file by its last line number) returned every requested line, however large, so one tool call could exceed the model's context window and fail the chat. Line ranges now stop at the last whole line that fits the same limit as character reads, and report where to continue from.
Fixes#33607
The view_file and view_knowledge_file built-in tools let a model ask for a start and end line, but passing only the end line did nothing: the tool returned the first block of characters and dropped the end line without a word. Models that asked for "up to line N" kept getting the same opening slice and no error, so they retried the call over and over. An end line on its own now reads from line 1 up to that line, the same result as passing start line 1 explicitly.
Fixes#33100
When a model reads a file or knowledge-base file in pages with line numbers turned on, the position it was told to continue from pointed past the end of the previous page, so a chunk of text between pages was silently skipped and never returned. The gap grew with every page, dropping a few percent of a large file. Reading now continues from the right place and returns every character exactly once; paging with line numbers off is unchanged.
Fixes#33099
When a model sent the ask_user questions as anything other than a list, for example a JSON-encoded string, the tool answered "ask_user requires 1-3 questions." The model had sent the right number of questions, so it did not understand the error and often repeated the same call in a loop. It now gets a separate error saying the questions must be an array of question objects, and the count error only appears when the count is actually wrong.
Fixes#32662
Clicking the title of a citation from an external knowledge base (Qdrant, Milvus, pgvector), or its Content link, opened a link to a file inside Open WebUI that does not exist, so the browser showed a not found error. These results are no longer treated as uploaded files, so when the citation's source is a web address both links open that page, and otherwise the title is plain text. This works whether or not the model uses native tool calling.
Fixes https://github.com/open-webui/open-webui/issues/32231