Fix panic when opening the same context twice (#14004)

Release Notes:

- Fixed a crash that occurred when opening the same context twice in the
assistant panel (preview-only).
ce7074c883Antonio Scandurra committed on 7/9/2024, 5:10:20 PM· committed by GitHubparent6cc8412
1 file changedLine totals unavailable