Skip to content

[telemetry] emittance#14430

Closed
rhan-oai wants to merge 53 commits intorhan/surface-updatesfrom
rhan/emittance
Closed

[telemetry] emittance#14430
rhan-oai wants to merge 53 commits intorhan/surface-updatesfrom
rhan/emittance

Conversation

@rhan-oai
Copy link
Copy Markdown
Collaborator

@rhan-oai rhan-oai commented Mar 12, 2026

  • metadata emission for user message type
  • wiring for ResponseItem

Testing

  • tests prompt, prompt queue and prompt steering
    INFO | 2026-03-12 15:12:27 | codex_backend.routers.responses | responses.create_response:459 | Responses input metadata probe for session 019ce41b-a59d-7e61-ad3d-052b69082252: [{'index': 2, 'type': 'message', 'role': 'user', 'user_message_type': 'prompt', 'metadata_keys': ['user_message_type']}] |

dylan-hurd-oai

This comment was marked as outdated.

@rhan-oai rhan-oai marked this pull request as ready for review March 19, 2026 18:17
@rhan-oai rhan-oai requested a review from dylan-hurd-oai March 19, 2026 23:28
…/emittance-mergefix

# Conflicts:
#	codex-rs/core/tests/suite/items.rs
Copy link
Copy Markdown
Collaborator

@dylan-hurd-oai dylan-hurd-oai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think something in lifecycle of ResponseInputItem > ResponseItem and stamping metadata onto the object is not adding up here for me. Let's think about how to make this cleaner - e.g. how can we structure this to avoid unnecessary repeated stampings? feels like we should align this more closely with the creation of ResponseItem.

let mut metadata_value = metadata.take().unwrap_or_default();
metadata_value.user_message_type = Some(kind);
*metadata = Some(metadata_value);
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's move this into a separate file please 🙏

#[derive(Debug, Clone)]
pub(crate) struct PendingInputItem {
pub(crate) input: ResponseInputItem,
pub(crate) user_message_type: Option<UserMessageType>,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@owenlin0 for thoughts here - should we just add metadata to ResponseInputItem?

turn_context.as_ref(),
&input,
response_item,
Some(UserMessageType::Prompt),
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've already attached the metadata above - why do we need to add it to the method here?

@rhan-oai rhan-oai marked this pull request as draft March 23, 2026 23:33
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 7, 2026

Closing this pull request because it has had no updates for more than 14 days. If you plan to continue working on it, feel free to reopen or open a new PR.

@github-actions github-actions bot closed this Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

oai PRs contributed by OpenAI employees

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants