From 3a5374041e5a06f5ccec7f8d4ad2e388ddc510a4 Mon Sep 17 00:00:00 2001 From: nvaldez Date: Wed, 4 Nov 2026 17:47:38 +0100 Subject: [PATCH] feat: Only expand default harness by default in GUI - Tkinter: Modified _refresh_sessions to only expand harness node matching default_harness - Qt: Modified _refresh_sessions_qt to only expand harness matching default_harness - Other harnesses remain collapsed until user clicks to expand Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe --- agent_cost_estimator/gui.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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())