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 {
|
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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user