mirror of
https://github.com/openai/codex.git
synced 2026-12-06 01:10:58 +00:00
Exclude per-item usage attribution by default (#63219)
## What changed Add `usage.attribution` to the `x-codex-exclude` header for Responses HTTP requests and WebSocket handshakes by default. Threads started with `experimentalRawEvents` keep receiving per-item attribution in raw responses. Subagents inherit the policy, and the app server restores it when a thread resumes with an existing raw-event subscription. ## Testing Cover the default exclusion, raw completion events with upstream usage, subagent inheritance, and resuming a closed subagent after both its runtime and its parent's runtime have unloaded. GitOrigin-RevId: 0dad92f97606300907f1294f09dd7845d1e6476f
This commit is contained in:
@@ -393,6 +393,7 @@ impl MessageProcessor {
|
||||
thread_extensions(
|
||||
config.as_ref(),
|
||||
ThreadExtensionDependencies {
|
||||
thread_state_manager: thread_state_manager.clone(),
|
||||
sample_responses: Arc::clone(&sample_responses),
|
||||
event_sink: Arc::clone(&extension_event_sink),
|
||||
auth_manager: auth_manager.clone(),
|
||||
|
||||
Reference in New Issue
Block a user