-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Description
Version : Chainlit 2.9.3 (also seen on 2.9.2)
Environment: macOS, Chrome; app running via chainlit run backend/src/app.py -w
Description: After switching ChatProfile, attaching a file (PDF/DOCX) causes the message composer/Send button to remain disabled for ~60–120s. The upload request eventually returns 200 OK, then Send re-enables.
Steps to Reproduce:
Start app.
Switch ChatProfile (e.g., chatProfile1 -> chatProfile2).
Attach a PDF/DOCX via the input paperclip and write up some text.
Observe Send button disabled for a long time.
Expected: Upload finishes quickly and Send is re-enabled immediately (or within a few seconds).
Actual: Upload request stays “pending” for a long time; Send remains disabled until it finishes.
Evidence:
Network: POST /project/file?session_id=... eventually returns 200 OK after ~1–2 minutes.