We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07ba8bd commit 9ef56e6Copy full SHA for 9ef56e6
1 file changed
cecli/coders/agent_coder.py
@@ -32,8 +32,6 @@
32
from .base_coder import Coder
33
34
from cecli.helpers.coroutines import interruptible # isort:skip
35
-
36
37
class AgentCoder(Coder):
38
"""Mode where the LLM autonomously manages which files are in context."""
39
@@ -303,9 +301,11 @@ async def _execute_local_tool_calls(self, tool_calls_list):
303
301
else:
304
302
all_results_content.append(f"Error: Unknown tool name '{tool_name}'")
305
if tasks:
306
- gather_coro = asyncio.gather(*tasks, return_exceptions=True)
+ async def gather_and_await():
+ return await asyncio.gather(*tasks, return_exceptions=True)
+
307
task_results, interrupted = await interruptible(
308
- gather_coro, self.interrupt_event
+ gather_and_await(), self.interrupt_event
309
)
310
311
if interrupted:
0 commit comments