diff --git a/apps/cockpit/src/components/cockpit-shell.tsx b/apps/cockpit/src/components/cockpit-shell.tsx index 695b7a842..a2d9fa0dd 100644 --- a/apps/cockpit/src/components/cockpit-shell.tsx +++ b/apps/cockpit/src/components/cockpit-shell.tsx @@ -104,13 +104,14 @@ export function CockpitShell({ -
- {activeMode === 'Run' ? ( +
+ {/* RunMode stays mounted to preserve iframe state across tab switches */} +
- ) : null} +
{activeMode === 'Code' ? (