Skip to content

Conversation

@maliayas
Copy link
Contributor

When a user runs /clear to clear chat history and then switches to a different chat mode (e.g., /ask, /code, /architect), the cleared history was being restored from the chat history file, effectively undoing the /clear command.

Fix by setting restore_chat_history=False when creating a new coder from an existing one. This ensures the new coder respects the current chat state (including cleared history) rather than reloading from disk.

The chat history file restoration should only happen on initial startup, not when switching between chat modes within the same session.

When a user runs /clear to clear chat history and then switches to a
different chat mode (e.g., /ask, /code, /architect), the cleared history
was being restored from the chat history file, effectively undoing the
/clear command.

Fix by setting restore_chat_history=False when creating a new coder
from an existing one. This ensures the new coder respects the current
chat state (including cleared history) rather than reloading from disk.

The chat history file restoration should only happen on initial startup,
not when switching between chat modes within the same session.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant