fix(voice): sync voice-originated pipeline turns to the chat window
A learn-intent conversation driven entirely by voice never reached ObjectiveValidationCard: the chat window's Zustand store lives in its own isolated renderer process and only ever updated from its own direct sessions:route-message calls, never from voice-turn results handled in the main process. A user doing everything by voice could never see or confirm their objective. The main process now opens the chat window and broadcasts the voice turn (reply/ready/draft) to it whenever intent is 'learn'; the chat window's store applies it the same way it applies its own responses. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
ef0015fc2b
commit
4b45c4a644
Vendored
+1
@@ -31,6 +31,7 @@ export interface ForgeAvatarApi {
|
||||
onProactiveSpeech: (callback: (audio: ArrayBuffer) => void) => () => void
|
||||
onChatWindowClosed: (callback: () => void) => () => void
|
||||
onSessionStatusChanged: (callback: (status: SessionStatus) => void) => () => void
|
||||
onVoiceTurnSynced: (callback: (result: RouteMessageResponse) => void) => () => void
|
||||
onUpdateAvailable: (callback: () => void) => () => void
|
||||
onUpdateReady: (callback: () => void) => () => void
|
||||
login: (email: string, password: string) => Promise<LoginResult>
|
||||
|
||||
Reference in New Issue
Block a user