The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
perf(environments): skip stdin staging for empty payloads
kshitijk4poor8f5b5cd88b0d
diff --git a/tools/environments/daytona.py b/tools/environments/daytona.pyindex 8722d37c9ce..f4d4235ec13 100644--- a/tools/environments/daytona.py+++ b/tools/environments/daytona.py@@ -162,7 +162,7 @@ class DaytonaEnvironment(BaseEnvironment):def exec_fn() -> tuple[str, int]:command = cmd_string- if stdin_data is not None:+ if stdin_data: # empty stdin == no stdin, as on base (heredoc skipped it)with lock:if state["cancelled"]:return ("", 130)diff --git a/tools/environments/vercel_sandbox.py b/tools/environments/vercel_sandbox.pyindex 716c10e47fc..7149b37ec58 100644--- a/tools/environments/vercel_sandbox.py+++ b/tools/environments/vercel_sandbox.py@@ -365,7 +365,7 @@ class VercelSandboxEnvironment(BaseEnvironment):def exec_fn() -> tuple[str, int]:command = cmd_string- if stdin_data is not None:+ if stdin_data: # empty stdin == no stdin, as on base (heredoc skipped it)with lock:if state["cancelled"]:return ("", 130)