fix: only reset task-start sound on new user message, not between tool calls
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m12s
CI / Lint & Test (pull_request) Successful in 17m0s
CI / Build Linux (pull_request) Successful in 20m14s
CI / Build Windows (cross-compile) (pull_request) Successful in 30m2s

This commit is contained in:
2026-02-27 13:50:52 -08:00
committed by Naomi Carrigan
parent a42985986d
commit 0752ab7995
+5 -1
View File
@@ -282,7 +282,11 @@ export async function initializeTauriListeners() {
const previousState = conv.characterState; const previousState = conv.characterState;
// New response starting — clear all per-task sound flags. // 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); claudeStore.resetSoundState(resolvedConversationId);
} }