From fe194c34fec0d2c0c97314502a394f8174405761 Mon Sep 17 00:00:00 2001 From: Chris Busillo Date: Sun, 24 May 2026 02:55:49 -0400 Subject: [PATCH] test: check agent stdin without heredoc pipe --- code-rs/core/src/agent_tool.rs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/code-rs/core/src/agent_tool.rs b/code-rs/core/src/agent_tool.rs index 3974a7a087b..d3f9634701b 100644 --- a/code-rs/core/src/agent_tool.rs +++ b/code-rs/core/src/agent_tool.rs @@ -3339,16 +3339,7 @@ mod tests { #[cfg(unix)] fn write_stdin_mode_script(path: &Path) { let script = r#"#!/bin/sh -python3 - <<'PY' -import os -import stat - -mode = os.fstat(0).st_mode -if stat.S_ISFIFO(mode): - print("fifo") -else: - print("detached") -PY +python3 -c 'import os, stat; print("fifo" if stat.S_ISFIFO(os.fstat(0).st_mode) else "detached")' exit 0 "#; std::fs::write(path, script).expect("write stdin mode script");