@caupulican/pi-adaptative 0.80.13 → 0.80.15

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.
@@ -62,7 +62,7 @@ import { SettingsSelectorComponent } from "./components/settings-selector.js";
62
62
  import { SkillInvocationMessageComponent } from "./components/skill-invocation-message.js";
63
63
  import { ToolExecutionComponent } from "./components/tool-execution.js";
64
64
  import { ToolGroupComponent } from "./components/tool-group.js";
65
- import { getToolPanelActionKey, ToolPanelRegistry } from "./components/tool-panel-registry.js";
65
+ import { getToolPanelActionKey, shouldReuseToolPanelInPlace, ToolPanelRegistry, } from "./components/tool-panel-registry.js";
66
66
  import { TreeSelectorComponent } from "./components/tree-selector.js";
67
67
  import { TrustSelectorComponent } from "./components/trust-selector.js";
68
68
  import { UserMessageComponent } from "./components/user-message.js";
@@ -1569,6 +1569,13 @@ export class InteractiveMode {
1569
1569
  const toolDefinition = this.getRegisteredToolDefinition(toolName);
1570
1570
  const existing = this.toolPanels.getReusable(actionKey);
1571
1571
  if (existing) {
1572
+ if (shouldReuseToolPanelInPlace(toolName, args)) {
1573
+ existing.resetInvocation(toolName, toolCallId, args, toolDefinition);
1574
+ existing.setExpanded(this.toolOutputExpanded);
1575
+ this.toolPanels.register(toolCallId, existing, actionKey);
1576
+ this.ui.requestRender();
1577
+ return existing;
1578
+ }
1572
1579
  this.detachToolExecutionComponent(existing);
1573
1580
  existing.resetInvocation(toolName, toolCallId, args, toolDefinition);
1574
1581
  existing.setExpanded(this.toolOutputExpanded);