Fix agent tool support, fix many other bugs

This commit is contained in:
Shivering Ocelot committed 2026-08-23 00:36:37 -05:00
1 parent 2b44dcebf4
commit 6c5140fb92
5 files changed
+79 -56

No files matched your search

+2
View File
@@ -111,6 +111,7 @@ async def start_server(app, shutdown_event):
try:
user_id = auth_manager.load_token(auth_req['token'])
if not await app.verify_user_id(user_id):
print("Invalid Token");
await websocket.send(json.dumps({'error': 'invalid credentials'}))
return
except Exception as err:
@@ -125,6 +126,7 @@ async def start_server(app, shutdown_event):
user_id = app.verify_user_credentials(auth_req['username'], auth_req['password'])
if user_id is None:
print("Invalid Credentials");
await websocket.send(json.dumps({'error': 'invalid credentials'}))
return