chainlit icon indicating copy to clipboard operation
chainlit copied to clipboard

PR "add the whole WSGI environ dict to the session" was incorrectly implemented and does not work

Open francisjervis opened this issue 7 months ago • 2 comments
trafficstars

Describe the bug "- [breaking]: http_referer, http_cookie and languages are no longer directly available in the session object. Instead, environ is available containing all of those plus other HTTP headers" is inaccurate. They are not available. See #2105

I also question the use of a parameter name with such strong associations with an existing fixture of Python (ie. os.). This is unnecessarily confusing vs eg wsgi_session or similar.

To Reproduce Steps to reproduce the behavior:

print(cl.user_session.get("environ")) None

Expected behavior environ is available containing all of those plus other HTTP headers

francisjervis avatar Apr 19 '25 02:04 francisjervis