fix : web front bugs

This commit is contained in:
martin legrand
2025-04-18 16:29:59 +02:00
parent 83c595144b
commit c030b55521
8 changed files with 28 additions and 4 deletions
+3
View File
@@ -57,6 +57,7 @@ class CoderAgent(Agent):
await asyncio.sleep(0)
break
animate_thinking("Executing code...", color="status")
self.status_message = "Executing code..."
exec_success, _ = self.execute_modules(answer)
answer = self.remove_blocks(answer)
self.last_answer = answer
@@ -65,8 +66,10 @@ class CoderAgent(Agent):
break
pretty_print("Execution failure", color="failure")
pretty_print("Correcting code...", color="status")
self.status_message = "Correcting code..."
self.show_answer()
attempt += 1
self.status_message = "Done"
if attempt == max_attempts:
return "I'm sorry, I couldn't find a solution to your problem. How would you like me to proceed ?", reasoning
return answer, reasoning