fix(coding-agent): show bash tool elapsed time at bottom closes #2406

This commit is contained in:
Mario Zechner
2026-03-19 22:12:02 +01:00
parent 241141dd82
commit a6337dc709
2 changed files with 54 additions and 3 deletions

View File

@@ -2260,8 +2260,9 @@ export class InteractiveMode {
break;
case "tool_execution_start": {
if (!this.pendingTools.has(event.toolCallId)) {
const component = new ToolExecutionComponent(
let component = this.pendingTools.get(event.toolCallId);
if (!component) {
component = new ToolExecutionComponent(
event.toolName,
event.args,
{
@@ -2273,8 +2274,9 @@ export class InteractiveMode {
component.setExpanded(this.toolOutputExpanded);
this.chatContainer.addChild(component);
this.pendingTools.set(event.toolCallId, component);
this.ui.requestRender();
}
component.markExecutionStarted();
this.ui.requestRender();
break;
}