[GH-ISSUE #3937] `/load` with no parameters to clear chat context #28200

Closed
opened 2026-04-22 06:05:50 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @renauddetry on GitHub (Apr 26, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/3937

It would be fantastic to have a command that clears a chat's context.

At the moment, getting a fresh context can be done with

  • /bye, then starting the client again. Few keystrokes, but long wait time for the model to be reloaded.
  • /load <model>, where <model> is the name of the most recently loaded model. Fast (same model stays in memory), but many keystrokes, especially with non-latest models.

As discussed here, it would be great to add a /load command (no parameters) which has the same effect as /load <most recent model>.

Thank you for ollama, it's awesome!

Originally created by @renauddetry on GitHub (Apr 26, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/3937 It would be fantastic to have a command that clears a chat's context. At the moment, getting a fresh context can be done with - ``/bye``, then starting the client again. Few keystrokes, but long wait time for the model to be reloaded. - ``/load <model>``, where ``<model>`` is the name of the most recently loaded model. Fast (same model stays in memory), but many keystrokes, especially with non-latest models. As discussed [here](https://github.com/ollama/ollama/issues/1751), it would be great to add a ``/load`` command (no parameters) which has the same effect as ``/load <most recent model>``. Thank you for ollama, it's awesome!
GiteaMirror added the feature request label 2026-04-22 06:05:50 -05:00
Author
Owner

@brycereitano commented on GitHub (Apr 26, 2024):

I had a desire for something like this as well. What about a command /clear that removes your chat history, or are you wanting it to keep the initial session info that could be saved in the modelfile?

<!-- gh-comment-id:2079499287 --> @brycereitano commented on GitHub (Apr 26, 2024): I had a desire for something like this as well. What about a command `/clear` that removes your chat history, or are you wanting it to keep the initial session info that could be saved in the modelfile?
Author
Owner

@renauddetry commented on GitHub (Apr 26, 2024):

For my use, /clear that removes chat history is perfect! Many thanks!

<!-- gh-comment-id:2079582241 --> @renauddetry commented on GitHub (Apr 26, 2024): For my use, /clear that removes chat history is perfect! Many thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#28200