Lightweight coding agent that runs in your terminal
Rust
chore: conversation_id -> thread_id in app-server feedback/upload (#7538)
Owen Lin3ef76ff29d5e
diff --git a/codex-rs/app-server-protocol/src/protocol/v2.rs b/codex-rs/app-server-protocol/src/protocol/v2.rsindex e1122e8146..c672080720 100644--- a/codex-rs/app-server-protocol/src/protocol/v2.rs+++ b/codex-rs/app-server-protocol/src/protocol/v2.rs@@ -2,7 +2,6 @@ use std::collections::HashMap;use std::path::PathBuf;use crate::protocol::common::AuthMode;-use codex_protocol::ConversationId;use codex_protocol::account::PlanType;use codex_protocol::approvals::SandboxCommandAssessment as CoreSandboxCommandAssessment;use codex_protocol::config_types::ReasoningEffort;@@ -664,7 +663,7 @@ pub struct ListMcpServersResponse {pub struct FeedbackUploadParams {pub classification: String,pub reason: Option<String>,- pub conversation_id: Option<ConversationId>,+ pub thread_id: Option<String>,pub include_logs: bool,}diff --git a/codex-rs/app-server/src/codex_message_processor.rs b/codex-rs/app-server/src/codex_message_processor.rsindex 245486e482..6b85049d28 100644--- a/codex-rs/app-server/src/codex_message_processor.rs+++ b/codex-rs/app-server/src/codex_message_processor.rs@@ -3021,10 +3021,26 @@ impl CodexMessageProcessor {let FeedbackUploadParams {classification,reason,- conversation_id,+ thread_id,include_logs,} = params;+ let conversation_id = match thread_id.as_deref() {+ Some(thread_id) => match ConversationId::from_string(thread_id) {+ Ok(conversation_id) => Some(conversation_id),+ Err(err) => {+ let error = JSONRPCErrorError {+ code: INVALID_REQUEST_ERROR_CODE,+ message: format!("invalid thread id: {err}"),+ data: None,+ };+ self.outgoing.send_error(request_id, error).await;+ return;+ }+ },+ None => None,+ };+let snapshot = self.feedback.snapshot(conversation_id);let thread_id = snapshot.thread_id.clone();