Commit 227e780
Mateusz
fix(codex): propagate envelope usage through legacy chat controller conversion paths
- Capture response.usage before content schema conversion in chat controller
- Thread envelope usage into _ensure_openai_chat_schema for tool-call,
parsed-content, and plain-text fallback branches
- Remove hardcoded zero-usage fallback dicts that masked real usage data
- Add regression test verifying usage survives ChatController passthrough
- Extend demo script to prove ChatController legacy path preserves usage
- Fix type annotations in usage summary test and demo processor interface1 parent 92dae1c commit 227e780
4 files changed
Lines changed: 503 additions & 32 deletions
File tree
- dev/scripts
- src/core/app/controllers
- tests/unit/core
- app/controllers
- domain
0 commit comments