test: fix main CI regressions

This commit is contained in:
Peter Steinberger
2026-05-29 23:02:56 +01:00
parent a51e8a21b6
commit fe3f2bee3f
2 changed files with 4 additions and 14 deletions

View File

@@ -485,14 +485,16 @@ describe("speech-core native voice-note routing", () => {
});
it("caps oversized voice model TTS timeouts before synthesis", async () => {
installSpeechProviders([createMockSpeechProvider("mock", { autoSelectOrder: 1 })]);
installSpeechProviders([
createMockSpeechProvider("mock", { autoSelectOrder: 1, models: ["mock-tts"] }),
]);
const result = await synthesizeSpeech({
text: "Use capped explicit timeout.",
cfg: {
agents: {
defaults: {
voiceModel: { primary: "mock", timeoutMs: Number.MAX_SAFE_INTEGER },
voiceModel: { primary: "mock/mock-tts", timeoutMs: Number.MAX_SAFE_INTEGER },
},
},
messages: {

View File

@@ -41,18 +41,6 @@ const STRICT_LITERAL_STRUCTS = new Set([
]);
const DEFAULTED_OPTIONAL_INIT_PARAMS: Record<string, Set<string>> = {
SessionOperationEvent: new Set(["agentId"]),
SessionsCompactionBranchParams: new Set(["agentId"]),
SessionsCompactionGetParams: new Set(["agentId"]),
SessionsCompactionListParams: new Set(["agentId"]),
SessionsCompactionRestoreParams: new Set(["agentId"]),
SessionsCompactParams: new Set(["agentId"]),
SessionsDeleteParams: new Set(["agentId"]),
SessionsMessagesSubscribeParams: new Set(["agentId"]),
SessionsMessagesUnsubscribeParams: new Set(["agentId"]),
SessionsPatchParams: new Set(["agentId"]),
SessionsResetParams: new Set(["agentId"]),
SessionsSendParams: new Set(["agentId"]),
SessionsAbortParams: new Set(["agentId"]),
SessionOperationEvent: new Set(["agentId"]),
SessionsUsageParams: new Set(["agentId", "agentScope"]),