#3052·chainlit

Thread endpoints may expose backend-specific metadata

Author: ayylemaoCreated Sep 22, 2026Updated Sep 22, 2026
Labelsneeds-triage

/project/thread/{thread_id}, thread listings, and the resume_thread socket event expose thread metadata to the client. This metadata may contain backend-specific state or non-public values.

The docs do not recommend storing secrets in thread metadata, but they also do not warn that it is exposed to users or advise against storing non-public information there.

Ideally, only metadata intended for the client should be exposed, while backend-specific metadata remains on the server.