mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
[codex] Handle additional tools in rollout persistence metrics (#29672)
## Summary Handle `ResponseItem::AdditionalTools` in rollout persistence metrics. The persistence metrics match was added after the `AdditionalTools` variant and omitted it, causing release builds to fail with a non-exhaustive pattern error. This assigns the item the `response.additional_tools` metrics label. Release failure: https://github.com/openai/codex/actions/runs/28043786727/job/83016608475 ## Validation - `just fmt` - `just test -p codex-rollout` (76 passed)
This commit is contained in:
committed by
GitHub
Unverified
parent
d1d11cac05
commit
39ee1b96b0
@@ -256,6 +256,7 @@ fn turn_item_type(item: &TurnItem) -> &'static str {
|
||||
fn response_item_type(item: &ResponseItem) -> &'static str {
|
||||
match item {
|
||||
ResponseItem::Message { .. } => "response.message",
|
||||
ResponseItem::AdditionalTools { .. } => "response.additional_tools",
|
||||
ResponseItem::AgentMessage { .. } => "response.agent_message",
|
||||
ResponseItem::Reasoning { .. } => "response.reasoning",
|
||||
ResponseItem::LocalShellCall { .. } => "response.local_shell_call",
|
||||
|
||||
Reference in New Issue
Block a user