From 500e176de4c561c97d053e2377fe55a9b7e7ca4e Mon Sep 17 00:00:00 2001 From: pakrym-oai Date: Thu, 9 Jul 2026 16:03:59 -0700 Subject: [PATCH] core: retain workspace command diagnostics --- codex-rs/core/tests/suite/workspace_roots.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/codex-rs/core/tests/suite/workspace_roots.rs b/codex-rs/core/tests/suite/workspace_roots.rs index 1e48d99b0a..eae2ec4929 100644 --- a/codex-rs/core/tests/suite/workspace_roots.rs +++ b/codex-rs/core/tests/suite/workspace_roots.rs @@ -212,7 +212,9 @@ async fn workspace_roots_allow_file_read_and_command_run() -> Result<()> { .context("command result should be present")?; assert_ne!(success, Some(false)); assert!( - command_output.is_some_and(|output| output.contains(COMMAND_CONTENTS)), + command_output + .as_deref() + .is_some_and(|output| output.contains(COMMAND_CONTENTS)), "command should read the workspace-root file, got {command_output:?}" );