Adds user notification for ongoing timed prompts

Prevents multiple simultaneous timed prompt generations by displaying a notice when an operation is already in progress

Improves user experience by providing clear feedback during concurrent prompt generation attempts
This commit is contained in:
AlexKucera committed 2025-10-24 11:18:29 +02:00
1 parent c06afe7a4a
commit 6875a7c06c
1 file changed
+1
+1
View File
@@ -18,6 +18,7 @@ export class TimedPromptsCommand {
async execute(settings: FreewritingPromptsSettings): Promise<void> { async execute(settings: FreewritingPromptsSettings): Promise<void> {
// Check if already in progress to prevent race conditions // Check if already in progress to prevent race conditions
if (this.inProgress) { if (this.inProgress) {
new Notice('Timed prompts are already being generated. Please wait.');
return; return;
} }