mirror of
https://github.com/openai/codex.git
synced 2026-11-14 21:40:39 +00:00
Track thread lifecycle requests
This commit is contained in:
@@ -890,7 +890,10 @@ mod tests {
|
||||
|
||||
manager
|
||||
.start(StartCommandExecParams {
|
||||
outgoing: Arc::new(OutgoingMessageSender::new(tx)),
|
||||
outgoing: Arc::new(OutgoingMessageSender::new(
|
||||
tx,
|
||||
codex_analytics::AnalyticsEventsClient::disabled(),
|
||||
)),
|
||||
request_id: request_id.clone(),
|
||||
process_id: Some("proc-101".to_string()),
|
||||
exec_request: ExecRequest::new(
|
||||
|
||||
@@ -732,7 +732,10 @@ impl MessageProcessor {
|
||||
return Err(invalid_request(experimental_required_message(reason)));
|
||||
}
|
||||
let connection_id = connection_request_id.connection_id;
|
||||
if let ClientRequest::TurnStart { request_id, .. }
|
||||
if let ClientRequest::ThreadStart { request_id, .. }
|
||||
| ClientRequest::ThreadResume { request_id, .. }
|
||||
| ClientRequest::ThreadFork { request_id, .. }
|
||||
| ClientRequest::TurnStart { request_id, .. }
|
||||
| ClientRequest::TurnSteer { request_id, .. } = &codex_request
|
||||
{
|
||||
self.analytics_events_client.track_request(
|
||||
|
||||
Reference in New Issue
Block a user