core-agent-ide/codex-rs/exec/src
Dylan a2b9f46006
[exec] Fix exec sandbox arg (#2034)
## Summary
From codex-cli 😁 
`-s/--sandbox` now correctly affects sandbox mode.

What changed
- In `codex-rs/exec/src/cli.rs`:
- Added `value_enum` to the `--sandbox` flag so Clap parses enum values
into `
SandboxModeCliArg`.
- This ensures values like `-s read-only`, `-s workspace-write`, and `-s
dange
r-full-access` are recognized and propagated.

Why this fixes it
- The enum already derives `ValueEnum`, but without `#[arg(value_enum)]`
Clap ma
y not map the string into the enum, leaving the option ineffective at
runtime. W
ith `value_enum`, `sandbox_mode` is parsed and then converted to
`SandboxMode` i
n `run_main`, which feeds into `ConfigOverrides` and ultimately into the
effecti
ve `sandbox_policy`.
2025-08-08 18:19:40 -07:00
..
cli.rs [exec] Fix exec sandbox arg (#2034) 2025-08-08 18:19:40 -07:00
event_processor.rs [feat] add /status slash command (#1873) 2025-08-05 23:57:52 -07:00
event_processor_with_human_output.rs [fix] fix absolute and % token counts (#1931) 2025-08-07 08:13:36 +00:00
event_processor_with_json_output.rs [feat] add /status slash command (#1873) 2025-08-05 23:57:52 -07:00
lib.rs [config] Onboarding flow with persistence (#1929) 2025-08-07 09:27:38 -07:00
main.rs fix: move arg0 handling out of codex-linux-sandbox and into its own crate (#1697) 2025-07-28 08:31:24 -07:00