Skip to content

Conversation

@mscolnick
Copy link
Contributor

When creating a new notebook and naming it via the filename input in the
header, the file was created empty because only the rename operation
was performed. The cell content required a separate save action (Ctrl+S).

This change modifies FilenameForm to also save the notebook content
after renaming, when the notebook was previously unnamed. This matches
the behavior of the Save dialog (Ctrl+S on unnamed notebooks).

Closes #7981

When creating a new notebook and naming it via the filename input in the
header, the file was created empty because only the rename operation
was performed. The cell content required a separate save action (Ctrl+S).

This change modifies `FilenameForm` to also save the notebook content
after renaming, when the notebook was previously unnamed. This matches
the behavior of the Save dialog (Ctrl+S on unnamed notebooks).

Closes #7981
@vercel
Copy link

vercel bot commented Jan 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
marimo-docs Ready Ready Preview, Comment Jan 27, 2026 10:41pm

Request Review

Copy link
Contributor

@Light2Dark Light2Dark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, I think a test could be added, to see if mockSaveNotebook was called for this path

@mscolnick mscolnick merged commit 718f803 into main Jan 28, 2026
33 of 34 checks passed
@mscolnick mscolnick deleted the ms/save-after-first-rename branch January 28, 2026 04:07
@github-actions
Copy link

🚀 Development release published. You may be able to view the changes at https://marimo.app?v=0.19.7-dev24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

3 participants