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 <vibe@mistral.ai>
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user