feat(voice): background local model downloads with runtime gating

This commit is contained in:
Mohamed Boudra
2026-02-13 23:23:28 +07:00
parent c41815dcb7
commit cfd061a86d
14 changed files with 874 additions and 392 deletions
+9 -1
View File
@@ -1465,7 +1465,7 @@ export class DaemonClient {
...(agentId ? { agentId } : {}),
requestId,
});
return this.sendRequest({
const response = await this.sendRequest({
requestId,
message,
timeout: 10000,
@@ -1479,6 +1479,14 @@ export class DaemonClient {
return msg.payload;
},
});
if (!response.accepted) {
const codeSuffix =
typeof response.reasonCode === "string" && response.reasonCode.trim().length > 0
? ` (${response.reasonCode})`
: "";
throw new Error((response.error ?? "Failed to set voice mode") + codeSuffix);
}
return response;
}
async sendVoiceAudioChunk(