generated from nhcarrigan/template
fix: only reset task-start sound on new user message, not between tool calls
This commit is contained in:
+5
-1
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user