fix(gui2): Correct Response panel rendering and fix automation crashes

This commit is contained in:
2026-02-24 21:56:26 -05:00
parent fb9ee27b38
commit 14984c5233
12 changed files with 103 additions and 64 deletions

View File

@@ -1127,6 +1127,10 @@ class App:
"""Rebuild the discussion selector UI: listbox + metadata for active discussion."""
if not dpg.does_item_exist("disc_selector_group"):
return
for tag in ["disc_listbox", "disc_new_name_input", "btn_disc_create", "btn_disc_rename", "btn_disc_delete"]:
if dpg.does_item_exist(tag):
try: dpg.delete_item(tag)
except: pass
dpg.delete_item("disc_selector_group", children_only=True)
names = self._get_discussion_names()
@@ -1378,6 +1382,15 @@ class App:
ai_client.clear_comms_log()
self._tool_log.clear()
self._rebuild_tool_log()
self.disc_entries.clear()
self._rebuild_disc_list()
# Clear history in project dict too
disc_sec = self.project.get("discussion", {})
discussions = disc_sec.get("discussions", {})
if self.active_discussion in discussions:
discussions[self.active_discussion]["history"] = []
with self._pending_comms_lock:
self._pending_comms.clear()
self._comms_entry_count = 0