{"record":{"id":"9a7544ac8b3ad79f","repo":"openai/codex","slug":"pid-managed-app-server-startup-is-unsupported-on-t","errorCode":null,"errorMessage":"pid-managed app-server startup is unsupported on this platform","messagePattern":"pid-managed app-server startup is unsupported on this platform","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/app-server-daemon/src/backend/pid.rs","lineNumber":237,"sourceCode":"            return Err(err).with_context(|| {\n                format!(\"failed to write pid temp file {}\", temp_pid_file.display())\n            });\n        }\n        if let Err(err) = fs::rename(&temp_pid_file, &self.pid_file).await {\n            let _ = self.terminate_process(pid);\n            let _ = fs::remove_file(&temp_pid_file).await;\n            let _ = fs::remove_file(&self.pid_file).await;\n            return Err(err).with_context(|| {\n                format!(\"failed to publish pid file {}\", self.pid_file.display())\n            });\n        }\n        drop(reservation_lock);\n        Ok(Some(pid))\n    }\n\n    #[cfg(not(unix))]\n    pub(crate) async fn start(&self) -> Result<Option<u32>> {\n        bail!(\"pid-managed app-server startup is unsupported on this platform\")\n    }\n\n    pub(crate) async fn stop(&self) -> Result<()> {\n        loop {\n            let Some(record) = self.wait_for_pid_start().await? else {\n                return Ok(());\n            };\n            if !self.record_is_active(&record).await? {\n                match self.refresh_after_stale_record(&record).await? {\n                    PidFileState::Missing => return Ok(()),\n                    PidFileState::Starting | PidFileState::Running(_) => continue,\n                }\n            }\n\n            let pid = record.pid;\n            self.terminate_process(pid)?;\n            let started_at = tokio::time::Instant::now();\n            let deadline = tokio::time::Instant::now() + STOP_TIMEOUT;","sourceCodeStart":219,"sourceCodeEnd":255,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/app-server-daemon/src/backend/pid.rs#L219-L255","documentation":"Platform-support guard in the daemon's pid-based start path: pid-file-managed app-server startup is only implemented on supported platforms, and the current OS is not one of them. The call to start fails unconditionally rather than attempting behavior that could corrupt pid bookkeeping; it is a sentinel error, not a runtime fault.","triggerScenarios":"Thrown at codex-rs/app-server-daemon/src/backend/pid.rs:237 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a supported platform for pid-managed daemon startup","Fall back to a non-pid-managed launch strategy on unsupported platforms","Gate daemon start behind a platform capability check before invoking it"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}