Home

mweinbach / agent-coworker

publicmweinbach/agent-coworker
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

Refactor auth and stream parsing to reduce branch-heavy logic

8 months ago

26d6d80
Authored
mweinbach2/23/2026, 3:22:59 AM
Replace ad-hoc codex auth payload parsing with shared Zod-backed helpers and add targeted coverage.

Move model stream normalization to a declarative normalizer map and simplify protocol parser validation paths with direct schemas and lookup-based errors.

Co-authored-by: Codex <noreply@openai.com>

Parent7ce1ed3

4 files changed
  • src/providers/codex-auth.ts+42−33
  • src/server/modelStream.ts+143−50
  • src/server/protocolParser.ts+70−125
  • test/providers/codex-auth.test.ts+146−0