(&self)
| 310 | |
| 311 | impl Hooks { |
| 312 | fn should_handoff_codex_stop(&self) -> bool { |
| 313 | // Codex stop handoff drops stdout, so `--json` must stay in-process. |
| 314 | !self.foreground && !self.json && self.agent_name == "codex" && self.verb == "stop" |
| 315 | } |
| 316 | |
| 317 | fn handoff_codex_stop(&self, input: &[u8]) -> CliResult<()> { |
| 318 | let exe = std::env::current_exe().map_err(|e| { |