Add ability to attach extra files to feedback (#12370)

Allow clients to provide extra files.
This commit is contained in:
pakrym-oai
2026-02-20 14:26:14 -08:00
committed by GitHub
parent 9176f09cb8
commit 1bb7989b20
9 changed files with 58 additions and 13 deletions

View File

@@ -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),
);