mirror of
https://github.com/openai/codex.git
synced 2026-11-23 23:10:47 +00:00
## Why The `codex.goal.created` counter cannot distinguish goals created at different reasoning efforts. A tool call can also run at a different effort from the thread's default after a turn settings update. ## What changed Add a `reasoning_effort` attribute to `codex.goal.created`. For goals created by `create_goal`, read the effort from the invoking step's metadata. For goals created outside a turn, use the thread's configured effort or fall back to the model default. Label custom values `custom` and unavailable values `unknown`. ## Testing Extend the thread resume integration test to check that the exported metric records `medium` for a goal set before the first turn and `high` for a goal created by a tool after a turn settings update. GitOrigin-RevId: 83b3c8c1073551b67453314eb559c5e648af3521