mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
Improve granular approval policy prompt (#14553)
This commit is contained in:
@@ -3385,6 +3385,9 @@ impl Session {
|
||||
turn_context
|
||||
.features
|
||||
.enabled(Feature::ExecPermissionApprovals),
|
||||
turn_context
|
||||
.features
|
||||
.enabled(Feature::RequestPermissionsTool),
|
||||
)
|
||||
.into_text(),
|
||||
);
|
||||
|
||||
@@ -46,6 +46,7 @@ fn build_permissions_update_item(
|
||||
exec_policy,
|
||||
&next.cwd,
|
||||
next.features.enabled(Feature::ExecPermissionApprovals),
|
||||
next.features.enabled(Feature::RequestPermissionsTool),
|
||||
))
|
||||
}
|
||||
|
||||
|
||||
@@ -493,6 +493,7 @@ async fn permissions_message_includes_writable_roots() -> Result<()> {
|
||||
&Policy::empty(),
|
||||
test.config.cwd.as_path(),
|
||||
false,
|
||||
false,
|
||||
)
|
||||
.into_text();
|
||||
// Normalize line endings to handle Windows vs Unix differences
|
||||
|
||||
Reference in New Issue
Block a user