Skip to content

fix(frontend): fix new notebook URL using wrong file query param#9603

Open
loliuy wants to merge 1 commit into
marimo-team:mainfrom
FREEZONEX:main
Open

fix(frontend): fix new notebook URL using wrong file query param#9603
loliuy wants to merge 1 commit into
marimo-team:mainfrom
FREEZONEX:main

Conversation

@loliuy
Copy link
Copy Markdown

@loliuy loliuy commented May 19, 2026

newNotebookURL() was building ?file=new, but the backend's parse_file_key only recognises the exact sentinel new. The suffixed value was treated as a file path, causing a 404 on every new notebook open.

Fix by separating the two concerns: pass file=new as the notebook key and session_id= as the session identifier, consistent with how existing (unsaved) notebooks are linked from the home page.

📝 Summary

Closes #

📋 Pre-Review Checklist

  • For large changes, or changes that affect the public API: this change was discussed or approved through an issue, on Discord, or the community discussions (Please provide a link if applicable).
  • Any AI generated code has been reviewed line-by-line by the human PR author, who stands by it.
  • Video or media evidence is provided for any visual changes (optional).

✅ Merge Checklist

  • I have read the contributor guidelines.
  • Documentation has been updated where applicable, including docstrings for API changes.
  • Tests have been added for the changes made.
    I have read the CLA Document and I hereby sign the CLA

newNotebookURL() was building ?file=__new__<sessionId>, but the
backend's parse_file_key only recognises the exact sentinel __new__.
The suffixed value was treated as a file path, causing a 404 on every
new notebook open.

Fix by separating the two concerns: pass file=__new__ as the notebook
key and session_id=<id> as the session identifier, consistent with how
existing (unsaved) notebooks are linked from the home page.

Co-authored-by: Cursor <cursoragent@cursor.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 19, 2026

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

Project Deployment Actions Updated (UTC)
marimo-docs Ready Ready Preview, Comment May 19, 2026 5:58am

Request Review

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 19, 2026

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

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

No issues found across 1 file

Re-trigger cubic

@loliuy
Copy link
Copy Markdown
Author

loliuy commented May 19, 2026

I have read the CLA Document and I hereby sign the CLA

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant