@kolisachint/hoocode-agent 0.4.10 → 0.4.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2234,14 +2234,16 @@ export class InteractiveMode {
2234
2234
  this.ui.requestRender();
2235
2235
  }
2236
2236
  else if (event.message.role === "user") {
2237
+ // A new user message starts a new turn: retire any finished subagent
2238
+ // tasks from the previous turn. Finished tasks stay visible (with their
2239
+ // final status, tokens, and time) until this point — not the moment they
2240
+ // finish — so their outcome remains glanceable for the whole turn.
2241
+ taskStore.retireFinished();
2237
2242
  this.addMessageToChat(event.message);
2238
2243
  this.updatePendingMessagesDisplay();
2239
2244
  this.ui.requestRender();
2240
2245
  }
2241
2246
  else if (event.message.role === "assistant") {
2242
- // Main agent is moving on to its next turn: retire any finished subagent
2243
- // tasks that were kept visible after a parallel spawn.
2244
- taskStore.retireFinished();
2245
2247
  this.streamingComponent = new AssistantMessageComponent(undefined, this.hideThinkingBlock, this.getMarkdownThemeWithSettings(), this.hiddenThinkingLabel);
2246
2248
  this.streamingMessage = event.message;
2247
2249
  this.chatContainer.addChild(this.streamingComponent);