Lightweight coding agent that runs in your terminal
Rust
Handle audio inputs and Bazel unit test arguments (#33929)
sayan-oai15d7d2a7337e
diff --git a/codex-rs/thread-store/src/local/thread_history/search.rs b/codex-rs/thread-store/src/local/thread_history/search.rsindex a96b341cef..89b2a81d38 100644--- a/codex-rs/thread-store/src/local/thread_history/search.rs+++ b/codex-rs/thread-store/src/local/thread_history/search.rs@@ -235,6 +235,8 @@ fn searchable_text(item: &ThreadItem) -> Option<Cow<'_, str>> {UserInput::Text { text, .. } => Some(strip_user_message_prefix(text)),UserInput::Image { .. }| UserInput::LocalImage { .. }+ | UserInput::Audio { .. }+ | UserInput::LocalAudio { .. }| UserInput::Skill { .. }| UserInput::Mention { .. } => None,})diff --git a/defs.bzl b/defs.bzlindex 8eb70ed9e4..eaec9305b9 100644--- a/defs.bzl+++ b/defs.bzl@@ -194,6 +194,7 @@ def codex_rust_crate(deps_extra = [],integration_compile_data_extra = [],integration_test_args = [],+ unit_test_args = [],integration_test_timeout = None,test_data_extra = [],test_shard_counts = {},@@ -230,6 +231,7 @@ def codex_rust_crate(Typically only needed when features add additional deps.integration_compile_data_extra: Extra compile_data for integration tests.integration_test_args: Optional args for integration test binaries.+ unit_test_args: Optional args for the unit test binary.integration_test_timeout: Optional Bazel timeout for integration testtargets generated from `tests/*.rs`.test_data_extra: Extra runtime data for tests.@@ -347,6 +349,8 @@ def codex_rust_crate()unit_test_kwargs = {}+ if unit_test_args:+ unit_test_kwargs["args"] = unit_test_argsif unit_test_timeout:unit_test_kwargs["timeout"] = unit_test_timeoutif unit_test_shard_count: