Skip to content

File upload keeps composer disabled for ~1–2 min after switching ChatProfile (webapp) #2723

@deepak-joshi-colombo-and-hurd

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-triagestaleIssue has not had recent activity or appears to be solved. Stale issues will be automatically closed

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions