test: cover SSE malformed-line, httpx config, stdin/locale edge cases; devcontainer prek switch#52
Conversation
…ocale edge cases; switch devcontainer to prek Adds regression coverage for provider streaming (malformed SSE data lines must not abort the stream), the shared httpx client's timeout/transport config, a stdin read-error path, and locale fallback when LC_ALL is C or POSIX. Also swaps pre-commit for prek in the devcontainer setup.
PR Summary by QodoAdd regression tests for SSE/stdio/httpx edge cases; switch devcontainer to prek
AI Description
Diagram
High-Level Assessment
Files changed (7)
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |

Summary
data:line (e.g. from a flaky proxy) is skipped rather than aborting the stream, across all three providers (anthropic, googlegenai, openai)internal/httpx's client construction (no overall timeout, TLS handshake timeout set, HTTP/2 forced, distinct client instances)LC_ALL=C/LC_ALL=POSIXfalling through toLANG)pre-commitforprekin the devcontainer setup script and pin its version inmise.tomlTest plan
make testmake check(ran via pre-commit hook on this commit)