-
[OPIK-5947] [FE] fix: force iframe remount on assistant surface change
发布于
2026-04-16 07:28:31 +00:00 When navigating between project home (page surface) and other pages
(sidebar surface), the iframe's bridge subscription becomes stale
because the browser caches the iframe and its JS execution context.
Adding key={surface} forces React to destroy and recreate the iframe
on surface transitions, ensuring a fresh bridge binding each time.Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com
下载附件