mirror of
https://github.com/openai/codex.git
synced 2026-11-20 07:06:24 +00:00
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:
1 parent
3dc1e2a584
commit
a3ba42b010
7 files changed
+3
-127
No files matched your search
@@ -19,8 +19,6 @@ pub enum SlashCommand {
|
||||
Vim,
|
||||
#[strum(serialize = "setup-default-sandbox")]
|
||||
ElevateSandbox,
|
||||
#[strum(serialize = "sandbox-add-read-dir")]
|
||||
SandboxReadRoot,
|
||||
Experimental,
|
||||
#[strum(to_string = "approve")]
|
||||
AutoReview,
|
||||
@@ -142,9 +140,6 @@ impl SlashCommand {
|
||||
SlashCommand::Keymap => "remap TUI shortcuts",
|
||||
SlashCommand::Vim => "toggle Vim mode for the composer",
|
||||
SlashCommand::ElevateSandbox => "set up elevated agent sandbox",
|
||||
SlashCommand::SandboxReadRoot => {
|
||||
"let sandbox read a directory: /sandbox-add-read-dir <absolute_path>"
|
||||
}
|
||||
SlashCommand::Experimental => "toggle experimental features",
|
||||
SlashCommand::AutoReview => "approve one retry of a recent auto-review denial",
|
||||
SlashCommand::Memories => "configure memory use and generation",
|
||||
@@ -187,7 +182,6 @@ impl SlashCommand {
|
||||
| SlashCommand::Side
|
||||
| SlashCommand::Btw
|
||||
| SlashCommand::Resume
|
||||
| SlashCommand::SandboxReadRoot
|
||||
)
|
||||
}
|
||||
|
||||
@@ -223,7 +217,6 @@ impl SlashCommand {
|
||||
| SlashCommand::Keymap
|
||||
| SlashCommand::Vim
|
||||
| SlashCommand::ElevateSandbox
|
||||
| SlashCommand::SandboxReadRoot
|
||||
| SlashCommand::Experimental
|
||||
| SlashCommand::Memories
|
||||
| SlashCommand::Import
|
||||
@@ -275,7 +268,6 @@ impl SlashCommand {
|
||||
|
||||
fn is_visible(self) -> bool {
|
||||
match self {
|
||||
SlashCommand::SandboxReadRoot => cfg!(target_os = "windows"),
|
||||
SlashCommand::Copy => !cfg!(target_os = "android"),
|
||||
SlashCommand::App => cfg!(any(target_os = "macos", target_os = "windows")),
|
||||
SlashCommand::Voice => true,
|
||||
|
||||
Reference in new issue
Block a user