Sub-agents could only be switched on or off for the whole instance, so once they were on every user could spawn them and an admin had no way to keep the extra model usage to a pilot group. The user permissions now have a Sub-agents switch under Features, both in the default permissions and in each group, next to Memories and working the same way. Users without the permission no longer get the sub-agent tool in their chats, nor the timer tool that is part of the same feature. Admins are not restricted by it, and with sub-agents off in Admin Settings nobody gets them, admins included. The permission is on by default, so existing instances behave as before until an admin turns it off; the default can also be set with the USER_PERMISSIONS_FEATURES_SUBAGENTS environment variable.
Closes#34038
With the embedding model set to a folder on disk (for example RAG_EMBEDDING_MODEL=/app/backend/models/MiniLM-embedding), every Save in Admin Settings > Documents showed "Model filesystem path detected. Model shortname is required for update, cannot continue.", although the model loads and works. The embedding model's own update button refused the path the same way. A model folder now saves and updates like a model name.
Fixes#33977
* 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.
Workspace tools could only be enabled per model, so every model had to be edited to get a tool auto-enabled in new chats. The Model Defaults section in the admin Models settings now has a Tools picker. Models without their own tool list start new chats with those tools enabled; models with their own list keep it.
Email addresses with non-ASCII characters before the @ (internationalized addresses per RFC 6531) were blocked by the browser's own email field check, so the admin account and new users could not be created with them. The email fields on the sign-up page and in the add and edit user dialogs now accept them and still show the email keyboard on mobile. The server already accepted these addresses, so no backend change is needed.
Fixes#33681