mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
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:
1 parent
c660e2b644
commit
510bce9927
35 files changed
+155
-101
No files matched your search
@@ -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()),
|
||||
|
||||
Reference in new issue
Block a user