mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
Add reset context button to Screen Assistant
This commit is contained in:
parent
5b2f88c4c6
commit
38f45e9386
2 changed files with 24 additions and 0 deletions
|
|
@ -203,6 +203,24 @@ struct ChatMessagesView: View {
|
|||
.foregroundColor(.primary)
|
||||
|
||||
Spacer()
|
||||
|
||||
Button(action: {
|
||||
screenAssistantManager.resetConversationContext()
|
||||
}) {
|
||||
HStack(spacing: 6) {
|
||||
Image(systemName: "arrow.counterclockwise")
|
||||
.font(.caption)
|
||||
Text("Reset Context")
|
||||
.font(.caption)
|
||||
}
|
||||
.foregroundColor(.secondary)
|
||||
.padding(.horizontal, 8)
|
||||
.padding(.vertical, 5)
|
||||
.background(Color.gray.opacity(0.12))
|
||||
.cornerRadius(8)
|
||||
}
|
||||
.buttonStyle(PlainButtonStyle())
|
||||
.help("Clear conversation and attachments")
|
||||
|
||||
Button(action: {
|
||||
screenAssistantManager.closePanels()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue