Creating a new Jupyter notebook from the agent results in an empty file

When asking the agent to create a Jupyter notebook from scratch, the generated file is empty.
For example: “Create a new Jupyter notebook which demonstrates basic Pandas functionality.” will create a new file called “pandas_basic_tutorial.ipynb” in my local directory and show me the proposed contents in a code cell within the chat window, but will not actually place those contents within the file.

Cursor version info:
Version: 0.49.4 (Universal)
VSCode Version: 1.96.2
Commit: ec408037b24566b11e6132c58bbe6ad27046eb90
Date: 2025-04-22T00:33:06.906Z
Electron: 34.3.4
Chromium: 132.0.6834.210
Node.js: 20.18.3
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.4.0