#67 — [Bug]: wrong WebSocket ChatPromptText for “Query Widget” page.

Repo: Twill-AI/twill-ai-ui State: closed | Status: done Assignee: Unassigned

Created: 2024-10-16 · Updated: 2025-03-11

Description

Caused by https://github.com/Twill-AI/facade/issues/118

Steps to reproduce

  1. In staging login under any user, open any Query with widget
  2. Click widget title to open “Query Widget” page.
  3. Open DevTools in browser, open WebSocket communication (“Request” tab for request like “GET wss://staging.twillai.com/api/v1/ws/**” in “Network” tab).
  4. Type into LLM chat input something and press Enter.

What was the expected behavior?

ChatPromptText.data contains origin_type=widget and origin_id with widget ID. sid may be any. From the next ChatResponseStatus UI parses data.for_llmchat.id to use as sid to track LLM chat communication.

Expected behavior

See screenshot and description in https://github.com/Twill-AI/facade/issues/118. As ChatPromptText.sid is used Widget ID.

In result back-end behaves incorrectly and we may get linked wrong LLM Chat as “serving widget”.

Notes

Add implementation notes, blockers, and context here

Add wikilinks to related people, meetings, or other tickets