Remove the patched zsh shell execution backend (#52160)

## What changed

- Use the standard shell executor and remove the zsh fork escalation runtime, `codex-execve-wrapper`, and `shell-escalation` crate.
- Ignore `shell_zsh_fork` and `unified_exec_zsh_fork`, emit migration notices for legacy configuration, and warn when ignoring managed requirements for these flags.
- Keep the active session's `apply_patch` alias directory readable under restricted filesystem permissions.

## Testing

Add coverage for legacy configuration startup and shell execution, migration notice rendering, active alias directory selection, and nested `apply_patch` execution while other files in `CODEX_HOME` remain unreadable.

GitOrigin-RevId: 43af461fea32b4980550ee7237effd2bc0646ed8
This commit is contained in:
jif
2026-10-08 16:19:09 +00:00
committed by copyberry
parent 9b738582b1
commit cd85a26cae
105 changed files with 475 additions and 9020 deletions
@@ -218,8 +218,6 @@
//codex-rs/sandboxing:sandboxing-unit-tests 74
//codex-rs/secrets:secrets-unit-tests 57
//codex-rs/shell-command:shell-command-unit-tests 60
//codex-rs/shell-escalation:codex-execve-wrapper-bin-unit-tests 62
//codex-rs/shell-escalation:shell-escalation-unit-tests 60
//codex-rs/skills:skills-unit-tests 59
//codex-rs/state:state-unit-tests 242
//codex-rs/test-binary-support:test-binary-support-unit-tests 48
1 # Windows Bazel duration weights; columns: target<TAB>seconds.
218 //codex-rs/sandboxing:sandboxing-unit-tests
219 //codex-rs/secrets:secrets-unit-tests
220 //codex-rs/shell-command:shell-command-unit-tests
//codex-rs/shell-escalation:codex-execve-wrapper-bin-unit-tests
//codex-rs/shell-escalation:shell-escalation-unit-tests
221 //codex-rs/skills:skills-unit-tests
222 //codex-rs/state:state-unit-tests
223 //codex-rs/test-binary-support:test-binary-support-unit-tests