Show interrupt as a stop symbol beside play and pause
This commit is contained in:
@@ -624,14 +624,17 @@ struct ComposerView: View {
|
||||
|
||||
private func actions(_ sessionId: String?, running: Bool, paused: Bool) -> some View {
|
||||
HStack(spacing: 8) {
|
||||
Button("Interrupt") {
|
||||
Button {
|
||||
if let sessionId {
|
||||
chat.interrupt(sessionId, overlays)
|
||||
}
|
||||
} label: {
|
||||
Image(systemName: "stop.fill")
|
||||
.frame(width: 14, height: 14)
|
||||
}
|
||||
.buttonStyle(WebButtonStyle(danger: true))
|
||||
.disabled(!running)
|
||||
.fixedSize()
|
||||
.help("Interrupt the agent's turn")
|
||||
if case .task = chat.kind, !chat.team, !chat.closed {
|
||||
Button {
|
||||
if let sessionId {
|
||||
|
||||
Reference in New Issue
Block a user