Add reset context button to Screen Assistant

This commit is contained in:
AkhilKonduru1 2026-03-17 17:49:29 +00:00
commit 38f45e9386
2 changed files with 24 additions and 0 deletions

View file

@ -1103,7 +1103,13 @@ class ScreenAssistantManager: NSObject, ObservableObject {
}
func clearChat() {
resetConversationContext()
}
func resetConversationContext() {
isLoading = false
chatMessages.removeAll()
clearAllFiles()
}
private func addAssistantMessage(_ content: String) {