Log ChatGPT user ID for feedback tags (#13901)

There are some bug investigations that currently require us to ask users
for their user ID even though they've already uploaded logs and session
details via `/feedback`. This frustrates users and increases the time
for diagnosis.

This PR includes the ChatGPT user ID in the metadata uploaded for
`/feedback` (both the TUI and app-server).
This commit is contained in:
Eric Traut
2026-03-10 09:57:41 -06:00
committed by GitHub
parent 9a501ddb08
commit e4edafe1a8
3 changed files with 28 additions and 0 deletions

View File

@@ -6694,6 +6694,13 @@ impl CodexMessageProcessor {
None => None,
};
if let Some(chatgpt_user_id) = self
.auth_manager
.auth_cached()
.and_then(|auth| auth.get_chatgpt_user_id())
{
tracing::info!(target: "feedback_tags", chatgpt_user_id);
}
let snapshot = self.feedback.snapshot(conversation_id);
let thread_id = snapshot.thread_id.clone();
let sqlite_feedback_logs = if include_logs {