From 12f47d319e2895b8e0cc74d0100e40d835845cf4 Mon Sep 17 00:00:00 2001 From: Zvonimir Sabljic Date: Mon, 12 Aug 2024 13:52:02 -0700 Subject: [PATCH] Fix --- core/agents/spec_writer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/agents/spec_writer.py b/core/agents/spec_writer.py index 9699fa255..ef67b7243 100644 --- a/core/agents/spec_writer.py +++ b/core/agents/spec_writer.py @@ -109,7 +109,8 @@ async def update_spec(self, iteration_mode) -> AgentResponse: default="yes", buttons_only=True, ) - await self.ui.close_diff() + if hasattr(self.ui, "close_diff"): + await self.ui.close_diff() if user_response.button == "yes": self.next_state.specification = self.current_state.specification.clone()