* fix: apply the document archive size guard to every zip file, not just named extensions
The decompression-bomb guard in the document loader only ran when the
filename extension or the declared content type matched a fixed list, so
an office archive renamed to a legacy or unknown extension (for example
an .xlsx saved as .xls, .bin, or served from a URL with no extension)
skipped the check entirely and was fully inflated in the worker. The
guard now detects zip archives by content and checks every one of them,
while non-archive files keep the previous behavior.
* refac: identify loader archives by content
The document loader now recognises archives by their content when checking their size.
Turning Temporary Chat on or off on a folder's page, with the button at the top or with /temporary, sent you to the home page. The next chat was then not saved in the folder and did not get the folder's system prompt, default model or knowledge. You now stay on the folder page and only Temporary Chat switches.
Fixes#33448
* i18n: improve Latvian (lv-LV) translations
* i18n: lv-LV follow-up - Select → atlasīt, Claim → prasījums
- Select → Atlasiet/atlasīt in 118 strings (Choose keeps Izvēlieties)
- OAuth/OIDC Claim → prasījums in 15 strings
- no "tad" in "tikai, ja" (2 strings)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* i18n: lv-LV - ", pat kad" instead of "arī tad, kad" (even while)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* i18n: lv-LV - ", pat ja" instead of ", pat kad"
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Prompts could use the user's name and email but not their role, so role-aware system prompts needed a custom Filter function. Model system prompts, the user's own system prompt, saved prompts used with a slash command and chat requests through the API now replace {{USER_ROLE}} with the role, such as admin or user. Requested in #4765.