issue: "Enforce Temporary Chat" not working #5846

Closed
opened 2025-11-11 16:35:42 -06:00 by GiteaMirror · 7 comments
Owner

Originally created by @lowlyocean on GitHub (Jul 23, 2025).

Check Existing Issues

  • I have searched the existing issues and discussions.
  • I am using the latest version of Open WebUI.

Installation Method

Docker

Open WebUI Version

0.6.18

Ollama Version (if applicable)

No response

Operating System

docker

Browser (if applicable)

No response

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided every relevant configuration, setting, and environment variable used in my setup.
  • I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
  • I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
  • Start with the initial platform/version/OS and dependencies used,
  • Specify exact install/launch/configure commands,
  • List URLs visited, user input (incl. example values/emails/passwords if needed),
  • Describe all options and toggles enabled or changed,
  • Include any files or environmental changes,
  • Identify the expected and actual result at each stage,
  • Ensure any reasonably skilled user can follow and hit the same issue.

Expected Behavior

No chat should be saved for the user, when the Enforce Temporary Chat is toggled On and the USER_PERMISSIONS_CHAT_TEMPORARY_ENFORCED environment variable is set to true

Actual Behavior

All chats for that user are being saved, instead of being temporary

Steps to Reproduce

  1. Enforce Temporary Chat is toggled On and the USER_PERMISSIONS_CHAT_TEMPORARY_ENFORCED environment variable is set to true
  2. Login and notice that you're not in a temporary chat. Any time you hit "new chat", you're also not in a temporary chat

Logs & Screenshots

Image

Additional Information

No response

Originally created by @lowlyocean on GitHub (Jul 23, 2025). ### Check Existing Issues - [x] I have searched the existing issues and discussions. - [x] I am using the latest version of Open WebUI. ### Installation Method Docker ### Open WebUI Version 0.6.18 ### Ollama Version (if applicable) _No response_ ### Operating System docker ### Browser (if applicable) _No response_ ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have **provided every relevant configuration, setting, and environment variable used in my setup.** - [x] I have clearly **listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup** (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc). - [x] I have documented **step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation**. My steps: - Start with the initial platform/version/OS and dependencies used, - Specify exact install/launch/configure commands, - List URLs visited, user input (incl. example values/emails/passwords if needed), - Describe all options and toggles enabled or changed, - Include any files or environmental changes, - Identify the expected and actual result at each stage, - Ensure any reasonably skilled user can follow and hit the same issue. ### Expected Behavior No chat should be saved for the user, when the Enforce Temporary Chat is toggled On and the USER_PERMISSIONS_CHAT_TEMPORARY_ENFORCED environment variable is set to true ### Actual Behavior All chats for that user are being saved, instead of being temporary ### Steps to Reproduce 1) Enforce Temporary Chat is toggled On and the USER_PERMISSIONS_CHAT_TEMPORARY_ENFORCED environment variable is set to true 2) Login and notice that you're not in a temporary chat. Any time you hit "new chat", you're also not in a temporary chat ### Logs & Screenshots <img width="485" height="65" alt="Image" src="https://github.com/user-attachments/assets/a50fb9a4-1cd8-4a2a-8f4d-054e4a18d534" /> ### Additional Information _No response_
GiteaMirror added the bug label 2025-11-11 16:35:42 -06:00
Author
Owner

@Classic298 commented on GitHub (Jul 23, 2025):

Did you delete the cache?
Did you set this setting for all users or just a specific user group?
If the latter, ensure the user is in that group.
Did you test from a (test) user's account or admin?

Need more specific steps to reproduce.

@Classic298 commented on GitHub (Jul 23, 2025): Did you delete the cache? Did you set this setting for all users or just a specific user group? If the latter, ensure the user is in that group. Did you test from a (test) user's account or admin? Need more specific steps to reproduce.
Author
Owner

@lowlyocean commented on GitHub (Jul 23, 2025):

Just tried again making sure to refresh with browser cache disabled.
I'm applying to specific user group, AND it's also the default for new users with "user" role.
I put all users into this specific user group.
The user I'm trying as admin, but since the admin is in that group, it should behave as expected.

@lowlyocean commented on GitHub (Jul 23, 2025): Just tried again making sure to refresh with browser cache disabled. I'm applying to specific user group, AND it's also the default for new users with "user" role. I put all users into this specific user group. The user I'm trying as admin, but since the admin is in that group, it should behave as expected.
Author
Owner

@rgaricano commented on GitHub (Jul 23, 2025):

Enforce Temporary Chat doesn't apply to admins, only Temporary Chat:

https://github.com/open-webui/open-webui/blob/5fbfe2bdcadf5f157926f6551891e4dc0802b9f3/src/routes/(app)/%2Blayout.svelte#L220-L228

Scenarios Admin Role permissions.chat.temporary temporary_enforced URL Parameter Result (Chat Temporal)
1 admin any value - true activate
2 admin any value - false no activate
3 user true - true activate
4 user true true true/false activate (enforced)
5 user true false true activate
6 user true false false no activate
7 user false - true no activate
8 user false true - activate (enforced)
9 user false false - no activate
@rgaricano commented on GitHub (Jul 23, 2025): Enforce Temporary Chat doesn't apply to admins, only Temporary Chat: https://github.com/open-webui/open-webui/blob/5fbfe2bdcadf5f157926f6551891e4dc0802b9f3/src/routes/(app)/%2Blayout.svelte#L220-L228 | **Scenarios** | **Admin Role** | **permissions.chat.temporary** | **temporary_enforced** | **URL Parameter** | **Result (Chat Temporal)** ---|------------------|------------------------------------|------------------------|-------------------|------------------------------ 1 | admin | any value | - | true | activate 2 | admin |any value | - | false | no activate 3 | user | true | - | true | activate 4 | user | true | true | true/false | activate (enforced) 5 | user | true | false | true | activate 6 | user | true | false | false | no activate 7 | user | false | - | true | no activate 8 | user | false | true | - | activate (enforced) 9 | user | false | false | - | no activate
Author
Owner

@lowlyocean commented on GitHub (Jul 23, 2025):

Something changed here in recent versions, it seems. Previously, I was able to disable temporary chats even as Admin without needing to pass URL parameter explicitly

@lowlyocean commented on GitHub (Jul 23, 2025): Something changed here in recent versions, it seems. Previously, I was able to disable temporary chats even as Admin without needing to pass URL parameter explicitly
Author
Owner

@tjbck commented on GitHub (Jul 24, 2025):

@rgaricano is correct here.

@tjbck commented on GitHub (Jul 24, 2025): @rgaricano is correct here.
Author
Owner

@lowlyocean commented on GitHub (Jul 24, 2025):

What is the recommended way to have Admin have temporary chats by default? Bookmarking with the URL parameter is the only way? That doesn't get preserved between expired login sessions. Does a redundant non-admin user account need to be created (i.e. need to have a 2nd email account)?

@lowlyocean commented on GitHub (Jul 24, 2025): What is the recommended way to have Admin have temporary chats by default? Bookmarking with the URL parameter is the only way? That doesn't get preserved between expired login sessions. Does a redundant non-admin user account need to be created (i.e. need to have a 2nd email account)?
Author
Owner

@rgaricano commented on GitHub (Jul 24, 2025):

URL parameter "temporary-chat" it's just the same that the switch temporary chat in models dropdown list!

@rgaricano commented on GitHub (Jul 24, 2025): URL parameter "temporary-chat" it's just the same that the switch temporary chat in models dropdown list!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#5846