Show interrupt as a stop symbol beside play and pause

This commit is contained in:
Ian Gulliver
2026-10-22 22:35:54 -07:00
parent 11e21bcf18
commit 522c903344
+5 -2
View File
@@ -624,14 +624,17 @@ struct ComposerView: View {
private func actions(_ sessionId: String?, running: Bool, paused: Bool) -> some View { private func actions(_ sessionId: String?, running: Bool, paused: Bool) -> some View {
HStack(spacing: 8) { HStack(spacing: 8) {
Button("Interrupt") { Button {
if let sessionId { if let sessionId {
chat.interrupt(sessionId, overlays) chat.interrupt(sessionId, overlays)
} }
} label: {
Image(systemName: "stop.fill")
.frame(width: 14, height: 14)
} }
.buttonStyle(WebButtonStyle(danger: true)) .buttonStyle(WebButtonStyle(danger: true))
.disabled(!running) .disabled(!running)
.fixedSize() .help("Interrupt the agent's turn")
if case .task = chat.kind, !chat.team, !chat.closed { if case .task = chat.kind, !chat.team, !chat.closed {
Button { Button {
if let sessionId { if let sessionId {