diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-07-03 22:18:14 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-07-03 22:18:14 -0700 |
commit | c4ab2657c07b23d2c62acde7829ad33f98c8cd7f (patch) | |
tree | 38bd1704461102f7b71219841b3b0e9511300ecc /continuedev/src/continuedev/server | |
parent | ed85171a423048a2a11a7d2a911dea8c4f332324 (diff) | |
download | sncontinue-c4ab2657c07b23d2c62acde7829ad33f98c8cd7f.tar.gz sncontinue-c4ab2657c07b23d2c62acde7829ad33f98c8cd7f.tar.bz2 sncontinue-c4ab2657c07b23d2c62acde7829ad33f98c8cd7f.zip |
slash commands and better designed user input box
Diffstat (limited to 'continuedev/src/continuedev/server')
-rw-r--r-- | continuedev/src/continuedev/server/gui.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/continuedev/src/continuedev/server/gui.py b/continuedev/src/continuedev/server/gui.py index 9a33fb6c..b2f23bac 100644 --- a/continuedev/src/continuedev/server/gui.py +++ b/continuedev/src/continuedev/server/gui.py @@ -94,12 +94,6 @@ class GUIProtocolServer(AbstractGUIProtocolServer): "state": state }) - async def send_available_slash_commands(self): - commands = await self.session.autopilot.get_available_slash_commands() - await self._send_json("available_slash_commands", { - "commands": commands - }) - def on_main_input(self, input: str): # Do something with user input asyncio.create_task(self.session.autopilot.accept_user_input(input)) @@ -147,8 +141,7 @@ async def websocket_endpoint(websocket: WebSocket, session: Session = Depends(we protocol.websocket = websocket # Update any history that may have happened before connection - await protocol.send_available_slash_commands() - # await protocol.send_state_update() THIS WAS CAUSING A LOT OF ISSUES. Don't uncomment. + await protocol.send_state_update() while AppStatus.should_exit is False: message = await websocket.receive_text() |