fix(gui2): Correct Response panel rendering and fix automation crashes
This commit is contained in:
@@ -48,11 +48,12 @@ class HookHandler(BaseHTTPRequestHandler):
|
||||
result = {}
|
||||
|
||||
def check_all():
|
||||
import dearpygui.dearpygui as dpg
|
||||
try:
|
||||
result["thinking"] = dpg.is_item_shown("thinking_indicator") if dpg.does_item_exist("thinking_indicator") else False
|
||||
result["live"] = dpg.is_item_shown("operations_live_indicator") if dpg.does_item_exist("operations_live_indicator") else False
|
||||
result["prior"] = dpg.is_item_shown("prior_session_indicator") if dpg.does_item_exist("prior_session_indicator") else False
|
||||
# Generic state check based on App attributes (works for both DPG and ImGui versions)
|
||||
status = getattr(app, "ai_status", "idle")
|
||||
result["thinking"] = status in ["sending...", "running powershell..."]
|
||||
result["live"] = status in ["running powershell...", "fetching url...", "searching web...", "powershell done, awaiting AI..."]
|
||||
result["prior"] = getattr(app, "is_viewing_prior_session", False)
|
||||
finally:
|
||||
event.set()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user