Cleaning up

This commit is contained in:
Adam Perry
2026-05-21 20:18:25 -07:00
parent 8618410ae2
commit b7c1f602b0
2 changed files with 4 additions and 1 deletions

View File

@@ -6,7 +6,9 @@ await-holding-invalid-types = [
"tokio::sync::RwLockWriteGuard",
]
disallowed-methods = [
{ path = "std::process::Command::spawn", reason = "Don't leak processes on Drop.", replacement = "codex_managed_process::CommandExt::spawn_managed" },
{ path = "std::process::Command::spawn",
reason = "Don't leak processes on Drop.",
replacement = "codex_managed_process::CommandExt::spawn_managed" },
{ path = "tokio::process::Command::spawn", reason = "Don't leak processes on Drop." },
{ path = "portable_pty::SlavePty::spawn_command", reason = "Don't leak processes on Drop." },
{ path = "ratatui::style::Color::Rgb", reason = "Use ANSI colors, which work better in various terminal themes." },

View File

@@ -13,6 +13,7 @@ use std::time::Duration;
use std::time::Instant;
use codex_managed_process::CommandExt;
const SYSTEM_BWRAP_PROGRAM: &str = "bwrap";
const MISSING_BWRAP_WARNING: &str = concat!(
"Codex could not find bubblewrap on PATH. ",