openai/codex · error · std::io::Error
process interrupt is not supported by this process backend
Error message
process interrupt is not supported by this process backend
What it means
unsupported_signal builds an io::Error with ErrorKind::Unsupported for ProcessSignal::Interrupt: the current process backend (used by signal()) does not implement interrupt delivery. This is a capability sentinel, not a runtime failure — the backend simply cannot honor the request.
Solutions
- Use a backend that supports interrupts (PTY-backed process) for interactive workloads
- Terminate via the supported kill/exit path instead of interrupt
- Check the backend capability before requesting Interrupt and degrade gracefully
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at codex-rs/utils/pty/src/process.rs:28 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of openai/codex@339751715c (2026-08-25).
Data as JSON: /api/errors/0c5f43388930250a.
Report an issue: GitHub.
Appendix: source
Thrown at codex-rs/utils/pty/src/process.rs:28
use anyhow::anyhow;
use portable_pty::MasterPty;
use portable_pty::PtySize;
use portable_pty::SlavePty;
use tokio::sync::broadcast;
use tokio::sync::mpsc;
use tokio::sync::oneshot;
use tokio::sync::watch;
use tokio::task::AbortHandle;
use tokio::task::JoinHandle;
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum ProcessSignal {
Interrupt,
}
pub(crate) fn unsupported_signal(signal: ProcessSignal) -> io::Error {
match signal {
ProcessSignal::Interrupt => io::Error::new(
io::ErrorKind::Unsupported,
"process interrupt is not supported by this process backend",
),
}
}
pub(crate) fn exit_code_from_status(status: ExitStatus) -> i32 {
if let Some(code) = status.code() {
return code;
}
#[cfg(unix)]
{
use std::os::unix::process::ExitStatusExt;
if let Some(signal) = status.signal() {
return 128 + signal;
}
}View on GitHub (pinned to 339751715c)