The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(code_execution): heartbeat is a background-only terminal modifier, blocked in the sandbox
teknium19acd0d33b61c
diff --git a/tests/tools/test_code_execution.py b/tests/tools/test_code_execution.pyindex 7ccb2b48b79..2d3ba82c921 100644--- a/tests/tools/test_code_execution.py+++ b/tests/tools/test_code_execution.py@@ -428,7 +428,7 @@ class TestStubSchemaDrift(unittest.TestCase):# Parameters that are internal (injected by the handler, not user-facing)_INTERNAL_PARAMS = {"task_id", "user_task"}# Parameters intentionally blocked in the sandbox- _BLOCKED_TERMINAL_PARAMS = {"background", "pty", "notify", "notify_on_complete", "watch_patterns"}+ _BLOCKED_TERMINAL_PARAMS = {"background", "pty", "notify", "notify_on_complete", "watch_patterns", "heartbeat"}def test_stubs_cover_all_schema_params(self):"""Every user-facing parameter in the real schema must appear in thediff --git a/tools/code_execution_rpc.py b/tools/code_execution_rpc.pyindex eae6ccc6d88..c7bc1e9f3fb 100644--- a/tools/code_execution_rpc.py+++ b/tools/code_execution_rpc.py@@ -22,7 +22,7 @@ from tools.registry import tool_errorlogger = logging.getLogger("tools.code_execution_tool")# Terminal parameters that must not be used from ephemeral sandbox scripts.-_TERMINAL_BLOCKED_PARAMS = {"background", "pty", "notify", "notify_on_complete", "watch_patterns"}+_TERMINAL_BLOCKED_PARAMS = {"background", "pty", "notify", "notify_on_complete", "watch_patterns", "heartbeat"}def _default_dispatch(task_id):