[GH-ISSUE #6461] "/clear" command is not clearing history #66101

Closed
opened 2026-05-03 23:58:31 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @devstefancho on GitHub (Aug 22, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/6461

What is the issue?

Ctrl + l is clearing history
but /clear command is not clearing history

https://github.com/user-attachments/assets/511ee922-9252-41d4-8b5f-ac324a75aaf1

OS

macOS

GPU

Apple

CPU

Apple

Ollama version

0.3.6

Originally created by @devstefancho on GitHub (Aug 22, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/6461 ### What is the issue? `Ctrl` + `l` is clearing history but `/clear` command is not clearing history https://github.com/user-attachments/assets/511ee922-9252-41d4-8b5f-ac324a75aaf1 ### OS macOS ### GPU Apple ### CPU Apple ### Ollama version 0.3.6
GiteaMirror added the bug label 2026-05-03 23:58:31 -05:00
Author
Owner

@rick-github commented on GitHub (Aug 22, 2024):

/clear affects the conversation history, it's not meant to clear the screen.

>>> how much does a cat weigh?
A cat weighs about 20-35 pounds (9.2-16.4 kilograms) depending on its breed, age and health condition. For example, if a tabby is 8 years old with no known medical issues, it could weigh around 30-40
pounds (12-15 kg).

>>> how about a dog?
A dog weighs between 60-70 pounds depending on breed and health condition. For example, if a Shih Tzu is 9 years old with no known medical issues, it could weigh around 80-90 pounds (36.5-42 kg). A
Labrador Retriever weighing 100 pounds could weigh around 175 pounds (75 kg) in good health conditions.

>>> /clear
Cleared session context
>>> how about a dog?
A dog, like any breed of pet, is an excellent companion for many people. Dogs are social animals who love to cuddle and play, making them perfect for families with children, seniors or other senior citizens.
<!-- gh-comment-id:2304515557 --> @rick-github commented on GitHub (Aug 22, 2024): `/clear` affects the conversation history, it's not meant to clear the screen. ``` >>> how much does a cat weigh? A cat weighs about 20-35 pounds (9.2-16.4 kilograms) depending on its breed, age and health condition. For example, if a tabby is 8 years old with no known medical issues, it could weigh around 30-40 pounds (12-15 kg). >>> how about a dog? A dog weighs between 60-70 pounds depending on breed and health condition. For example, if a Shih Tzu is 9 years old with no known medical issues, it could weigh around 80-90 pounds (36.5-42 kg). A Labrador Retriever weighing 100 pounds could weigh around 175 pounds (75 kg) in good health conditions. >>> /clear Cleared session context >>> how about a dog? A dog, like any breed of pet, is an excellent companion for many people. Dogs are social animals who love to cuddle and play, making them perfect for families with children, seniors or other senior citizens. ```
Author
Owner

@jmorganca commented on GitHub (Aug 22, 2024):

@rick-github thanks! this is correct. Will close this for now 😊

<!-- gh-comment-id:2305233134 --> @jmorganca commented on GitHub (Aug 22, 2024): @rick-github thanks! this is correct. Will close this for now 😊
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#66101