Fix: Input tool session management
deci committed
May 12, 2025 at 23:51 UTC
e42125a1bb50f7c6e0185df4709735fcd3799b13
1 file changed
+2
-2
python/tools/input.py
+2
-2
@@ -8,10 +8,10 @@ class Input(Tool):
8
async def execute(self, keyboard="", session=0, **kwargs):
9
# normalize keyboard input
10
keyboard = keyboard.rstrip()
11
- keyboard += "\n"
11
+ keyboard += "\\n"
12
13
# forward keyboard input to code execution tool
14
- args = {"runtime": "terminal", "code": keyboard}
14
+ args = {"runtime": "terminal", "code": keyboard, "session": session}
15
cot = CodeExecution(self.agent, "code_execution_tool", "", args, self.message)
16
cot.log = self.log
17
return await cot.execute(**args)