mirror of
https://github.com/openai/codex.git
synced 2026-11-18 23:02:23 +00:00
Show file destinations in TUI change approvals (#39285)
## What changed - Show a description and the destination paths affected by each file-change approval. - Include both source and target paths for moves, format cross-platform paths for display, and show `unavailable` when change details are missing. - Recover file changes from buffered events and thread snapshots so live and replayed approvals retain their destination details. ## Testing - Add coverage for active and replayed approvals, moved and cross-platform paths, and the missing-destination fallback. GitOrigin-RevId: 24f90b313fd8643f90cbead1504c788b140d7fed
This commit is contained in:
1 parent
ba37d0c45b
commit
e7f9fa9cd9
14 files changed
+411
-73
No files matched your search
@@ -44,6 +44,7 @@ pub(super) fn normalize_snapshot_paths(text: impl Into<String>) -> String {
|
||||
text = text.replace(&platform_path, unix_path);
|
||||
}
|
||||
}
|
||||
text = text.replace("/tmp/project\\", "/tmp/project/");
|
||||
|
||||
let platform_test_cwd = test_path_display("/tmp/project");
|
||||
if platform_test_cwd == "/tmp/project" {
|
||||
|
||||
Reference in new issue
Block a user