Files
open-design/apps/web
ad4a8fc40d fix(web): stop stale file reads from taking the chat preview (#8067)
* fix(web): stop stale file reads from taking the chat preview

* fix(web): keep latest live artifact focus after delayed reads

Order explicit artifact-focus callbacks by their originating stream's latest
open request. Check that intent after file-list and JSX-reference reads so an
older PNG response cannot replace a newer selected HTML artifact, or vice versa.

Keep completion, error, cancellation and user-selection guards unchanged.
Cover both out-of-order directions and the normal single-focus path.

---------

Co-authored-by: lefarcen <935902669@qq.com>
2026-09-17 02:59:17 +00:00
..