From 8bb3e2c1d5ca87563e4924c66ea0622694b10eb7 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Sun, 2 Aug 2026 16:03:57 +0800 Subject: [PATCH] fix(talk): satisfy Google tool owner contracts --- ui/src/pages/chat/realtime-talk-google-live-tools.ts | 8 ++++++-- ui/src/pages/chat/realtime-talk-shared.ts | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ui/src/pages/chat/realtime-talk-google-live-tools.ts b/ui/src/pages/chat/realtime-talk-google-live-tools.ts index 4da40ea5b847..92b788282c2e 100644 --- a/ui/src/pages/chat/realtime-talk-google-live-tools.ts +++ b/ui/src/pages/chat/realtime-talk-google-live-tools.ts @@ -145,7 +145,9 @@ export class GoogleLiveToolOwner { args: args ?? {}, signal: abortController.signal, emitTalkEvent: this.options.emitTalkEvent, - submit: (toolCallId, result) => this.submitResult(toolCallId, result), + submit: (toolCallId, result) => { + this.submitResult(toolCallId, result); + }, }); } finally { this.finishExecution(callId, abortController); @@ -183,7 +185,9 @@ export class GoogleLiveToolOwner { signal: abortController.signal, submitAbortResult: false, emitTalkEvent: this.options.emitTalkEvent, - submit: (toolCallId, result) => this.submitResult(toolCallId, result), + submit: (toolCallId, result) => { + this.submitResult(toolCallId, result); + }, }); } finally { this.finishExecution(callId, abortController); diff --git a/ui/src/pages/chat/realtime-talk-shared.ts b/ui/src/pages/chat/realtime-talk-shared.ts index 86ebb28b93a6..a0b543a03873 100644 --- a/ui/src/pages/chat/realtime-talk-shared.ts +++ b/ui/src/pages/chat/realtime-talk-shared.ts @@ -24,7 +24,7 @@ export type RealtimeTalkCallbacks = { onVideoError?: (error: unknown) => void; }; -type RealtimeTalkEventInput = { +export type RealtimeTalkEventInput = { type: RealtimeTalkEvent["type"]; payload?: TPayload; turnId?: string;