From 37138e64a75f2c5f12ae17ae338ed74f57e3d919 Mon Sep 17 00:00:00 2001 From: jif-oai Date: Tue, 2 Dec 2025 10:08:29 +0000 Subject: [PATCH] move push_input to tests --- codex-rs/core/src/client_common.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/codex-rs/core/src/client_common.rs b/codex-rs/core/src/client_common.rs index 27826f81bd..cf3a71a0f6 100644 --- a/codex-rs/core/src/client_common.rs +++ b/codex-rs/core/src/client_common.rs @@ -64,10 +64,6 @@ impl PromptBuilder { self } - pub fn push_input(&mut self, item: ResponseItem) { - self.input.push(item); - } - pub(crate) fn with_tools(mut self, tools: Vec) -> Self { self.tools = tools; self @@ -373,6 +369,13 @@ mod tests { pub slug: &'static str, pub expects_apply_patch_instructions: bool, } + + impl PromptBuilder { + pub fn push_input(&mut self, item: ResponseItem) { + self.input.push(item); + } + } + #[test] fn get_full_instructions_no_user_content() { let prompt = PromptBuilder {