codex/codex-rs/hooks
Abhinav cfd5d77d63 Detach Unix hook commands from the controlling terminal (#43876)
## Why

Shell startup code that accesses the controlling terminal can stop a hook on background terminal I/O, preventing the hook command from running.

## What changed

Use `detach_from_tty` before executing Unix hook commands to avoid inheriting the controlling terminal while preserving process-group cleanup.

## Testing

Add a Unix regression test that runs under a controlling terminal and uses `BASH_ENV` to invoke `stty` during shell startup. Verify that the hook completes successfully and produces the expected output.

GitOrigin-RevId: 231125d4b169fb1bd828e3f8e96476a13bd25d26
History 2026-09-08 18:04:48 +00:00
..
schema/generated Add hooks for interrupted turns (#40511) 2026-08-25 01:27:18 +00:00
src Detach Unix hook commands from the controlling terminal (#43876) 2026-09-08 18:04:48 +00:00
BUILD.bazel build: run buildifier from just fmt (#28125) 2026-06-13 21:43:39 -07:00
Cargo.toml Run allowlisted executor plugin stop hooks (#40009) 2026-08-21 21:01:59 +00:00