mirror of
https://github.com/openai/codex.git
synced 2026-05-03 02:46:39 +00:00
chore(tui) Simplify /status Permissions (#11290)
## Summary Consolidate `/status` Permissions lines into a simpler view. It should only show "Default," "Full Access," or "Custom" (with specifics) ## Testing - [x] many snapshots updated
This commit is contained in:
@@ -4176,7 +4176,7 @@ async fn approvals_selection_popup_snapshot_windows_degraded_sandbox() {
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
async fn preset_matching_ignores_extra_writable_roots() {
|
||||
async fn preset_matching_requires_exact_workspace_write_settings() {
|
||||
let preset = builtin_approval_presets()
|
||||
.into_iter()
|
||||
.find(|p| p.id == "auto")
|
||||
@@ -4189,8 +4189,8 @@ async fn preset_matching_ignores_extra_writable_roots() {
|
||||
};
|
||||
|
||||
assert!(
|
||||
ChatWidget::preset_matches_current(AskForApproval::OnRequest, ¤t_sandbox, &preset),
|
||||
"WorkspaceWrite with extra roots should still match the Agent preset"
|
||||
!ChatWidget::preset_matches_current(AskForApproval::OnRequest, ¤t_sandbox, &preset),
|
||||
"WorkspaceWrite with extra roots should not match the Default preset"
|
||||
);
|
||||
assert!(
|
||||
!ChatWidget::preset_matches_current(AskForApproval::Never, ¤t_sandbox, &preset),
|
||||
|
||||
Reference in New Issue
Block a user