summaryrefslogtreecommitdiff
path: root/continuedev/src/continuedev/server
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-07-03 22:18:14 -0700
committerNate Sesti <sestinj@gmail.com>2023-07-03 22:18:14 -0700
commitaf3ce820326e632d2cbb4f1880024046c8aa00cb (patch)
tree9ff70c1ce76e111714f0e8fd747e1339abb17f6d /continuedev/src/continuedev/server
parent227c0635cf324ff212200fe38835b8015a3635bd (diff)
downloadsncontinue-af3ce820326e632d2cbb4f1880024046c8aa00cb.tar.gz
sncontinue-af3ce820326e632d2cbb4f1880024046c8aa00cb.tar.bz2
sncontinue-af3ce820326e632d2cbb4f1880024046c8aa00cb.zip
slash commands and better designed user input box
Diffstat (limited to 'continuedev/src/continuedev/server')
-rw-r--r--continuedev/src/continuedev/server/gui.py9
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()