feat: ship Wave 5-6 multi-surface hygiene, optimization, and bug fixes

This commit is contained in:
Yun Chan 2026-11-14 11:51:41 +09:00
parent 01ef3293cf
commit 66b6b45ba9
399 changed files with 17828 additions and 11330 deletions

View file

@ -247,3 +247,15 @@ Deno.test('invalid input is rejected before reserving quota', async () => {
assertEquals(response.status, 415, 'unsupported type')
assertEquals(h.events, [], 'no quota or provider work')
})
Deno.test('non-multipart body fails closed with 400 instead of 500', async () => {
const h = harness([fakeProvider('groq', OK)])
const response = await h.handler(new Request('http://localhost/stt-proxy', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: '{"audio":1}',
}))
assertEquals(response.status, 400, 'status')
assertEquals(await response.json(), { error: 'invalid_multipart_body' }, 'body')
assertEquals(h.events, [], 'no quota or provider work')
})