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:
Dylan Hurd
2026-02-11 15:02:29 -08:00
committed by GitHub
parent ad9a540ab0
commit 30cdfce1a5
13 changed files with 100 additions and 47 deletions

View File

@@ -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, &current_sandbox, &preset),
"WorkspaceWrite with extra roots should still match the Agent preset"
!ChatWidget::preset_matches_current(AskForApproval::OnRequest, &current_sandbox, &preset),
"WorkspaceWrite with extra roots should not match the Default preset"
);
assert!(
!ChatWidget::preset_matches_current(AskForApproval::Never, &current_sandbox, &preset),