Skip to content

Conversation

@seeM
Copy link
Contributor

@seeM seeM commented Nov 18, 2025

Dispose cells when a notebook is disposed, so that text model references aren't leaked, the notebook document is closed, and the runtime session is shutdown. Addresses #10215.

Screen.Recording.2025-11-18.at.18.54.23.mov

Release Notes

New Features

  • N/A

Bug Fixes

  • N/A

QA Notes

Repro steps:

  1. Open a notebook
  2. Run a cell that sets a variable e.g. x = 1
  3. Close the notebook
  4. Open the notebook again (may have to wait very briefly here if automating)
  5. Verify that it is a new session i.e. x doesn't exist - FAIL

You can also check in the Runtimes dev pane.

@github-actions
Copy link

E2E Tests 🚀
This PR will run tests tagged with: @:critical

readme  valid tags

Copy link
Contributor

@dhruvisompura dhruvisompura left a comment

Choose a reason for hiding this comment

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

🚀 This is working well for me!

@seeM seeM merged commit a5e187c into main Nov 19, 2025
19 of 20 checks passed
@seeM seeM deleted the fix/dispose-cells branch November 19, 2025 16:56
@github-actions github-actions bot locked and limited conversation to collaborators Nov 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants