Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't refresh variables on every console execution #5871

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jmcphers
Copy link
Collaborator

@jmcphers jmcphers commented Jan 2, 2025

This change addresses an issue in which invoking long-running commands causes variables RPC errors to appear.

The underlying issue is that currently every code execution in the Console is triggering a full refresh of the Variables pane (introduced in #5583). So when code is executed, we're asking for a refreshed Variables pane immediately afterwards, but the RPC doesn't go through right away because code is executing. If the code takes a while to execute, the RPC eventually times out.

The fix is to avoid refreshing the Variables pane if it's already showing the correct session.

There are other changes that would improve this, such as having the Variables pane queue refresh requests until the kernel is idle, or auditing refresh triggers so they run when code finishes executing. This change is intended to be the minimal one that fixes the problem.

Addresses #5813 and #5806.

QA Notes

Make sure the behavior described in #5583 still works, too.

@jmcphers jmcphers requested a review from nstrayer January 2, 2025 22:43
Copy link

github-actions bot commented Jan 2, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant