Lightweight coding agent that runs in your terminal
Rust
[codex] add account id to feedback uploads (#21498)
pakrym-oaiacac786d9148
diff --git a/codex-rs/app-server/src/request_processors/feedback_processor.rs b/codex-rs/app-server/src/request_processors/feedback_processor.rsindex 5e945d7b10..5b9039b57d 100644--- a/codex-rs/app-server/src/request_processors/feedback_processor.rs+++ b/codex-rs/app-server/src/request_processors/feedback_processor.rs@@ -72,6 +72,13 @@ impl FeedbackRequestProcessor {{tracing::info!(target: "feedback_tags", chatgpt_user_id);}+ if let Some(account_id) = self+ .auth_manager+ .auth_cached()+ .and_then(|auth| auth.get_account_id())+ {+ tracing::info!(target: "feedback_tags", account_id);+ }let snapshot = self.feedback.snapshot(conversation_id);let thread_id = snapshot.thread_id.clone();let (feedback_thread_ids, sqlite_feedback_logs, state_db_ctx) = if include_logs {diff --git a/codex-rs/feedback/src/lib.rs b/codex-rs/feedback/src/lib.rsindex 884bed588c..0adf864d64 100644--- a/codex-rs/feedback/src/lib.rs+++ b/codex-rs/feedback/src/lib.rs@@ -757,6 +757,7 @@ mod tests {tags.insert("cli_version".to_string(), "wrong-version".to_string());tags.insert("session_source".to_string(), "wrong-source".to_string());tags.insert("reason".to_string(), "wrong-reason".to_string());+ tags.insert("account_id".to_string(), "actual-account".to_string());tags.insert("model".to_string(), "gpt-5".to_string());let snapshot = FeedbackSnapshot {bytes: Vec::new(),@@ -809,6 +810,10 @@ mod tests {upload_tags.get("reason").map(String::as_str),Some("actual reason"));+ assert_eq!(+ upload_tags.get("account_id").map(String::as_str),+ Some("actual-account")+ );assert_eq!(upload_tags.get("client_tag").map(String::as_str),Some("from-client")