From 286fd1e8e6a11a4f0bc176195e57789439315a3f Mon Sep 17 00:00:00 2001 From: Mery-Sanz Date: Fri, 9 May 2025 07:18:23 +0200 Subject: [PATCH] start tool time fixed --- src/cai/tools/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cai/tools/common.py b/src/cai/tools/common.py index 3b2bc259..2b4327da 100644 --- a/src/cai/tools/common.py +++ b/src/cai/tools/common.py @@ -507,7 +507,7 @@ def _run_local_streamed(command, call_id, timeout=100, tool_name=None, workspace from cai.util import cli_print_tool_output output_buffer = [] - + start_time = time.time() # Start the process process = subprocess.Popen( command, @@ -545,7 +545,7 @@ def _run_local_streamed(command, call_id, timeout=100, tool_name=None, workspace header.append(args_str, style="yellow") header.append(")", style="yellow") tool_time = 0 - start_time = time.time() + total_time = 0 if START_TIME is not None: total_time = time.time() - START_TIME