From ef459463e6dadc163dbcd565695e3cd8a95fe054 Mon Sep 17 00:00:00 2001 From: Mase Graye Date: Wed, 25 Oct 2023 16:03:33 -0500 Subject: [PATCH] Make give_user_input async (#584) The only callsite in gui.py expects this to be async or return a coroutine. --- server/continuedev/core/autopilot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/continuedev/core/autopilot.py b/server/continuedev/core/autopilot.py index 6ab7750e8..7fcedf04f 100644 --- a/server/continuedev/core/autopilot.py +++ b/server/continuedev/core/autopilot.py @@ -232,7 +232,7 @@ class Autopilot(ContinueBaseModel): for callback in self._on_update_callbacks: await callback(full_state) - def give_user_input(self, input: str, index: int): + async def give_user_input(self, input: str, index: int): self._user_input_queue.post(str(index), input) async def wait_for_user_input(self) -> str: