Skip to content

Commit 4b49fca

Browse files
winreyclaude
andcommitted
feat: add clear all actions button to Actions tab
Stale actions accumulate when permissions are handled directly in Claude Code rather than through Bobber UI. Add a trash button to clear all pending actions at once. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a407519 commit 4b49fca

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

‎Sources/Bobber/Services/SessionManager.swift‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,10 @@ class SessionManager: ObservableObject {
213213
pendingActions.removeAll { $0.id == actionId }
214214
}
215215

216+
func clearAllActions() {
217+
pendingActions.removeAll()
218+
}
219+
216220
func cleanupSessions() {
217221
let now = Date()
218222
for i in sessions.indices {

‎Sources/Bobber/UI/ActionsListView.swift‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,15 @@ struct ActionsListView: View {
3131
}
3232
Spacer()
3333
HStack(spacing: 12) {
34+
Button(action: {
35+
sessionManager.clearAllActions()
36+
currentIndex = 0
37+
}) {
38+
Image(systemName: "trash")
39+
.foregroundColor(.secondary)
40+
}
41+
.buttonStyle(.plain)
42+
.help("Clear all actions")
3443
Button(action: { navigate(-1) }) {
3544
Image(systemName: "chevron.left")
3645
}

0 commit comments

Comments
 (0)