Skip to content

The open-source AI voice studio. Clone, dictate, create.

Adds a trash icon button alongside the existing retry button for failed generations, giving users a way to clean up failed entries without having to retry them first.

Lior Shahverdi12ed2d51ce53
diff --git a/app/src/components/History/HistoryTable.tsx b/app/src/components/History/HistoryTable.tsx
index e88c7701..914c7fcb 100644
--- a/app/src/components/History/HistoryTable.tsx
+++ b/app/src/components/History/HistoryTable.tsx
@@ -569,15 +569,27 @@ export function HistoryTable() {
)}
{isFailed ? (
- <Button
- variant="ghost"
- size="icon"
- className="h-6 w-6 text-muted-foreground/50 hover:bg-muted-foreground/20 hover:text-muted-foreground"
- aria-label="Retry generation"
- onClick={() => handleRetry(gen.id)}
- >
- <RotateCcw className="h-2 w-2" />
- </Button>
+ <>
+ <Button
+ variant="ghost"
+ size="icon"
+ className="h-6 w-6 text-muted-foreground/50 hover:bg-muted-foreground/20 hover:text-muted-foreground"
+ aria-label="Retry generation"
+ onClick={() => handleRetry(gen.id)}
+ >
+ <RotateCcw className="h-2 w-2" />
+ </Button>
+ <Button
+ variant="ghost"
+ size="icon"
+ className="h-6 w-6 text-muted-foreground/50 hover:bg-muted-foreground/20 hover:text-muted-foreground"
+ aria-label="Delete generation"
+ disabled={deleteGeneration.isPending}
+ onClick={() => handleDeleteClick(gen.id, gen.profile_name)}
+ >
+ <Trash2 className="h-2 w-2" />
+ </Button>
+ </>
) : (
<>
<DropdownMenu>
diff --git a/tauri/src-tauri/Cargo.lock b/tauri/src-tauri/Cargo.lock
index b133dfc8..194314de 100644
--- a/tauri/src-tauri/Cargo.lock
+++ b/tauri/src-tauri/Cargo.lock
@@ -5041,7 +5041,7 @@ checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
[[package]]
name = "voicebox"
-version = "0.2.3"
+version = "0.3.1"
dependencies = [
"base64 0.22.1",
"core-foundation-sys",