Gate enhanced execpolicy suggestions behind feature config

In codex-rs/core/src/features.rs and codex-rs/core/config.schema.json, add the enhanced_exec_policy_suggestions feature flag as a disabled-by-default under-development config.

In codex-rs/core/src/exec_policy.rs, codex-rs/core/src/tools/handlers/shell.rs, and codex-rs/core/src/unified_exec/process_manager.rs, route auto-generated execpolicy suggestion behavior through the new feature gate while preserving legacy suggestions when it is off.

In codex-rs/core/src/exec_policy_tests.rs, cover both the legacy default-off behavior and the enhanced suggestion path explicitly.
This commit is contained in:
rreichel3-oai
2026-03-19 15:15:27 -04:00
parent bb728b0693
commit e808f90724
6 changed files with 191 additions and 63 deletions

View File

@@ -380,6 +380,9 @@
"enable_request_compression": {
"type": "boolean"
},
"enhanced_exec_policy_suggestions": {
"type": "boolean"
},
"exec_permission_approvals": {
"type": "boolean"
},
@@ -1986,6 +1989,9 @@
"enable_request_compression": {
"type": "boolean"
},
"enhanced_exec_policy_suggestions": {
"type": "boolean"
},
"exec_permission_approvals": {
"type": "boolean"
},