mirror of
https://github.com/openai/codex.git
synced 2026-04-30 01:16:54 +00:00
Add ability to attach extra files to feedback (#12370)
Allow clients to provide extra files.
This commit is contained in:
@@ -6098,6 +6098,7 @@ impl CodexMessageProcessor {
|
||||
reason,
|
||||
thread_id,
|
||||
include_logs,
|
||||
extra_log_files,
|
||||
} = params;
|
||||
|
||||
let conversation_id = match thread_id.as_deref() {
|
||||
@@ -6127,15 +6128,19 @@ impl CodexMessageProcessor {
|
||||
} else {
|
||||
None
|
||||
};
|
||||
let mut attachment_paths = validated_rollout_path.into_iter().collect::<Vec<_>>();
|
||||
if let Some(extra_log_files) = extra_log_files {
|
||||
attachment_paths.extend(extra_log_files);
|
||||
}
|
||||
|
||||
let session_source = self.thread_manager.session_source();
|
||||
|
||||
let upload_result = tokio::task::spawn_blocking(move || {
|
||||
let rollout_path_ref = validated_rollout_path.as_deref();
|
||||
snapshot.upload_feedback(
|
||||
&classification,
|
||||
reason.as_deref(),
|
||||
include_logs,
|
||||
rollout_path_ref,
|
||||
&attachment_paths,
|
||||
Some(session_source),
|
||||
)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user