Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
feat(cli): display real-time tool execution updates
Jiayuanaaf0522303bd
diff --git a/src/agent/output.ts b/src/agent/output.tsindex e14e546bc1..e5132fc2fb 100644--- a/src/agent/output.ts+++ b/src/agent/output.ts@@ -120,7 +120,18 @@ export function createAgentOutput(params: {case "tool_execution_start":params.stderr.write(`${formatToolLine(event.toolName, event.args)}\n`);break;+ case "tool_execution_update": {+ // Show real-time output updates (e.g., from exec tool)+ const updateText = extractText(event.partialResult);+ if (updateText) {+ // Clear line and show latest tail output+ params.stderr.write(`\r\x1b[K ↳ ${updateText.slice(-60).replace(/\n/g, " ")}`);+ }+ break;+ }case "tool_execution_end":+ // Clear any update line from tool_execution_update+ params.stderr.write("\r\x1b[K");if (event.isError) {const errorText = extractText(event.result) || "Tool failed";params.stderr.write(`• Tool error (${toolDisplayName(event.toolName)}): ${errorText}\n`);