diff --git a/frontend/src/core/websocket/useMarimoWebSocket.tsx b/frontend/src/core/websocket/useMarimoWebSocket.tsx index 8f14e5936a..6497d5c84b 100644 --- a/frontend/src/core/websocket/useMarimoWebSocket.tsx +++ b/frontend/src/core/websocket/useMarimoWebSocket.tsx @@ -81,7 +81,7 @@ export function useMarimoWebSocket(opts: { // A cell is stale if we did not auto-instantiate (i.e. nothing has run yet) // or if the code has changed since the last time it was run. let edited = false; - if (autoInstantiate) { + if (autoInstantiate || resumed) { const lastCodeRun = last_executed_code[cellId]; if (lastCodeRun) { edited = lastCodeRun !== code;