core: resolve view_image paths in selected environment (#29526)

## Why

view_image needs to support foreign OS remote executors.

## What

- resolve image paths against the selected environment as `PathUri` and
read them through that environment's filesystem
- keep app-server's public path field wire-compatible as
`LegacyAppPathString`, with purpose-specific UI rendering
- cover relative and absolute target-native paths in the core
integration test and run the full `view_image` suite under wine-exec
without skips
This commit is contained in:
Adam Perry @ OpenAI authored and GitHub committed 2026-06-23 19:52:37 +00:00
1 parent c660e2b644
commit 510bce9927
35 files changed
+155 -101

No files matched your search

+2 -1
View File
@@ -182,7 +182,8 @@ fn activity_summary(item: &ThreadItem) -> Option<String> {
return bounded_summary(&format!("Web search: {query}"));
}
ThreadItem::ImageView { path, .. } => {
return bounded_summary(&format!("Viewed {}", path.display()));
let path = path.render_for_ui();
return bounded_summary(&format!("Viewed {path}"));
}
ThreadItem::ImageGeneration { .. } => return Some("Generated an image".to_string()),
ThreadItem::EnteredReviewMode { .. } => return Some("Entered review mode".to_string()),