Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

Fix `hide_code` not taking effect on kernel-created cells (#8926)

Trevor Manz2ed144a0d52e
diff --git a/frontend/src/core/cells/cells.ts b/frontend/src/core/cells/cells.ts
index c3e641b397..1e1b665b13 100644
--- a/frontend/src/core/cells/cells.ts
+++ b/frontend/src/core/cells/cells.ts
@@ -247,9 +247,10 @@ const {
[newCellId]: createRef(),
},
scrollKey: autoFocus ? newCellId : null,
- untouchedNewCells: hideCode
- ? new Set([...state.untouchedNewCells, newCellId])
- : state.untouchedNewCells,
+ untouchedNewCells:
+ hideCode && !code
+ ? new Set([...state.untouchedNewCells, newCellId])
+ : state.untouchedNewCells,
};
},
moveCell: (