Skip to content

Commit 9ef56e6

Browse files
author
Your Name
committed
cli-9: fix formatting
1 parent 07ba8bd commit 9ef56e6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

cecli/coders/agent_coder.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@
3232
from .base_coder import Coder
3333

3434
from cecli.helpers.coroutines import interruptible # isort:skip
35-
36-
3735
class AgentCoder(Coder):
3836
"""Mode where the LLM autonomously manages which files are in context."""
3937

@@ -303,9 +301,11 @@ async def _execute_local_tool_calls(self, tool_calls_list):
303301
else:
304302
all_results_content.append(f"Error: Unknown tool name '{tool_name}'")
305303
if tasks:
306-
gather_coro = asyncio.gather(*tasks, return_exceptions=True)
304+
async def gather_and_await():
305+
return await asyncio.gather(*tasks, return_exceptions=True)
306+
307307
task_results, interrupted = await interruptible(
308-
gather_coro, self.interrupt_event
308+
gather_and_await(), self.interrupt_event
309309
)
310310

311311
if interrupted:

0 commit comments

Comments
 (0)