Merge pull request #29 from getpaseo/voice/background-downloading

Decouple onboarding from voice model downloads and gate unavailable voice starts
This commit is contained in:
Mohamed Boudra
2026-02-14 01:04:06 +07:00
committed by GitHub
15 changed files with 884 additions and 392 deletions
+9 -1
View File
@@ -1485,7 +1485,7 @@ export class DaemonClient {
...(agentId ? { agentId } : {}),
requestId,
});
return this.sendRequest({
const response = await this.sendRequest({
requestId,
message,
timeout: 10000,
@@ -1499,6 +1499,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(