diff --git a/agent_cost_estimator/gui.py b/agent_cost_estimator/gui.py index 0b18e46..f229261 100644 --- a/agent_cost_estimator/gui.py +++ b/agent_cost_estimator/gui.py @@ -1038,9 +1038,11 @@ class AgentCostEstimatorGUI: ) self._item_data[expand_item_id] = f"{harness_name}:{next_count}" - # Expand all harness nodes + # Expand only the default harness node for item in self.tree.get_children(): - self.tree.item(item, open=True) + item_text = self.tree.item(item, "text") + if item_text == self.settings.default_harness: + self.tree.item(item, open=True) # Update status total_sessions = sum( @@ -1431,7 +1433,9 @@ class AgentCostEstimatorGUI: expand_item.setText(5, "") expand_item.setData(0, self.Qt.UserRole, f"{harness_name}:{next_count}") - harness_item.setExpanded(True) + # Expand only the default harness + if harness_name == self.settings.default_harness: + harness_item.setExpanded(True) # Update status total_sessions = sum(len(h.sessions) for h in harnesses.values())