[GH-ISSUE #14313] OLLAMA_NOHISTORY Support in GUI #9314

Open
opened 2026-04-12 22:10:40 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @Justinius on GitHub (Feb 18, 2026).
Original GitHub issue: https://github.com/ollama/ollama/issues/14313

The GUI saves chat to the database and attachments to a different table.

The OLLAMA_NOHISTORY variable doesn't seem to have an effect on this.

To balance the good functionality of the gui with the need for disabling logging in certain environments, could the GUI delete the contents of the database in the following conditons?

  1. When starting a new chat, delete the old chat
  2. When closing/re-opening the gui delete chat
  3. When shutting down/starting ollama.

That would ensure that nothing is on disk when not actively being used.

Originally created by @Justinius on GitHub (Feb 18, 2026). Original GitHub issue: https://github.com/ollama/ollama/issues/14313 The GUI saves chat to the database and attachments to a different table. The OLLAMA_NOHISTORY variable doesn't seem to have an effect on this. To balance the good functionality of the gui with the need for disabling logging in certain environments, could the GUI delete the contents of the database in the following conditons? 1) When starting a new chat, delete the old chat 2) When closing/re-opening the gui delete chat 3) When shutting down/starting ollama. That would ensure that nothing is on disk when not actively being used.
GiteaMirror added the appfeature request labels 2026-04-12 22:10:40 -05:00
Author
Owner

@Justinius commented on GitHub (Feb 19, 2026):

Discussed this with colleague. Keeping this under OLLAMA_NOHISTORY breaks the semantics of that variable, so maybe it should be a new setting still deployable with env vars.

So the existing could still be for cli, and the new one would be gui specific.

<!-- gh-comment-id:3928151690 --> @Justinius commented on GitHub (Feb 19, 2026): Discussed this with colleague. Keeping this under OLLAMA_NOHISTORY breaks the semantics of that variable, so maybe it should be a new setting still deployable with env vars. So the existing could still be for cli, and the new one would be gui specific.
Author
Owner

@samanebi commented on GitHub (Feb 19, 2026):

Hi . I opened a new PR for this issue . I would be happy if you take a look at it @Justinius

<!-- gh-comment-id:3929486711 --> @samanebi commented on GitHub (Feb 19, 2026): Hi . I opened a new PR for this issue . I would be happy if you take a look at it @Justinius
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#9314