Skip to content

Commit

Permalink
Make give_user_input async (#584)
Browse files Browse the repository at this point in the history
The only callsite in gui.py expects this to be async or return a coroutine.
  • Loading branch information
masegraye authored Oct 25, 2023
1 parent 570f61d commit ef45946
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/continuedev/core/autopilot.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ async def update_subscribers(self):
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:
Expand Down

0 comments on commit ef45946

Please sign in to comment.