From e42125a1bb50f7c6e0185df4709735fcd3799b13 Mon Sep 17 00:00:00 2001 From: deci Date: Mon, 12 May 2025 23:51:16 -0500 Subject: [PATCH] Fix: Input tool session management --- python/tools/input.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/tools/input.py b/python/tools/input.py index c55a62d61..12dcf1cf5 100644 --- a/python/tools/input.py +++ b/python/tools/input.py @@ -8,10 +8,10 @@ class Input(Tool): async def execute(self, keyboard="", session=0, **kwargs): # normalize keyboard input keyboard = keyboard.rstrip() - keyboard += "\n" + keyboard += "\\n" # forward keyboard input to code execution tool - args = {"runtime": "terminal", "code": keyboard} + args = {"runtime": "terminal", "code": keyboard, "session": session} cot = CodeExecution(self.agent, "code_execution_tool", "", args, self.message) cot.log = self.log return await cot.execute(**args)