mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Use app-server configuration for Windows sandbox state in the TUI (#45830)
## Why The TUI's Windows sandbox turn-context override was ignored by `thread/settings/update`, and onboarding derived sandbox state from local configuration instead of the app server's effective configuration. ## What changed - Read Windows sandbox configuration from the app server before showing the onboarding sandbox creation hint. Show the hint only when the read succeeds and the sandbox is disabled. - Remove `windows_sandbox_level` from `AppCommand::OverrideTurnContext` and stop sending sandbox-only overrides after setup or feature changes. - Rely on the effective configuration refresh after setup instead of updating local sandbox flags manually. ## Testing Update the trust-directory rendering test and snapshot to cover the sandbox creation hint. GitOrigin-RevId: 2ee6b0634812e7b39fd73dab3ae344729910ba70
This commit is contained in:
1 parent
5bf132cd52
commit
ca99b271d4
15 files changed
+29
-130
No files matched your search
@@ -3239,7 +3239,6 @@ default_permissions = "locked-down"
|
||||
approvals_reviewer: None,
|
||||
permission_profile: Some(app.config.permissions.permission_profile().clone()),
|
||||
active_permission_profile: app.config.permissions.active_permission_profile(),
|
||||
windows_sandbox_level: None,
|
||||
model: None,
|
||||
effort: None,
|
||||
summary: None,
|
||||
@@ -3333,7 +3332,6 @@ async fn update_feature_flags_enabling_guardian_selects_auto_review() -> Result<
|
||||
approvals_reviewer: Some(auto_review.approvals_reviewer),
|
||||
permission_profile: Some(auto_review.permission_profile()),
|
||||
active_permission_profile: Some(auto_review.active_permission_profile.clone()),
|
||||
windows_sandbox_level: None,
|
||||
model: None,
|
||||
effort: None,
|
||||
summary: None,
|
||||
@@ -3428,7 +3426,6 @@ async fn update_feature_flags_disabling_guardian_clears_review_policy_and_restor
|
||||
approvals_reviewer: Some(ApprovalsReviewer::User),
|
||||
permission_profile: None,
|
||||
active_permission_profile: None,
|
||||
windows_sandbox_level: None,
|
||||
model: None,
|
||||
effort: None,
|
||||
summary: None,
|
||||
@@ -3509,7 +3506,6 @@ async fn update_feature_flags_enabling_guardian_overrides_explicit_manual_review
|
||||
approvals_reviewer: Some(auto_review.approvals_reviewer),
|
||||
permission_profile: Some(auto_review.permission_profile()),
|
||||
active_permission_profile: Some(auto_review.active_permission_profile.clone()),
|
||||
windows_sandbox_level: None,
|
||||
model: None,
|
||||
effort: None,
|
||||
summary: None,
|
||||
@@ -3569,7 +3565,6 @@ async fn update_feature_flags_disabling_guardian_clears_manual_review_policy_wit
|
||||
approvals_reviewer: Some(ApprovalsReviewer::User),
|
||||
permission_profile: None,
|
||||
active_permission_profile: None,
|
||||
windows_sandbox_level: None,
|
||||
model: None,
|
||||
effort: None,
|
||||
summary: None,
|
||||
@@ -8713,7 +8708,6 @@ async fn override_turn_context_sends_thread_settings_update() {
|
||||
Some(ActivePermissionProfile::new(
|
||||
codex_protocol::models::BUILT_IN_PERMISSION_PROFILE_WORKSPACE,
|
||||
)),
|
||||
/*windows_sandbox_level*/ None,
|
||||
Some("gpt-5.4".to_string()),
|
||||
Some(Some(ReasoningEffortConfig::High)),
|
||||
/*summary*/ None,
|
||||
|
||||
Reference in new issue
Block a user