mirror of
https://github.com/openai/codex.git
synced 2026-11-28 23:34:06 +00:00
Preserve local path conventions in automatic approvals (#32261)
## Why Drive-shaped POSIX paths such as `/C:/workspace` can be mistaken for Windows paths when an automatic approval request converts them from `PathUri`. ## What changed - Keep approval paths as `PathUri` values together with their environment ID until the automatic review request is built. - Recover host-native paths for local working directories when strict conversion cannot determine the path convention. - Continue rejecting incompatible paths from remote environments. ## Testing Add coverage for drive-shaped local POSIX paths, foreign remote paths, and preserving apply-patch path URIs while building approval actions. GitOrigin-RevId: 3fd31cfb4e8b46f9968ff66d5e986ca777430185
This commit is contained in:
1 parent
9993fb838a
commit
b66c25c6a3
8 files changed
+166
-39
No files matched your search
@@ -126,7 +126,7 @@ pub(crate) struct ApprovalCtx<'a> {
|
||||
pub network_approval_context: Option<NetworkApprovalContext>,
|
||||
}
|
||||
|
||||
pub(crate) type ApprovalAction = super::approvals::ApprovalAction;
|
||||
pub(crate) use super::approvals::ApprovalAction;
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Eq)]
|
||||
pub(crate) struct PermissionRequestPayload {
|
||||
|
||||
Reference in new issue
Block a user