codeburn
codeburn copied to clipboard
fix(codex): attribute MCP tool-call end events
Summary
- Normalize recent Codex MCP
function_callentries withnamespace: "mcp__..."into CodeBurn's canonicalmcp__server__tooltool names. - Parse
event_msg/mcp_tool_call_endevents when Codex emits only the completion event, while de-duping paired events bycall_idso one MCP invocation is not counted twice. - Add Codex provider regression coverage for both paired
function_call+mcp_tool_call_endlogs and end-only logs.
Target issues
Closes #478
Testing
- [x]
npm test -- --run tests/providers/codex.test.ts - [x]
npx tsc --noEmit --pretty false - [x] Inspected a real local Codex JSONL sequence with
function_callnamespace + matchingmcp_tool_call_endcall_id - [x]
npm testpasses - [x]
npm run buildsucceeds