File tree Expand file tree Collapse file tree
slack/src/monitor/message-handler Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 type AcpRuntimeTurn ,
1010} from "../runtime-api.js" ;
1111import { OPENCLAW_ACPX_LEASE_ID_ARG , OPENCLAW_GATEWAY_INSTANCE_ID_ARG } from "./process-lease.js" ;
12- import { AcpxRuntime , testing } from "./runtime.js" ;
12+ import { AcpxRuntime , testing , type AcpSessionStore } from "./runtime.js" ;
1313
1414type TestSessionStore = {
1515 load ( sessionId : string ) : Promise < Record < string , unknown > | undefined > ;
@@ -55,7 +55,7 @@ function makeRuntime(
5555 const runtime = new AcpxRuntime (
5656 {
5757 cwd : "/tmp" ,
58- sessionStore : baseStore ,
58+ sessionStore : baseStore as unknown as AcpSessionStore ,
5959 agentRegistry : {
6060 resolve : ( agentName : string ) => ( agentName === "openclaw" ? "openclaw acp" : agentName ) ,
6161 list : ( ) => [ "codex" , "openclaw" ] ,
Original file line number Diff line number Diff line change @@ -238,7 +238,7 @@ function createResetAwareSessionStore(
238238 ...( record as Record < string , unknown > ) ,
239239 openclawLeaseId : lease . leaseId ,
240240 openclawGatewayInstanceId : lease . gatewayInstanceId ,
241- } as AcpLoadedSessionRecord ;
241+ } as unknown as AcpLoadedSessionRecord ;
242242 } ,
243243 async save ( record : AcpSessionRecord ) : Promise < void > {
244244 let recordToSave = record ;
@@ -273,7 +273,7 @@ function createResetAwareSessionStore(
273273 agentCommand : stableAgentCommand ,
274274 openclawLeaseId : launch . leaseId ,
275275 openclawGatewayInstanceId : launch . gatewayInstanceId ,
276- } as AcpSessionRecord ;
276+ } as unknown as AcpSessionRecord ;
277277 }
278278 await baseStore . save ( recordToSave ) ;
279279 if ( sessionName ) {
Original file line number Diff line number Diff line change @@ -750,7 +750,6 @@ class GoogleRealtimeVoiceBridge implements RealtimeVoiceBridge {
750750 ) ;
751751 }
752752
753- let emittedAssistantText = false ;
754753 for ( const part of content . modelTurn ?. parts ?? [ ] ) {
755754 if ( part . inlineData ?. data ) {
756755 const pcm = Buffer . from ( part . inlineData . data , "base64" ) ;
@@ -766,7 +765,6 @@ class GoogleRealtimeVoiceBridge implements RealtimeVoiceBridge {
766765 continue ;
767766 }
768767 if ( ! content . outputTranscription ?. text && typeof part . text === "string" && part . text . trim ( ) ) {
769- emittedAssistantText = true ;
770768 this . config . onTranscript ?.( "assistant" , part . text , content . turnComplete ?? false ) ;
771769 }
772770 }
Original file line number Diff line number Diff line change @@ -1159,7 +1159,7 @@ export async function dispatchPreparedSlackMessage(prepared: PreparedSlackMessag
11591159 }
11601160 }
11611161
1162- const result = await deliverWithFinalizableLivePreviewAdapter ( {
1162+ await deliverWithFinalizableLivePreviewAdapter ( {
11631163 kind : info . kind ,
11641164 payload,
11651165 adapter : defineFinalizableLivePreviewAdapter ( {
You can’t perform that action at this time.
0 commit comments