Files
codex/prs/bolinfest/PR-2864.md
2025-09-02 15:17:45 -07:00

1.6 KiB

PR #2864: Fix CI release build

Description

(No description.)

Full Diff

diff --git a/codex-rs/tui/src/slash_command.rs b/codex-rs/tui/src/slash_command.rs
index c266c4746a..3268a92a2d 100644
--- a/codex-rs/tui/src/slash_command.rs
+++ b/codex-rs/tui/src/slash_command.rs
@@ -66,8 +66,10 @@ impl SlashCommand {
             | SlashCommand::Mention
             | SlashCommand::Status
             | SlashCommand::Mcp
-            | SlashCommand::Quit
-            | SlashCommand::TestApproval => true,
+            | SlashCommand::Quit => true,
+
+            #[cfg(debug_assertions)]
+            SlashCommand::TestApproval => true,
         }
     }
 }

Review Comments

codex-rs/tui/src/slash_command.rs

@@ -62,12 +62,19 @@ impl SlashCommand {
             | SlashCommand::Model
             | SlashCommand::Approvals
             | SlashCommand::Logout => false,
+            #[cfg(debug_assertions)]
             SlashCommand::Diff
             | SlashCommand::Mention
             | SlashCommand::Status
             | SlashCommand::Mcp
             | SlashCommand::Quit
             | SlashCommand::TestApproval => true,
+            #[cfg(not(debug_assertions))]
+            SlashCommand::Diff

Why are we disabling diff instead of TestCommand?