Remove the Windows /sandbox-add-read-dir slash command (#44259)

## What changed

Remove the TUI command introduced in https://github.com/openai/codex/pull/11512 for granting sandbox read access to additional directories, along with its event handlers and non-elevated read-root grant helper.

## Testing

Enable the existing voice command popup snapshot test on Windows as well as macOS.

GitOrigin-RevId: 8a3a06b76749420101e34aa6587a8beab8eb5fdd
This commit is contained in:
Eric Traut
2026-09-09 18:11:39 +00:00
committed by copyberry
parent 3dc1e2a584
commit a3ba42b010
7 changed files with 3 additions and 127 deletions
@@ -423,7 +423,6 @@ fn parent_owned_command_is_allowed(command: SlashCommand, args: &str) -> bool {
| SlashCommand::Vim
| SlashCommand::Keymap
| SlashCommand::ElevateSandbox
| SlashCommand::SandboxReadRoot
| SlashCommand::Experimental
| SlashCommand::Memories
| SlashCommand::Quit
@@ -414,7 +414,7 @@ mod tests {
insta::assert_snapshot!("command_popup_app", format!("{buf:?}"));
}
#[cfg(target_os = "macos")]
#[cfg(any(target_os = "macos", target_os = "windows"))]
#[test]
fn voice_command_popup_snapshot() {
let mut popup = CommandPopup::new(