Skip to content

[Notebook Migration] Refactor notebook-migration-service to be stateless #7390

Description

@zyratlo

Feature Summary

notebook-migration-service keeps process-global state for the "current" Jupyter iframe: one request sets it and a later request reads it back. This has two problems. Within a single user, two browser tabs can race that shared state. Across users, the state cannot be shared safely, so it blocks running the service as a single global instance.

Make the service stateless so each response is computed from the request itself rather than from state left by a previous call.

Proposed Solution or Design

Remove the process-global iframe state and compute the Jupyter iframe reference per request. Backend tests are updated to cover the stateless behavior.

The change is backward compatible: a request that does not specify a notebook behaves exactly as it does today, so no frontend or deployment change is needed. This removes the multi-tab race on its own and is a self-contained backend change.

Affected Area

Other

Activity

  1. added theissue type on Aug 7, 2026
  2. zyratlo commented on Aug 7, 2026

    @zyratlo
    ContributorAuthor

    /parent-issue #4301

  3. changed the title [-][Notebook Migration] Refactor notebook-migration-service to be global[/-] [+][Notebook Migration] Refactor notebook-migration-service to be stateless[/+] on Aug 12, 2026
  4. added a commit that references this issue on Aug 14, 2026
    d94581a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions