Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

fix: persist AI enhancement CTA dismissal across sessions

Gabriel Steinbaa3b88bf242
diff --git a/CHANGELOG.md b/CHANGELOG.md
index b49ade8d9..224217877 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
+## [1.4.4] - 2026-02-08
+
+### Fixed
+- **AI Enhancement CTA Persistence**: Dismissing the "Enable AI Enhancement" banner now persists to localStorage so it stays hidden across sessions
+
+### Changed
+- **Code Cleanup**: Removed excess comments and section dividers in ControlPanel
+
## [1.4.3] - 2026-02-08
### Added
diff --git a/README.md b/README.md
index 7a5b82e99..7089aa5d5 100644
--- a/README.md
+++ b/README.md
@@ -639,7 +639,7 @@ A: OpenWhispr supports 58 languages including English, Spanish, French, German,
## Project Status
-OpenWhispr is actively maintained and ready for production use. Current version: 1.4.3
+OpenWhispr is actively maintained and ready for production use. Current version: 1.4.4
- ✅ Core functionality complete
- ✅ Cross-platform support (macOS, Windows, Linux)
diff --git a/package-lock.json b/package-lock.json
index 0242e4053..623afee68 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "open-whispr",
- "version": "1.4.3",
+ "version": "1.4.4",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "open-whispr",
- "version": "1.4.3",
+ "version": "1.4.4",
"hasInstallScript": true,
"license": "MIT",
"dependencies": {
diff --git a/package.json b/package.json
index ee5db9067..19da25b14 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "open-whispr",
- "version": "1.4.3",
+ "version": "1.4.4",
"description": "A desktop dictation application using whisper.cpp for speech-to-text transcription",
"main": "main.js",
"private": true,
diff --git a/src/components/ControlPanel.tsx b/src/components/ControlPanel.tsx
index 687cfcfc9..4c0c9f958 100644
--- a/src/components/ControlPanel.tsx
+++ b/src/components/ControlPanel.tsx
@@ -40,7 +40,9 @@ export default function ControlPanel() {
const [limitData, setLimitData] = useState<{ wordsUsed: number; limit: number } | null>(null);
const hasShownUpgradePrompt = useRef(false);
const [settingsSection, setSettingsSection] = useState<SettingsSectionType | undefined>();
- const [aiCTADismissed, setAiCTADismissed] = useState(false);
+ const [aiCTADismissed, setAiCTADismissed] = useState(
+ () => localStorage.getItem("aiCTADismissed") === "true"
+ );
const [showCloudMigrationBanner, setShowCloudMigrationBanner] = useState(false);
const cloudMigrationProcessed = useRef(false);
const { hotkey } = useHotkey();
@@ -48,7 +50,6 @@ export default function ControlPanel() {
const { useReasoningModel, setUseLocalWhisper, setCloudTranscriptionMode } = useSettings();
const { isSignedIn, isLoaded: authLoaded } = useAuth();
- // Use centralized updater hook to prevent EventEmitter memory leaks
const {
status: updateStatus,
downloadProgress,
@@ -72,7 +73,6 @@ export default function ControlPanel() {
loadTranscriptions();
}, []);
- // Show toast when update is ready
useEffect(() => {
if (updateStatus.updateDownloaded && !isDownloading) {
toast({
@@ -83,7 +83,6 @@ export default function ControlPanel() {
}
}, [updateStatus.updateDownloaded, isDownloading, toast]);
- // Show toast on update error
useEffect(() => {
if (updateError) {
toast({
@@ -94,11 +93,9 @@ export default function ControlPanel() {
}
}, [updateError, toast]);
- // Listen for limit-reached events from the dictation overlay
useEffect(() => {
const dispose = window.electronAPI?.onLimitReached?.(
(data: { wordsUsed: number; limit: number }) => {
- // Show dialog only once per session, then show toast for subsequent hits
if (!hasShownUpgradePrompt.current) {
hasShownUpgradePrompt.current = true;
setLimitData(data);
@@ -118,7 +115,6 @@ export default function ControlPanel() {
};
}, [toast]);
- // Switch existing users to OpenWhispr Cloud after account creation
useEffect(() => {
if (!authLoaded || !isSignedIn || cloudMigrationProcessed.current) return;
const isPending = localStorage.getItem("pendingCloudMigration") === "true";
@@ -218,7 +214,6 @@ export default function ControlPanel() {
const handleUpdateClick = async () => {
if (updateStatus.updateDownloaded) {
- // Show confirmation dialog before installing
showConfirmDialog({
title: "Install Update",
description:
@@ -236,7 +231,6 @@ export default function ControlPanel() {
},
});
} else if (updateStatus.updateAvailable && !isDownloading) {
- // Start download
try {
await downloadUpdate();
} catch (error) {
@@ -314,7 +308,6 @@ export default function ControlPanel() {
<TitleBar
actions={
<>
- {/* Update button */}
{!updateStatus.isDevelopment &&
(updateStatus.updateAvailable ||
updateStatus.updateDownloaded ||
@@ -355,10 +348,8 @@ export default function ControlPanel() {
initialSection={settingsSection}
/>
- {/* Main content */}
<div className="p-4">
<div className="max-w-3xl mx-auto">
- {/* Header row */}
<div className="flex items-center justify-between mb-3 px-1">
<div className="flex items-center gap-2">
<FileText size={14} className="text-primary" />
@@ -382,7 +373,6 @@ export default function ControlPanel() {
)}
</div>
- {/* Cloud Migration Notice */}
{showCloudMigrationBanner && (
<div className="mb-3 relative rounded-lg border border-primary/20 bg-primary/5 dark:bg-primary/10 p-3">
<button
@@ -425,11 +415,13 @@ export default function ControlPanel() {
</div>
)}
- {/* AI Enhancement CTA */}
{!useReasoningModel && !aiCTADismissed && (
<div className="mb-3 relative rounded-lg border border-primary/20 bg-primary/5 dark:bg-primary/10 p-3">
<button
- onClick={() => setAiCTADismissed(true)}
+ onClick={() => {
+ localStorage.setItem("aiCTADismissed", "true");
+ setAiCTADismissed(true);
+ }}
className="absolute top-2 right-2 p-1 rounded-sm text-muted-foreground hover:text-foreground hover:bg-black/5 dark:hover:bg-white/5 transition-colors"
>
<X size={14} />
@@ -461,7 +453,6 @@ export default function ControlPanel() {
</div>
)}
- {/* Content area */}
<div className="rounded-lg border border-border bg-card/50 dark:bg-card/30 backdrop-blur-sm">
{isLoading ? (
<div className="flex items-center justify-center gap-2 py-8">