{"record":{"id":"60eb1c0a8a4d9fd2","repo":"openai/codex","slug":"terminal-stderr-suppression-is-already-active","errorCode":null,"errorMessage":"terminal stderr suppression is already active","messagePattern":"terminal stderr suppression is already active","errorType":"exception","errorClass":"std::io::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/tui/src/tui/terminal_stderr.rs","lineNumber":78,"sourceCode":"        }\n\n        #[cfg(target_os = \"macos\")]\n        {\n            let mut state = lock_state()?;\n            if !state.owner_active {\n                suppress_locked(&mut state)?;\n                state.owner_active = true;\n            }\n        }\n\n        Ok(())\n    }\n\n    #[cfg(target_os = \"macos\")]\n    fn install_suppression() -> io::Result<Self> {\n        let mut state = lock_state()?;\n        if state.owner_active {\n            return Err(io::Error::new(\n                io::ErrorKind::AlreadyExists,\n                \"terminal stderr suppression is already active\",\n            ));\n        }\n        suppress_locked(&mut state)?;\n        state.owner_active = true;\n        Ok(Self { active: true })\n    }\n}\n\nimpl Drop for TerminalStderrGuard {\n    fn drop(&mut self) {\n        if self.active {\n            let _ = finish();\n            self.active = false;\n        }\n    }\n}","sourceCodeStart":60,"sourceCodeEnd":96,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/tui/src/tui/terminal_stderr.rs#L60-L96","documentation":"Error \"terminal stderr suppression is already active\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/tui/src/tui/terminal_stderr.rs:78 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","schemaVersion":2},"datasetVersion":"2026-08-25T06:17:31.827Z"}