Skip to content

Conversation

dualc
Copy link
Contributor

@dualc dualc commented Sep 26, 2025

fix #1462
When using CallContext together with copy_context().run(), multiple contexts may accidentally share the same underlying dictionary reference. This leads to context pollution when concurrent tasks modify the same variable keys.

Copy link
Member

@Zsailer Zsailer left a comment

Choose a reason for hiding this comment

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

Nice catch @dualc.

This looks good to me.

@Zsailer Zsailer added the bug label Sep 29, 2025
@Zsailer Zsailer merged commit 987ebdd into jupyter-server:main Sep 29, 2025
34 of 38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CallContext bug leads to context values bleeding
2 participants