#281 — [Bug]: Cross talk between tenants chat histories
Repo: Twill-AI/facade State: closed | Status: done Assignee: Unassigned
Created: 2025-01-28 · Updated: 2025-09-15
Description
Steps to reproduce
- In staging log in to the platform with two different users at the same time
- Make sure you are on chats with the same chat_id (you can check the URL) on both accounts
- Say your name in one chat
- Ask what your name is on the other chat. You’ll get the information from the previous one.
Expected behavior
Both histories should be separate
Actual behavior
There is cross talk:
The source of the issue is here:
There is a chat history cache that is indexed by chat_id but this number is sequential by tenant so two tenants will get chat ids 1,2,3,4,5,6 … If two people happen to be chatting using the same id’s close in time (so that data is retrieved from the cache instead of the DB) there is cross talk.
Notes
Add implementation notes, blockers, and context here
Related
Add wikilinks to related people, meetings, or other tickets