generated from nhcarrigan/template
feat: new drafts feature and sound spam fix #174
+5
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user