Skip to content

fix(web): reset attachment inputs when starting a new conversation - #45554

Merged
WTW0313 merged 1 commit into
lts/1.17.xfrom
fix/web-app-files-lts-1.17.x
Nov 4, 2026
Merged

WTW0313 merged 1 commit into
lts/1.17.xfrom
fix/web-app-files-lts-1.17.x

Conversation

@WTW0313

@WTW0313 WTW0313 commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

Important

  1. Make sure you have read our contribution guidelines
  2. Ensure there is an associated issue
  3. Use the correct syntax to link this PR: Fixes #<issue number>.

Summary

Partially backport #44780 to lts/1.17.x for ENG-1415 issue 2. Restore form
inputs before switching conversations, recreate file uploaders during
reset and on conversation changes, and ignore uploads after their
provider unmounts.

Include regressions for single and multiple file inputs, input defaults,
unsent conversations, conversation switches, StrictMode, and delayed
upload callbacks.

Fixes Linear ENG-1415

Screenshots

Before After
... ...

Checklist

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • I've verified the change and added or updated tests where meaningful regression risk justifies coverage.
  • I've updated the documentation accordingly.
  • I ran make lint && make type-check (backend) and vp staged (frontend) to appease the lint gods

Partially backport #44780 to lts/1.17.x for ENG-1415 issue 2. Restore form
inputs before switching conversations, recreate file uploaders during
reset and on conversation changes, and ignore uploads after their
provider unmounts.

Include regressions for single and multiple file inputs, input defaults,
unsent conversations, conversation switches, StrictMode, and delayed
upload callbacks.

(cherry picked from commit 430d9af)
@github-actions github-actions Bot added web This relates to changes on the web. size:L This PR changes 100-499 lines, ignoring generated files. labels Nov 4, 2026
@WTW0313
WTW0313 marked this pull request as ready for review November 4, 2026 09:41
@WTW0313
WTW0313 requested a review from a team November 4, 2026 09:41
@codecov

codecov Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (lts/1.17.x@99ddf7e). Learn more about missing BASE report.

Additional details and impacted files
@@              Coverage Diff              @@
##             lts/1.17.x   #45554   +/-   ##
=============================================
  Coverage              ?   87.74%           
=============================================
  Files                 ?     3795           
  Lines                 ?   135921           
  Branches              ?    44047           
=============================================
  Hits                  ?   119270           
  Misses                ?    16651           
  Partials              ?        0           
Flag Coverage Δ
dify-ui 93.73% <ø> (?)
web 87.70% <100.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@WTW0313
WTW0313 merged commit b3c94ba into lts/1.17.x Nov 4, 2026
23 checks passed
@WTW0313
WTW0313 deleted the fix/web-app-files-lts-1.17.x branch November 4, 2026 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L This PR changes 100-499 lines, ignoring generated files. web This relates to changes on the web.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants