mirror of
https://github.com/openai/codex.git
synced 2026-11-24 07:20:27 +00:00
Make turn diff tracking operation backed (#21180)
## Summary - replace filesystem-based turn diff tracking with an operation-backed accumulator - preserve enough verified apply_patch state to render move-overwrite cases correctly - keep the turn/diff/updated contract intact while removing remote-only turn-diff test skips This takes the assumption that no 3P services rely on the output format of `apply_patch` ## Why For the CCA file system isolation push --------- Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
1 parent
b2268999fe
commit
f7e8ff8e50
15 files changed
+1050
-898
No files matched your search
@@ -159,8 +159,8 @@ fn is_write_patch_constrained_to_writable_paths(
|
||||
// Determine whether `path` is inside **any** writable root. Both `path`
|
||||
// and roots are converted to absolute, normalized forms before the
|
||||
// prefix check.
|
||||
let is_path_writable = |p: &PathBuf| {
|
||||
let abs = resolve_path(cwd, p);
|
||||
let is_path_writable = |p: &Path| {
|
||||
let abs = resolve_path(cwd, &p.to_path_buf());
|
||||
let abs = match normalize(&abs) {
|
||||
Some(v) => v,
|
||||
None => return false,
|
||||
|
||||
Reference in new issue
Block a user