mirror of
https://github.com/openai/codex.git
synced 2026-05-01 01:47:18 +00:00
Add ability to attach extra files to feedback (#12370)
Allow clients to provide extra files.
This commit is contained in:
@@ -87,7 +87,11 @@ impl FeedbackNoteView {
|
||||
} else {
|
||||
Some(note.as_str())
|
||||
};
|
||||
let rollout_path_ref = self.rollout_path.as_deref();
|
||||
let log_file_paths = if self.include_logs {
|
||||
self.rollout_path.iter().cloned().collect::<Vec<_>>()
|
||||
} else {
|
||||
Vec::new()
|
||||
};
|
||||
let classification = feedback_classification(self.category);
|
||||
|
||||
let mut thread_id = self.snapshot.thread_id.clone();
|
||||
@@ -96,11 +100,7 @@ impl FeedbackNoteView {
|
||||
classification,
|
||||
reason_opt,
|
||||
self.include_logs,
|
||||
if self.include_logs {
|
||||
rollout_path_ref
|
||||
} else {
|
||||
None
|
||||
},
|
||||
&log_file_paths,
|
||||
Some(SessionSource::Cli),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user