feat: add system tools and state updates

This commit is contained in:
Xin Wang
2026-08-04 15:27:39 +08:00
parent 5bf5987fe4
commit 731a372df9
33 changed files with 1787 additions and 124 deletions
+2
View File
@@ -612,6 +612,8 @@ export function useVoicePreview(
onNodeActiveRef.current?.(msg.nodeId);
} else if (msg.type === "workflow-variables") {
setSessionVariables(publicVariableSnapshot(msg.variables));
} else if (msg.type === "session-variables") {
setSessionVariables(publicVariableSnapshot(msg.variables));
} else if (msg.type === "call-ended") {
endedByServerRef.current = true;
setCallEnded(true);