From 64d6c92525856a7302ea365a60b33d935adb1b51 Mon Sep 17 00:00:00 2001 From: Andrei Hasna Date: Tue, 28 Jul 2026 21:18:28 +0300 Subject: [PATCH] fix(app-server-daemon): gate idle timeout constant on Unix --- codex-rs/app-server-daemon/src/backend/pid.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/codex-rs/app-server-daemon/src/backend/pid.rs b/codex-rs/app-server-daemon/src/backend/pid.rs index ba49d8da1..14f084548 100644 --- a/codex-rs/app-server-daemon/src/backend/pid.rs +++ b/codex-rs/app-server-daemon/src/backend/pid.rs @@ -32,6 +32,7 @@ const STDERR_LOG_TAIL_BYTES: u64 = 4096; /// not accumulate, yet long enough that a quick relaunch or resume reconnects to /// the still-warm daemon instead of paying a cold start. Only the plain default /// daemon opts in; remote-control and update-loop daemons must outlive any TUI. +#[cfg(unix)] const PER_SESSION_IDLE_SHUTDOWN_GRACE_MS: &str = "30000"; #[derive(Debug)]