Botched: Need to do a higher reaosning model to fix this mess.
This commit is contained in:
@@ -103,9 +103,10 @@ class WorkflowSimulator:
|
||||
print(f"\n[DEBUG] {elapsed:.1f}s - status: '{status}', roles: {roles}")
|
||||
last_debug_time = elapsed
|
||||
|
||||
if "error" in status:
|
||||
print(f"\n[ABORT] GUI reported error status: {status}")
|
||||
return last_ai_entry if last_ai_entry else {"role": "AI", "content": f"ERROR: {status}"}
|
||||
if "error" in status:
|
||||
resp = self.client.get_value("ai_response")
|
||||
print(f"\n[ABORT] GUI reported error status: {status} | AI Response: {resp}")
|
||||
return last_ai_entry if last_ai_entry else {"role": "AI", "content": f"ERROR: {status}"}
|
||||
|
||||
# Turn completion logic:
|
||||
# 1. Transition: we were busy and now we are not, and the last role is AI.
|
||||
|
||||
Reference in New Issue
Block a user