From dfd9ad2abfb21fc977f2fe636af8f0d18c0b0d60 Mon Sep 17 00:00:00 2001 From: Sizhe Zhao Date: Sat, 26 Sep 2026 12:06:19 +0800 Subject: [PATCH] codex: disable daemon_auto_start --- pkgs/by-name/co/codex/no-daemon_auto_start.patch | 11 +++++++++++ pkgs/by-name/co/codex/package.nix | 5 +++++ 2 files changed, 16 insertions(+) create mode 100644 pkgs/by-name/co/codex/no-daemon_auto_start.patch diff --git a/pkgs/by-name/co/codex/no-daemon_auto_start.patch b/pkgs/by-name/co/codex/no-daemon_auto_start.patch new file mode 100644 index 000000000000..56fab3abe647 --- /dev/null +++ b/pkgs/by-name/co/codex/no-daemon_auto_start.patch @@ -0,0 +1,11 @@ +--- a/features/src/lib.rs ++++ b/features/src/lib.rs +@@ -941,7 +941,7 @@ + id: Feature::DaemonAutoStart, + key: "daemon_auto_start", + stage: Stage::Stable, +- default_enabled: true, ++ default_enabled: false, + }, + FeatureSpec { + id: Feature::TranscriptV2, diff --git a/pkgs/by-name/co/codex/package.nix b/pkgs/by-name/co/codex/package.nix index 74b6c397d282..a57aecab1feb 100644 --- a/pkgs/by-name/co/codex/package.nix +++ b/pkgs/by-name/co/codex/package.nix @@ -59,6 +59,11 @@ rustPlatform.buildRustPackage (finalAttrs: { "codex-code-mode-host" ]; + patches = [ + # https://github.com/openai/codex/issues/48195 + ./no-daemon_auto_start.patch + ]; + postPatch = '' substituteInPlace Cargo.toml \ --replace-fail 'lto = "thin"' "" \