Commit 4a0628f
authored
Recorder proxy hardening, server error handling, test hygiene (#177)
## Summary
Follow-up quality sweep addressing 30 issues surfaced by 7-agent CR on
PR #175, complementing the broader sweep in #176.
**Recorder proxy relay** — forward HTTP method instead of hardcoding
POST, clear response timeout after completion, fix client-disconnect
handler to check `writableFinished` before destroying upstream, wrap
hook callbacks in try/catch, override audio content-type on error relay,
atomic fixture writes, toolCall sanitization, tighter video detection
**Server error handling** — deferred splice for one-shot error fixtures,
SyntaxError guard on Azure injection catch, fixture-level chaos
evaluation for non-completions endpoints, fal body double-consumption
fix, fal PUT body support
**Test hygiene** — tmpDir leak fix, global fetch replaced with node:http
helpers, try/finally fixture cleanup, deduplicated helpers, explicit
mock properties, resource guard on setup helper
## Test plan
- [x] 2872 tests pass (79 files, 37 skipped)
- [x] TypeScript typecheck clean
- [x] Prettier + ESLint clean4 files changed
Lines changed: 476 additions & 184 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
15 | 32 | | |
16 | 33 | | |
17 | 34 | | |
| |||
0 commit comments