marksteinbrick-oai and GitHub
61fe23159e
[codex-analytics] add session source to client metadata ( #17374 )
...
## Summary
Adds `thread_source` field to the existing Codex turn metadata sent to
Responses API
- Sends `thread_source: "user"` for user-initiated sessions: CLI, VS
Code, and Exec
- Sends `thread_source: "subagent"` for subagent sessions
- Omits `thread_source` for MCP, custom, and unknown session sources
- Uses the existing turn metadata transport:
- HTTP requests send through the `x-codex-turn-metadata` header
- WebSocket `response.create` requests send through
`client_metadata["x-codex-turn-metadata"]`
## Testing
- `cargo test -p codex-protocol
session_source_thread_source_name_classifies_user_and_subagent_sources`
- `cargo test -p codex-core turn_metadata_state`
- `cargo test -p codex-core --test responses_headers
responses_stream_includes_turn_metadata_header_for_git_workspace_e2e --
--nocapture`
2026-04-14 08:55:12 -07:00
..
2026-04-13 22:09:51 -07:00
2026-04-09 11:52:37 -07:00
2026-03-27 19:00:44 -07:00
2026-03-27 19:00:44 -07:00
2026-04-12 18:36:03 -07:00
2026-04-07 16:35:02 -07:00
2026-03-27 19:00:44 -07:00
2026-04-03 15:03:21 -07:00
2026-04-14 08:55:12 -07:00
2026-04-10 23:33:13 +00:00
2026-04-14 08:15:56 -07:00
2026-02-20 23:45:35 -08:00
2026-04-09 11:52:37 -07:00
2026-04-14 00:13:13 -07:00
2026-04-09 11:52:37 -07:00
2026-04-09 11:52:37 -07:00
2026-03-19 20:12:07 -07:00
2026-03-23 15:19:01 -07:00
2026-04-08 10:54:12 -07:00
2026-04-09 11:52:37 -07:00
2026-04-12 18:36:03 -07:00
2026-04-09 11:52:37 -07:00
2026-03-27 19:00:44 -07:00
2026-04-09 11:52:37 -07:00
2026-03-19 20:12:07 -07:00
2026-03-23 15:19:01 -07:00
2025-12-23 19:29:32 -08:00
2026-04-07 00:32:41 +00:00
2026-03-27 19:00:44 -07:00
2026-04-13 16:53:42 -07:00
2026-03-13 15:27:00 -07:00
2026-04-07 17:55:40 -07:00
2026-04-09 11:52:37 -07:00
2026-04-07 17:55:40 -07:00
2026-04-01 23:06:24 -07:00
2026-04-09 14:10:44 -04:00
2026-04-09 11:52:37 -07:00
2026-03-13 15:27:00 -07:00
2026-04-13 22:09:51 -07:00
2026-04-09 11:52:37 -07:00
2026-04-07 15:18:34 -07:00
2026-04-07 17:55:40 -07:00
2026-04-09 11:52:37 -07:00
2026-04-09 11:52:37 -07:00
2026-04-09 11:52:37 -07:00
2026-04-14 00:13:13 -07:00
2026-04-13 16:53:42 -07:00
2026-04-07 17:55:40 -07:00
2026-04-09 11:52:37 -07:00
2026-03-23 15:19:01 -07:00
2026-03-26 17:12:45 -07:00
2026-03-23 15:19:01 -07:00
2026-04-06 08:18:46 -07:00
2026-04-06 16:22:59 -07:00
2026-04-09 11:52:37 -07:00
2026-04-09 11:52:37 -07:00
2026-04-13 15:16:34 -07:00
2026-04-09 18:44:26 +01:00
2026-03-23 15:19:01 -07:00
2026-04-13 15:16:34 -07:00
2026-03-27 19:00:44 -07:00
2026-04-03 12:07:07 -07:00
2026-04-07 16:35:02 -07:00
2026-03-24 04:41:38 +00:00
2026-03-26 07:46:04 -07:00
2026-03-23 15:19:01 -07:00
2026-04-07 17:55:40 -07:00
2026-04-13 15:16:34 -07:00
2026-04-09 11:52:37 -07:00
2026-04-09 11:52:37 -07:00
2026-04-13 10:26:51 -07:00
2026-03-23 15:19:01 -07:00
2026-03-23 15:19:01 -07:00
2026-04-03 00:33:34 -07:00
2026-03-27 19:00:44 -07:00
2026-04-13 15:16:34 -07:00
2026-03-11 12:33:09 -07:00
2026-03-19 20:12:07 -07:00
2026-04-12 18:36:03 -07:00
2026-04-01 23:06:24 -07:00
2026-04-09 11:52:37 -07:00
2026-04-02 12:34:42 -07:00
2026-04-14 08:15:56 -07:00
2026-03-19 20:12:07 -07:00
2026-04-03 00:33:34 -07:00
2026-04-09 11:52:37 -07:00