deerflow2/frontend/src/components
Nan Gao 4d3038a7b6
fix(frontend): stop artifact panel from auto-opening on rehydrated write_file (#2278)
After a page refresh, the artifact panel's autoOpen/autoSelect state is
reset to true. Submitting a new question flips thread.isLoading to true,
which message-list passes to every MessageGroup — including historical
ones. The previous response's last write_file step then satisfies the
auto-open condition and re-pops the stale artifact.

Gate the auto-open on the tool call having no result yet, so only a
write_file that is still streaming in the current response can trigger
it; rehydrated tool calls always carry a result and are now skipped.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-16 08:46:47 +08:00
..
ai-elements fix: wrap suggestion chips without overlapping input (#1895) 2026-04-06 16:30:57 +08:00
landing feat(blog): implement blog structure with post listing, tagging, and layout enhancements (#1962) 2026-04-10 20:24:52 +08:00
ui fix(frontend): resolve button hydration mismatch with undefined variant/size (#1506) 2026-04-04 11:21:04 +08:00
workspace fix(frontend): stop artifact panel from auto-opening on rehydrated write_file (#2278) 2026-04-16 08:46:47 +08:00
query-client-provider.tsx fix(frontend): unify local settings runtime state and remove sidebar layout from LocalSettings (#1879) 2026-04-07 17:41:34 +08:00
theme-provider.tsx feat: implement the first section of landing page 2026-01-23 00:15:21 +08:00