fix: route workspace through bulk WebSocket clients and merge query params (#970)

Bulk clients (sync and async) were not forwarding the workspace parameter,
causing all bulk operations to hit the default workspace regardless of the
Api instance's workspace setting. Also fixes the gateway socket endpoint to
pass query parameters (including workspace) to the dispatcher, and prevents
the auth handshake from overwriting an explicitly set workspace.

Updates knowledge table store tests for paged query interface.
This commit is contained in:
cybermaggedon 2026-06-02 14:19:15 +01:00 committed by GitHub
parent 6b1dd16f9f
commit 00bb964e93
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 67 additions and 73 deletions

View file

@ -117,8 +117,10 @@ class SocketEndpoint:
running = Running()
params = dict(request.query)
params.update(request.match_info)
dispatcher = await self.dispatcher(
ws, running, request.match_info
ws, running, params
)
worker_task = tg.create_task(