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"' "" \