generic_linux_command fix for CAI_STREAM=true

This commit is contained in:
lidia9 2025-04-29 14:25:43 +02:00
parent baa4be58c1
commit 41610dbbdd
1 changed files with 3 additions and 2 deletions

View File

@ -99,10 +99,11 @@ def generic_linux_command(command: str = "",
if stream and not call_id:
call_id = str(uuid.uuid4())[:8]
# Run the command with the appropriate parameters
# Run the command with the appropriate parameters - pass the actual tool name!
result = run_command(full_command, ctf=ctf,
async_mode=async_mode, session_id=session_id,
timeout=timeout, stream=stream, call_id=call_id)
timeout=timeout, stream=stream, call_id=call_id,
tool_name="generic_linux_command")
# For better output formatting, if we're in streaming mode, we can modify the output
# to include any additional information needed while still preventing the duplicate panel