feat: new drafts feature and sound spam fix #174

Merged
naomi merged 3 commits from fix/drafts into main 2026-02-27 15:07:10 -08:00
Showing only changes of commit 0752ab7995 - Show all commits
+5 -1
View File
@@ -282,7 +282,11 @@ export async function initializeTauriListeners() {
const previousState = conv.characterState;
// New response starting — clear all per-task sound flags.
if (mappedState === "thinking") {
// Only reset when entering from a clean-slate state, not mid-task.
// Transitioning from coding/searching/mcp/typing → thinking means we're
// still within the same task (between tool calls), so the sound must not replay.
const cleanSlateStates: CharacterState[] = ["idle", "success", "error"];
if (mappedState === "thinking" && cleanSlateStates.includes(previousState)) {
claudeStore.resetSoundState(resolvedConversationId);
}