chainlit icon indicating copy to clipboard operation
chainlit copied to clipboard

BUG/TEAMS Integration : Maintain Chat Session Context and Prevent New Thread on Each Message

Open dominpm opened this issue 7 months ago • 4 comments
trafficstars

When using Chainlit’s Microsoft Teams integration, each new user message currently reloads the chat and starts a new thread, causing a loss of conversation context. This makes it difficult to build conversational bots that rely on persistent sessions and memory.

I would be really good to have:

  • The ability to maintain a chat session within an existing Teams conversation, so that context is preserved across messages.
  • A memory feature that allows the bot to remember previous interactions within the same Teams chat.
  • Documentation or guidance on how a new session could be intentionally triggered (e.g., via a command or specific message), rather than starting a new session with every new message by default.

Questions:

  • Is there a recommended approach for session management and memory persistence with Teams integration?
  • How could developers override the current new-thread behavior to implement custom session logic?
  • Would it be possible to provide an example of how to programmatically start or reset a session when needed?

Any support, examples, or roadmap updates on this would be greatly appreciated!

dominpm avatar Apr 16 '25 10:04 dominpm