Avoid hub iframe overlay on embed shell tab switches.

Use in-shell content loading state instead of parent postMessage so tab changes do not trigger the full instance-frame loading mask.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-24 01:23:40 +08:00
parent 4ad335ca84
commit bced61b9d7
4 changed files with 13 additions and 15 deletions
+1
View File
@@ -3368,6 +3368,7 @@
const d = ev.data;
if (!d || typeof d !== "object") return;
if (d.type === "instance-frame-navigating") {
if (d.embedShellTab) return;
setInstanceFrameNavLoading(true);
} else if (d.type === "instance-frame-ready") {
setInstanceFrameNavLoading(false);