Skip to content

Remove the unused ObservableContextManager #8694

Closed

Description

@aglinxinyuan

Task Summary

ObservableContextManager in common/util/context.ts adds enter/exit/change streams on top of ContextManager. Nothing has subscribed to them since early 2023.

Introduced by #1433 (2022-02-07, "Bugfix for Albert load workflow opt"). JointGraphContext used the change stream to buffer JointJS events while the paper was in async mode.

Usage removed by #1810 (2023-01-27, "Fix buffering events in JointJS async context"). It deleted both getChangeContextStream() subscribers and handled the buffering another way.

It has been dead for over three and a half years. JointGraphContext still extends ObservableContextManager, so every enter/exit emits on two Subjects that no one reads. Only context.spec.ts uses the stream API.

This is a pure deletion. JointGraphContext would extend ContextManager directly, with no behaviour change.

Task Type

  • Refactor / Cleanup

Activity

  1. added a commit that references this issue on Sep 27, 2026
    fcaf27a
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

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions