{"record":{"id":"4c865fa481018791","repo":"openai/codex","slug":"separate-stderr-channel-should-be-present","errorCode":null,"errorMessage":"separate stderr channel should be present","messagePattern":"separate stderr channel should be present","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"codex-rs/windows-sandbox-rs/src/unified_exec/backends/legacy.rs","lineNumber":117,"sourceCode":"            command,\n            cwd,\n            env_map,\n            if stdin_open {\n                StdinMode::Open\n            } else {\n                StdinMode::Closed\n            },\n            StderrMode::Separate,\n            ConsoleMode::Inherit,\n            use_private_desktop,\n            logs_base_dir,\n        )?;\n        let stdout_join = spawn_output_reader(pipe_handles.stdout_read, stdout_tx);\n        let Some(stderr_read) = pipe_handles.stderr_read else {\n            anyhow::bail!(\"separate stderr handle should be present\");\n        };\n        let Some(stderr_tx) = stderr_tx else {\n            anyhow::bail!(\"separate stderr channel should be present\");\n        };\n        let stderr_join = spawn_output_reader(stderr_read, stderr_tx);\n        let output_join = std::thread::spawn(move || {\n            let _ = stdout_join.join();\n            let _ = stderr_join.join();\n        });\n        let writer_handle = spawn_input_writer(\n            pipe_handles.stdin_write,\n            writer_rx,\n            /*normalize_newlines*/ false,\n        );\n        (\n            pipe_handles.process,\n            pipe_handles.job(),\n            output_join,\n            writer_handle,\n            None,\n            None,","sourceCodeStart":99,"sourceCodeEnd":135,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/windows-sandbox-rs/src/unified_exec/backends/legacy.rs#L99-L135","documentation":"Error \"separate stderr channel should be present\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/windows-sandbox-rs/src/unified_exec/backends/legacy.rs:117 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Request a separate stderr channel when starting the exec session; otherwise treat it as an internal bug and retry."],"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"}